33 #include <OgreSceneManager.h> 34 #include <OgreSceneNode.h> 35 #include <OgreVector3.h> 36 #include <OgreQuaternion.h> 43 Axes::Axes( Ogre::SceneManager* scene_manager, Ogre::SceneNode* parent_node,
float length,
float radius )
57 set( length, radius );
virtual void setOrientation(const Ogre::Quaternion &orientation)
Set the orientation of the object.
virtual const Ogre::Quaternion & getOrientation()
Get the local orientation of this object.
void setUserData(const Ogre::Any &data)
Sets user data on all ogre objects we own.
Ogre::SceneNode * scene_node_
static const Ogre::ColourValue & getDefaultYColor()
Shape * y_axis_
Cylinder for the Y-axis.
virtual const Ogre::Vector3 & getPosition()
Get the local position of this object.
Axes(Ogre::SceneManager *manager, Ogre::SceneNode *parent_node=NULL, float length=1.0f, float radius=0.1f)
Constructor.
void setZColor(const Ogre::ColourValue &col)
static const Ogre::ColourValue & getDefaultXColor()
void setYColor(const Ogre::ColourValue &col)
virtual void setColor(float r, float g, float b, float a)
Set the color of the object. Values are in the range [0, 1].
Base class for visible objects, providing a minimal generic interface.
virtual void setPosition(const Ogre::Vector3 &position)
Set the position of this object.
void setXColor(const Ogre::ColourValue &col)
Shape * x_axis_
Cylinder for the X-axis.
virtual void setPosition(const Ogre::Vector3 &position)
Set the position of this object.
void setToDefaultColors()
static const Ogre::ColourValue default_z_color_
virtual void setScale(const Ogre::Vector3 &scale)
Set the scale of the object. Always relative to the identity orientation of the object.
Shape * z_axis_
Cylinder for the Z-axis.
virtual void setColor(float r, float g, float b, float a)
Set the color of the object. Values are in the range [0, 1].
void set(float length, float radius)
Set the parameters on this object.
virtual void setOrientation(const Ogre::Quaternion &orientation)
Set the orientation of the object.
Ogre::SceneManager * scene_manager_
Ogre scene manager this object is part of.
void setUserData(const Ogre::Any &data)
Sets user data on all ogre objects we own.
static const Ogre::ColourValue default_y_color_
static const Ogre::ColourValue & getDefaultZColor()
virtual void setScale(const Ogre::Vector3 &scale)
Set the scale of the object. Always relative to the identity orientation of the object.
static const Ogre::ColourValue default_x_color_