VisualizationObject.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ElementVisualizer.h"
4 
5 #include <RobotAPI/interface/ArViz/Elements.h>
6 
7 #include <VirtualRobot/VirtualRobot.h>
8 
9 namespace armarx::viz::coin
10 {
11  struct LoadedObject
12  {
13  std::string project;
14  std::string filename;
15  VirtualRobot::ManipulationObjectPtr object;
16  };
17 
19  {
20  using ElementType = data::ElementObject;
21 
22  bool update(ElementType const& element);
23 
24  void recreateVisualizationNodes(int drawStyle);
25 
27  int loadedDrawStyle = data::ModelDrawStyle::ORIGINAL;
28  };
29 
30  void clearObjectCache();
31 }
armarx::viz::coin::VisualizationObject::loaded
LoadedObject loaded
Definition: VisualizationObject.h:26
ElementVisualizer.h
armarx::viz::coin::VisualizationObject::loadedDrawStyle
int loadedDrawStyle
Definition: VisualizationObject.h:27
armarx::viz::coin::VisualizationObject::ElementType
data::ElementObject ElementType
Definition: VisualizationObject.h:20
armarx::viz::coin::TypedElementVisualization
Definition: ElementVisualizer.h:53
armarx::viz::coin::clearObjectCache
void clearObjectCache()
Definition: VisualizationObject.cpp:245
armarx::viz::coin::VisualizationObject
Definition: VisualizationObject.h:18
armarx::viz::coin::LoadedObject
Definition: VisualizationObject.h:11
armarx::viz::coin::LoadedObject::filename
std::string filename
Definition: VisualizationObject.h:14
armarx::viz::coin::VisualizationObject::recreateVisualizationNodes
void recreateVisualizationNodes(int drawStyle)
Definition: VisualizationObject.cpp:211
armarx::viz::coin::VisualizationObject::update
bool update(ElementType const &element)
Definition: VisualizationObject.cpp:158
armarx::viz::coin::LoadedObject::object
VirtualRobot::ManipulationObjectPtr object
Definition: VisualizationObject.h:15
armarx::viz::coin::LoadedObject::project
std::string project
Definition: VisualizationObject.h:13
armarx::viz::coin
Definition: ElementVisualizer.cpp:11