From ba488d8d330a3663d0d8f4a86c444c5d7110eece Mon Sep 17 00:00:00 2001
From: Meixner <andre.meixner@kit.edu>
Date: Tue, 31 May 2022 11:30:16 +0200
Subject: [PATCH] Added getter for visualization xml

---
 VirtualRobot/SceneObject.cpp | 4 ++++
 VirtualRobot/SceneObject.h   | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/VirtualRobot/SceneObject.cpp b/VirtualRobot/SceneObject.cpp
index 332bb8468..e9de5a87c 100644
--- a/VirtualRobot/SceneObject.cpp
+++ b/VirtualRobot/SceneObject.cpp
@@ -1495,4 +1495,8 @@ namespace VirtualRobot
         }
         return reloaded;
     }
+
+    const std::string &SceneObject::getVisualizationModelXML() const {
+        return visualizationModelXML;
+    }
 } // namespace
diff --git a/VirtualRobot/SceneObject.h b/VirtualRobot/SceneObject.h
index 126f9402f..ad6bce5d8 100644
--- a/VirtualRobot/SceneObject.h
+++ b/VirtualRobot/SceneObject.h
@@ -396,6 +396,8 @@ namespace VirtualRobot
 
         bool reloadVisualizationFromXML(bool useVisAsColModelIfMissing = true);
 
+        const std::string& getVisualizationModelXML() const;
+
     protected:
         virtual SceneObject* _clone(const std::string& name, CollisionCheckerPtr colChecker = CollisionCheckerPtr(), float scaling = 1.0f) const;
 
-- 
GitLab