VisualizationCylinder.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <RobotAPI/interface/ArViz/Elements.h>
4
5
#include "
ElementVisualizer.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
15
update
(
ElementType
const
& element)
16
{
17
node
->radius = element.radius;
18
node
->height = element.height;
19
20
return
true
;
21
}
22
};
23
}
// namespace armarx::viz::coin
ElementVisualizer.h
armarx::viz::coin::TypedElementVisualization
Definition:
ElementVisualizer.h:52
armarx::viz::coin::VisualizationCylinder::update
bool update(ElementType const &element)
Definition:
VisualizationCylinder.h:15
armarx::viz::coin::TypedElementVisualization< SoCylinder >::node
NodeType * node
Definition:
ElementVisualizer.h:67
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 by
1.8.17