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