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