ogre_tools::Axes Class Reference

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

#include <axes.h>

Inheritance diagram for ogre_tools::Axes:
Inheritance graph
[legend]

List of all members.

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.
ShapegetXShape ()
ShapegetYShape ()
ShapegetZShape ()
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)
Axesoperator= (const Axes &other)

Private Attributes

Ogre::SceneNode * scene_node_
Shapex_axis_
 Cylinder for the X-axis.
Shapey_axis_
 Cylinder for the Y-axis.
Shapez_axis_
 Cylinder for the Z-axis.

Detailed Description

An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue.

Definition at line 57 of file axes.h.


Constructor & Destructor Documentation

ogre_tools::Axes::Axes ( Ogre::SceneManager *  manager,
Ogre::SceneNode *  parent_node = NULL,
float  length = 1.0f,
float  radius = 0.1f 
)

Constructor.

Parameters:
manager Scene manager this object is a part of
parent_node A scene node to use as the parent of this object. If NULL, uses the root scene node.
length Length of the axes
radius Radius of the axes

Definition at line 33 of file axes.cpp.

ogre_tools::Axes::~Axes (  )  [virtual]

Definition at line 50 of file axes.cpp.

ogre_tools::Axes::Axes ( const Axes other  )  [inline, private]

Definition at line 111 of file axes.h.


Member Function Documentation

const Ogre::ColourValue & ogre_tools::Axes::getDefaultXColor (  )  [static]

Definition at line 134 of file axes.cpp.

const Ogre::ColourValue & ogre_tools::Axes::getDefaultYColor (  )  [static]

Definition at line 139 of file axes.cpp.

const Ogre::ColourValue & ogre_tools::Axes::getDefaultZColor (  )  [static]

Definition at line 144 of file axes.cpp.

const Ogre::Quaternion & ogre_tools::Axes::getOrientation (  )  [virtual]

Get the local orientation of this object.

Returns:
The orientation

Implements ogre_tools::Object.

Definition at line 100 of file axes.cpp.

const Ogre::Vector3 & ogre_tools::Axes::getPosition (  )  [virtual]

Get the local position of this object.

Returns:
The position

Implements ogre_tools::Object.

Definition at line 95 of file axes.cpp.

Ogre::SceneNode* ogre_tools::Axes::getSceneNode (  )  [inline]

Get the scene node associated with this object.

Returns:
The scene node associated with this object

Definition at line 89 of file axes.h.

Shape* ogre_tools::Axes::getXShape (  )  [inline]

Definition at line 96 of file axes.h.

Shape* ogre_tools::Axes::getYShape (  )  [inline]

Definition at line 97 of file axes.h.

Shape* ogre_tools::Axes::getZShape (  )  [inline]

Definition at line 98 of file axes.h.

Axes& ogre_tools::Axes::operator= ( const Axes other  )  [inline, private]

Definition at line 112 of file axes.h.

void ogre_tools::Axes::set ( float  length,
float  radius 
)

Set the parameters on this object.

Parameters:
length Length of the axes
radius Radius of the axes

Definition at line 59 of file axes.cpp.

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].

Parameters:
r Red component
g Green component
b Blue component

Todo:
should anything be done here?

Implements ogre_tools::Object.

Definition at line 89 of file axes.cpp.

void ogre_tools::Axes::setOrientation ( const Ogre::Quaternion &  orientation  )  [virtual]

Set the orientation of the object.

Parameters:
Orientation quaternion orientation to set to.

Implements ogre_tools::Object.

Definition at line 79 of file axes.cpp.

void ogre_tools::Axes::setPosition ( const Ogre::Vector3 &  position  )  [virtual]

Set the position of this object.

Parameters:
Position vector position to set to.

Implements ogre_tools::Object.

Definition at line 74 of file axes.cpp.

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.

Parameters:
Scale vector scale to set to.

Implements ogre_tools::Object.

Definition at line 84 of file axes.cpp.

void ogre_tools::Axes::setToDefaultColors (  ) 

Definition at line 127 of file axes.cpp.

void ogre_tools::Axes::setUserData ( const Ogre::Any &  data  )  [virtual]

Sets user data on all ogre objects we own.

Implements ogre_tools::Object.

Definition at line 105 of file axes.cpp.

void ogre_tools::Axes::setXColor ( const Ogre::ColourValue &  col  ) 

Definition at line 112 of file axes.cpp.

void ogre_tools::Axes::setYColor ( const Ogre::ColourValue &  col  ) 

Definition at line 117 of file axes.cpp.

void ogre_tools::Axes::setZColor ( const Ogre::ColourValue &  col  ) 

Definition at line 122 of file axes.cpp.


Member Data Documentation

Ogre::SceneNode* ogre_tools::Axes::scene_node_ [private]

Definition at line 114 of file axes.h.

Cylinder for the X-axis.

Definition at line 116 of file axes.h.

Cylinder for the Y-axis.

Definition at line 117 of file axes.h.

Cylinder for the Z-axis.

Definition at line 118 of file axes.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines


ogre_tools
Author(s): Josh Faust
autogenerated on Fri Jan 11 09:10:16 2013