An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue. More...
#include <axes.h>

Public Member Functions | |
| Axes (Ogre::SceneManager *manager, Ogre::SceneNode *parent_node=NULL, float length=1.0f, float radius=0.1f) | |
| Constructor. | |
| virtual const Ogre::Quaternion & | getOrientation () |
| Get the local orientation of this object. | |
| virtual const Ogre::Vector3 & | getPosition () |
| Get the local position of this object. | |
| Ogre::SceneNode * | getSceneNode () |
| Get the scene node associated with this object. | |
| Shape * | getXShape () |
| Shape * | getYShape () |
| Shape * | getZShape () |
| void | set (float length, float radius) |
| Set the parameters on this object. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the object. Values are in the range [0, 1]. | |
| virtual void | setOrientation (const Ogre::Quaternion &orientation) |
| Set the orientation of the object. | |
| virtual void | setPosition (const Ogre::Vector3 &position) |
| Set the position of this object. | |
| virtual void | setScale (const Ogre::Vector3 &scale) |
| Set the scale of the object. Always relative to the identity orientation of the object. | |
| void | setToDefaultColors () |
| void | setUserData (const Ogre::Any &data) |
| Sets user data on all ogre objects we own. | |
| void | setXColor (const Ogre::ColourValue &col) |
| void | setYColor (const Ogre::ColourValue &col) |
| void | setZColor (const Ogre::ColourValue &col) |
| virtual | ~Axes () |
Static Public Member Functions | |
| static const Ogre::ColourValue & | getDefaultXColor () |
| static const Ogre::ColourValue & | getDefaultYColor () |
| static const Ogre::ColourValue & | getDefaultZColor () |
Private Member Functions | |
| Axes (const Axes &other) | |
| Axes & | operator= (const Axes &other) |
Private Attributes | |
| Ogre::SceneNode * | scene_node_ |
| Shape * | x_axis_ |
| Cylinder for the X-axis. | |
| Shape * | y_axis_ |
| Cylinder for the Y-axis. | |
| Shape * | z_axis_ |
| Cylinder for the Z-axis. | |
Static Private Attributes | |
| static const Ogre::ColourValue | default_x_color_ |
| static const Ogre::ColourValue | default_y_color_ |
| static const Ogre::ColourValue | default_z_color_ |
An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue.
| rviz::Axes::Axes | ( | Ogre::SceneManager * | manager, |
| Ogre::SceneNode * | parent_node = NULL, |
||
| float | length = 1.0f, |
||
| float | radius = 0.1f |
||
| ) |
| rviz::Axes::~Axes | ( | ) | [virtual] |
| rviz::Axes::Axes | ( | const Axes & | other | ) | [inline, private] |
| const Ogre::ColourValue & rviz::Axes::getDefaultXColor | ( | ) | [static] |
| const Ogre::ColourValue & rviz::Axes::getDefaultYColor | ( | ) | [static] |
| const Ogre::ColourValue & rviz::Axes::getDefaultZColor | ( | ) | [static] |
| const Ogre::Quaternion & rviz::Axes::getOrientation | ( | ) | [virtual] |
| const Ogre::Vector3 & rviz::Axes::getPosition | ( | ) | [virtual] |
| Ogre::SceneNode* rviz::Axes::getSceneNode | ( | ) | [inline] |
| Shape* rviz::Axes::getXShape | ( | ) | [inline] |
| Shape* rviz::Axes::getYShape | ( | ) | [inline] |
| Shape* rviz::Axes::getZShape | ( | ) | [inline] |
| void rviz::Axes::set | ( | float | length, |
| float | radius | ||
| ) |
| void rviz::Axes::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the object. Values are in the range [0, 1].
| r | Red component |
| g | Green component |
| b | Blue component |
Implements rviz::Object.
| void rviz::Axes::setOrientation | ( | const Ogre::Quaternion & | orientation | ) | [virtual] |
Set the orientation of the object.
| Orientation | quaternion orientation to set to. |
Implements rviz::Object.
| void rviz::Axes::setPosition | ( | const Ogre::Vector3 & | position | ) | [virtual] |
Set the position of this object.
| Position | vector position to set to. |
Implements rviz::Object.
| void rviz::Axes::setScale | ( | const Ogre::Vector3 & | scale | ) | [virtual] |
Set the scale of the object. Always relative to the identity orientation of the object.
| Scale | vector scale to set to. |
Implements rviz::Object.
| void rviz::Axes::setToDefaultColors | ( | ) |
| void rviz::Axes::setUserData | ( | const Ogre::Any & | data | ) | [virtual] |
Sets user data on all ogre objects we own.
Implements rviz::Object.
| void rviz::Axes::setXColor | ( | const Ogre::ColourValue & | col | ) |
| void rviz::Axes::setYColor | ( | const Ogre::ColourValue & | col | ) |
| void rviz::Axes::setZColor | ( | const Ogre::ColourValue & | col | ) |
const Ogre::ColourValue rviz::Axes::default_x_color_ [static, private] |
const Ogre::ColourValue rviz::Axes::default_y_color_ [static, private] |
const Ogre::ColourValue rviz::Axes::default_z_color_ [static, private] |
Ogre::SceneNode* rviz::Axes::scene_node_ [private] |
Shape* rviz::Axes::x_axis_ [private] |
Shape* rviz::Axes::y_axis_ [private] |
Shape* rviz::Axes::z_axis_ [private] |