Base class for visible objects, providing a minimal generic interface. More...
#include <object.h>
Public Member Functions | |
virtual const Ogre::Quaternion & | getOrientation ()=0 |
Get the local orientation of this object. More... | |
virtual const Ogre::Vector3 & | getPosition ()=0 |
Get the local position of this object. More... | |
Object (Ogre::SceneManager *scene_manager) | |
virtual void | setColor (float r, float g, float b, float a)=0 |
Set the color of the object. Values are in the range [0, 1]. More... | |
virtual void | setOrientation (const Ogre::Quaternion &orientation)=0 |
Set the orientation of the object. More... | |
virtual void | setPosition (const Ogre::Vector3 &position)=0 |
Set the position of this object. More... | |
virtual void | setScale (const Ogre::Vector3 &scale)=0 |
Set the scale of the object. Always relative to the identity orientation of the object. More... | |
virtual void | setUserData (const Ogre::Any &data)=0 |
Set the user data on this object. More... | |
virtual | ~Object () |
Protected Attributes | |
Ogre::SceneManager * | scene_manager_ |
Ogre scene manager this object is part of. More... | |
Base class for visible objects, providing a minimal generic interface.
rviz::Object::Object | ( | Ogre::SceneManager * | scene_manager | ) |
scene_manager | The scene manager this object should be part of. |
Definition at line 34 of file object.cpp.
|
pure virtual |
Get the local orientation of this object.
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Line, rviz::Shape, rviz::Axes, and rviz::BillboardLine.
|
pure virtual |
Get the local position of this object.
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Line, rviz::Shape, rviz::Axes, and rviz::BillboardLine.
|
pure virtual |
Set the color of the object. Values are in the range [0, 1].
r | Red component |
g | Green component |
b | Blue component |
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Line, rviz::Axes, rviz::Shape, and rviz::BillboardLine.
|
pure virtual |
Set the orientation of the object.
Orientation | quaternion orientation to set to. |
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Shape, rviz::Axes, rviz::Line, and rviz::BillboardLine.
|
pure virtual |
Set the position of this object.
Position | vector position to set to. |
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Shape, rviz::Axes, rviz::BillboardLine, and rviz::Line.
|
pure virtual |
Set the scale of the object. Always relative to the identity orientation of the object.
Scale | vector scale to set to. |
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Shape, rviz::Line, rviz::Axes, and rviz::BillboardLine.
|
pure virtual |
Set the user data on this object.
data |
Implemented in rviz::CovarianceVisual, rviz::Arrow, rviz::Line, rviz::Shape, rviz::Axes, and rviz::BillboardLine.
|
protected |