VisualizationRobot.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 LoadedRobot
12  {
13  std::string project;
14  std::string filename;
16  };
17 
19  {
20  using ElementType = data::ElementRobot;
21 
23 
24  bool update(ElementType const& element);
25 
26  void recreateVisualizationNodes(int drawStyle);
27 
29  int loadedDrawStyle = data::ModelDrawStyle::ORIGINAL;
31  };
32 
33  void clearRobotCache();
34 }
ElementVisualizer.h
armarx::viz::coin::TypedElementVisualization
Definition: ElementVisualizer.h:53
armarx::viz::coin::clearRobotCache
void clearRobotCache()
Definition: VisualizationRobot.cpp:352
armarx::viz::coin::VisualizationRobot::~VisualizationRobot
~VisualizationRobot()
Definition: VisualizationRobot.cpp:172
armarx::viz::coin::LoadedRobot
Definition: VisualizationRobot.h:11
armarx::viz::coin::VisualizationRobot::recreateVisualizationNodes
void recreateVisualizationNodes(int drawStyle)
Definition: VisualizationRobot.cpp:314
armarx::viz::coin::VisualizationRobot::loadedDrawStyle
int loadedDrawStyle
Definition: VisualizationRobot.h:29
Color
uint32_t Color
RGBA color.
Definition: color.h:8
armarx::viz::coin::LoadedRobot::filename
std::string filename
Definition: VisualizationRobot.h:14
armarx::viz::coin::VisualizationRobot::ElementType
data::ElementRobot ElementType
Definition: VisualizationRobot.h:20
armarx::viz::coin::VisualizationRobot::update
bool update(ElementType const &element)
Definition: VisualizationRobot.cpp:205
armarx::viz::coin::LoadedRobot::project
std::string project
Definition: VisualizationRobot.h:13
armarx::viz::coin::VisualizationRobot::loadedColor
armarx::viz::data::Color loadedColor
Definition: VisualizationRobot.h:30
armarx::viz::coin
Definition: ElementVisualizer.cpp:11
armarx::viz::coin::LoadedRobot::robot
VirtualRobot::RobotPtr robot
Definition: VisualizationRobot.h:15
armarx::viz::coin::VisualizationRobot
Definition: VisualizationRobot.h:18
armarx::viz::coin::VisualizationRobot::loaded
LoadedRobot loaded
Definition: VisualizationRobot.h:28
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:18