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