Ogre implementation of a marker geometry. More...
#include <OgreMarker.hh>
Public Member Functions | |
virtual | ~OgreMarker () |
Destructor. | |
virtual void | AddPoint (const gz::math::Vector3d &_pt, const gz::math::Color &_color) override |
Add a point with its respective color to the marker. | |
virtual void | ClearPoints () override |
Clear the points of the marker, if applicable. | |
virtual void | Destroy () override |
Destroy function. | |
virtual void | Init () override |
virtual MaterialPtr | Material () const override |
Get the material of this geometry. | |
virtual Ogre::MovableObject * | OgreObject () const override |
virtual void | PreRender () override |
PreRender function. | |
virtual void | SetMaterial (MaterialPtr _material, bool _unique) override |
Set the materials of this Geometry. | |
virtual void | SetPoint (unsigned int _index, const gz::math::Vector3d &_value) override |
Set an existing point's vector. | |
virtual void | SetType (const MarkerType _markerType) override |
Set the render type of this Marker. | |
virtual MarkerType | Type () const override |
Get the render type of this Marker. | |
Public Member Functions inherited from BaseMarker< OgreGeometry > | |
virtual | ~BaseMarker () |
Destructor. | |
virtual void | AddPoint (double _x, double _y, double _z, const gz::math::Color &_color) override |
Add a point with its respective color to the marker. | |
virtual int32_t | Layer () const override |
Get the layer of this Marker. | |
virtual std::chrono::steady_clock::duration | Lifetime () const override |
Get the lifetime of this Marker. | |
virtual void | SetLayer (int32_t _layer) override |
Set the layer of this Marker. | |
virtual void | SetLifetime (const std::chrono::steady_clock::duration &_lifetime) override |
Set the lifetime of this Marker. | |
virtual void | SetSize (double _size) override |
Set size of the marker. Only affects MT_POINTS. e.g. size of rasterized points in pixels. | |
virtual double | Size () const override |
Get the size of the marker. | |
Public Member Functions inherited from Marker | |
virtual | ~Marker () |
Destructor. | |
Public Member Functions inherited from Geometry | |
virtual | ~Geometry () |
Destructor. | |
Public Member Functions inherited from Object | |
virtual | ~Object () |
Destructor. | |
virtual unsigned int | Id () const =0 |
Get the object ID. This ID will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. | |
virtual std::string | Name () const =0 |
Get the object name. This name will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. | |
virtual void | PostRender ()=0 |
Post process this object and any of its children after rendering. | |
virtual ScenePtr | Scene () const =0 |
Get the Scene that created this object. | |
Public Member Functions inherited from OgreGeometry | |
virtual | ~OgreGeometry () |
virtual bool | HasParent () const |
Determine if this Geometry is attached to a Visual. | |
virtual VisualPtr | Parent () const |
Get the parent Visual. | |
Public Member Functions inherited from BaseGeometry< OgreObject > | |
virtual | ~BaseGeometry () |
virtual GeometryPtr | Clone () const override |
Clone the geometry. | |
virtual void | RemoveParent () override |
Detach this Geometry from its parent Visual. If this Geometry does not have a parent, no work will be done. | |
virtual void | SetMaterial (const std::string &_material, bool _unique=true) override |
Set the materials of this Geometry. The specified material will be retrieved from the parent Scene. If no material is registered by the given name, no work will be done. | |
Public Member Functions inherited from OgreObject | |
virtual | ~OgreObject () |
virtual ScenePtr | Scene () const |
Public Member Functions inherited from BaseObject | |
virtual | ~BaseObject () |
virtual unsigned int | Id () const override |
virtual std::string | Name () const override |
virtual void | PostRender () override |
Protected Member Functions | |
OgreMarker () | |
Constructor. | |
Protected Member Functions inherited from BaseMarker< OgreGeometry > | |
BaseMarker () | |
Constructor. | |
Protected Member Functions inherited from Marker | |
Marker () | |
Protected Member Functions inherited from OgreGeometry | |
OgreGeometry () | |
virtual void | SetParent (OgreVisualPtr _parent) |
Protected Member Functions inherited from BaseGeometry< OgreObject > | |
BaseGeometry () | |
Protected Member Functions inherited from OgreObject | |
OgreObject () | |
Protected Member Functions inherited from BaseObject | |
BaseObject () | |
virtual void | Load () |
Additional Inherited Members | |
Protected Attributes inherited from BaseMarker< OgreGeometry > | |
int32_t | layer |
Layer at which the marker will reside. | |
std::chrono::steady_clock::duration | lifetime |
Life time of a marker. | |
bool | markerDirty |
Flag to indicate if marker needs to be updated. | |
MarkerType | markerType |
Marker type. | |
double | size |
Marker size. | |
Protected Attributes inherited from OgreGeometry | |
OgreVisualPtr | parent |
Protected Attributes inherited from OgreObject | |
OgreScenePtr | scene |
Protected Attributes inherited from BaseObject | |
unsigned int | id |
std::string | name |
Detailed Description
Ogre implementation of a marker geometry.
Constructor & Destructor Documentation
◆ OgreMarker()
|
protected |
Constructor.
◆ ~OgreMarker()
|
virtual |
Destructor.
Member Function Documentation
◆ AddPoint()
|
overridevirtual |
Add a point with its respective color to the marker.
- Parameters
-
[in] _pt A vector containing the position of the point [in] _color The color the point is set to
Reimplemented from BaseMarker< OgreGeometry >.
◆ ClearPoints()
|
overridevirtual |
Clear the points of the marker, if applicable.
Reimplemented from BaseMarker< OgreGeometry >.
◆ Destroy()
|
overridevirtual |
Destroy function.
Reimplemented from BaseMarker< OgreGeometry >.
◆ Init()
|
overridevirtual |
Reimplemented from BaseObject.
◆ Material()
|
overridevirtual |
◆ OgreObject()
|
overridevirtual |
Implements OgreGeometry.
◆ PreRender()
|
overridevirtual |
PreRender function.
Reimplemented from BaseMarker< OgreGeometry >.
◆ SetMaterial()
|
overridevirtual |
◆ SetPoint()
|
overridevirtual |
Set an existing point's vector.
- Parameters
-
[in] _index The index of the point [in] _value The new positional vector of the point
Reimplemented from BaseMarker< OgreGeometry >.
◆ SetType()
|
overridevirtual |
Set the render type of this Marker.
- Parameters
-
[in] _markerType The desired render type
Reimplemented from BaseMarker< OgreGeometry >.
◆ Type()
|
overridevirtual |
Get the render type of this Marker.
- Returns
- The render type of the marker
Reimplemented from BaseMarker< OgreGeometry >.
The documentation for this class was generated from the following file: