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.
ogre_tools::Axes::Axes | ( | Ogre::SceneManager * | manager, |
Ogre::SceneNode * | parent_node = NULL , |
||
float | length = 1.0f , |
||
float | radius = 0.1f |
||
) |
ogre_tools::Axes::~Axes | ( | ) | [virtual] |
ogre_tools::Axes::Axes | ( | const Axes & | other | ) | [inline, private] |
const Ogre::ColourValue & ogre_tools::Axes::getDefaultXColor | ( | ) | [static] |
const Ogre::ColourValue & ogre_tools::Axes::getDefaultYColor | ( | ) | [static] |
const Ogre::ColourValue & ogre_tools::Axes::getDefaultZColor | ( | ) | [static] |
const Ogre::Quaternion & ogre_tools::Axes::getOrientation | ( | ) | [virtual] |
const Ogre::Vector3 & ogre_tools::Axes::getPosition | ( | ) | [virtual] |
Ogre::SceneNode* ogre_tools::Axes::getSceneNode | ( | ) | [inline] |
Shape* ogre_tools::Axes::getXShape | ( | ) | [inline] |
Shape* ogre_tools::Axes::getYShape | ( | ) | [inline] |
Shape* ogre_tools::Axes::getZShape | ( | ) | [inline] |
void ogre_tools::Axes::set | ( | float | length, |
float | radius | ||
) |
void ogre_tools::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 ogre_tools::Object.
void ogre_tools::Axes::setOrientation | ( | const Ogre::Quaternion & | orientation | ) | [virtual] |
Set the orientation of the object.
Orientation | quaternion orientation to set to. |
Implements ogre_tools::Object.
void ogre_tools::Axes::setPosition | ( | const Ogre::Vector3 & | position | ) | [virtual] |
Set the position of this object.
Position | vector position to set to. |
Implements ogre_tools::Object.
void ogre_tools::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 ogre_tools::Object.
void ogre_tools::Axes::setToDefaultColors | ( | ) |
void ogre_tools::Axes::setUserData | ( | const Ogre::Any & | data | ) | [virtual] |
Sets user data on all ogre objects we own.
Implements ogre_tools::Object.
void ogre_tools::Axes::setXColor | ( | const Ogre::ColourValue & | col | ) |
void ogre_tools::Axes::setYColor | ( | const Ogre::ColourValue & | col | ) |
void ogre_tools::Axes::setZColor | ( | const Ogre::ColourValue & | col | ) |
const Ogre::ColourValue ogre_tools::Axes::default_x_color_ [static, private] |
const Ogre::ColourValue ogre_tools::Axes::default_y_color_ [static, private] |
const Ogre::ColourValue ogre_tools::Axes::default_z_color_ [static, private] |
Ogre::SceneNode* ogre_tools::Axes::scene_node_ [private] |
Shape* ogre_tools::Axes::x_axis_ [private] |
Shape* ogre_tools::Axes::y_axis_ [private] |
Shape* ogre_tools::Axes::z_axis_ [private] |