Class Object
Defined in File object.hpp
Inheritance Relationships
Derived Types
public rviz_rendering::Arrow
(Class Arrow)public rviz_rendering::Axes
(Class Axes)public rviz_rendering::BillboardLine
(Class BillboardLine)public rviz_rendering::Line
(Class Line)public rviz_rendering::Shape
(Class Shape)
Class Documentation
-
class Object
Base class for visible objects, providing a minimal generic interface.
Subclassed by rviz_rendering::Arrow, rviz_rendering::Axes, rviz_rendering::BillboardLine, rviz_rendering::Line, rviz_rendering::Shape
Public Functions
-
explicit Object(Ogre::SceneManager *scene_manager)
- Parameters:
scene_manager – The scene manager this object should be part of.
-
inline virtual ~Object()
-
virtual void setPosition(const Ogre::Vector3 &position) = 0
Set the position of this object.
- Parameters:
Position – vector position to set to.
-
virtual void setOrientation(const Ogre::Quaternion &orientation) = 0
Set the orientation of the object.
- Parameters:
Orientation – quaternion orientation to set to.
-
virtual void setScale(const Ogre::Vector3 &scale) = 0
Set the scale of the object. Always relative to the identity orientation of the object.
- Parameters:
Scale – vector scale to set to.
-
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].
- Parameters:
r – Red component
g – Green component
b – Blue component
-
virtual const Ogre::Vector3 &getPosition() = 0
Get the local position of this object.
- Returns:
The position
-
virtual const Ogre::Quaternion &getOrientation() = 0
Get the local orientation of this object.
- Returns:
The orientation
-
virtual void setUserData(const Ogre::Any &data) = 0
Set the user data on this object.
- Parameters:
data –
Protected Attributes
-
Ogre::SceneManager *scene_manager_
Ogre scene manager this object is part of.
-
explicit Object(Ogre::SceneManager *scene_manager)