Go to the documentation of this file.
17 #ifndef IGNITION_RENDERING_MARKER_HH_
18 #define IGNITION_RENDERING_MARKER_HH_
23 #include "ignition/rendering/config.hh"
32 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
74 class IGNITION_RENDERING_VISIBLE
Marker :
84 public:
virtual void SetLifetime(
85 const std::chrono::steady_clock::duration &_lifetime) = 0;
89 public:
virtual std::chrono::steady_clock::duration Lifetime()
const = 0;
93 public:
virtual void SetLayer(int32_t _layer) = 0;
97 public:
virtual int32_t Layer()
const = 0;
101 public:
virtual void SetType(
109 public:
virtual void ClearPoints() = 0;
116 public:
virtual void AddPoint(
double _x,
117 double _y,
double _z,
129 public:
virtual void SetPoint(
unsigned int _index,
virtual void SetLifetime(const std::chrono::steady_clock::duration &_lifetime)=0
Set the lifetime of this Marker.
@ MT_POINTS
Points primitive.
Definition: Marker.hh:53
@ MT_SPHERE
Sphere geometry.
Definition: Marker.hh:56
@ MT_TRIANGLE_LIST
Triangle list primitive.
Definition: Marker.hh:65
@ MT_TRIANGLE_STRIP
Triangle strip primitive.
Definition: Marker.hh:68
@ MT_NONE
No type.
Definition: Marker.hh:38
@ MT_TEXT
Text geometry.
Definition: Marker.hh:59
@ MT_LINE_STRIP
Line strip primitive.
Definition: Marker.hh:47
virtual void AddPoint(double _x, double _y, double _z, const ignition::math::Color &_color)=0
Add a point with its respective color to the marker.
virtual void SetPoint(unsigned int _index, const ignition::math::Vector3d &_value)=0
Set an existing point's vector.
@ MT_BOX
Box geometry.
Definition: Marker.hh:41
@ MT_LINE_LIST
Line list primitive.
Definition: Marker.hh:50
virtual void SetType(const MarkerType _markerType)=0
Set the render type of this Marker.
@ MT_TRIANGLE_FAN
Triangle fan primitive.
Definition: Marker.hh:62
virtual void ClearPoints()=0
Clear the points of the marker, if applicable.
virtual std::chrono::steady_clock::duration Lifetime() const =0
Get the lifetime of this Marker.
virtual void SetLayer(int32_t _layer)=0
Set the layer of this Marker.
virtual ~Marker()
Destructor.
A marker geometry class. The marker's visual appearance is based on the marker type specified.
Definition: Marker.hh:74
MarkerType
Enum for marker types.
Definition: Marker.hh:35
virtual MarkerType Type() const =0
Get the render type of this Marker.
@ MT_CYLINDER
Cylinder geometry.
Definition: Marker.hh:44
Represents a geometric shape to be rendered.
Definition: Geometry.hh:34
virtual int32_t Layer() const =0
Get the layer of this Marker.