VisualizationCylinder.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
#include <Inventor/nodes/SoCylinder.h>
7
8
namespace
armarx::viz::coin
9
{
10
struct
VisualizationCylinder
:
TypedElementVisualization
<SoCylinder>
11
{
12
using
ElementType
= data::ElementCylinder;
13
14
bool
update
(
ElementType
const
& element)
15
{
16
node
->radius = element.radius;
17
node
->height = element.height;
18
19
return
true
;
20
}
21
};
22
}
ElementVisualizer.h
armarx::viz::coin::TypedElementVisualization
Definition:
ElementVisualizer.h:53
armarx::viz::coin::VisualizationCylinder::update
bool update(ElementType const &element)
Definition:
VisualizationCylinder.h:14
armarx::viz::coin::TypedElementVisualization< SoCylinder >::node
NodeType * node
Definition:
ElementVisualizer.h:68
armarx::viz::coin
Definition:
ElementVisualizer.cpp:11
armarx::viz::coin::VisualizationCylinder::ElementType
data::ElementCylinder ElementType
Definition:
VisualizationCylinder.h:12
armarx::viz::coin::VisualizationCylinder
Definition:
VisualizationCylinder.h:10
RobotAPI
components
ArViz
Coin
VisualizationCylinder.h
Generated on Sat Oct 12 2024 09:14:06 for armarx_documentation by
1.8.17