An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue.
More...
#include <axes.h>
An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue.
Definition at line 58 of file axes.h.
rviz::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 43 of file axes.cpp.
rviz::Axes::Axes |
( |
const Axes & |
other | ) |
|
|
inlineprivate |
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 |
Get the local orientation of this object.
- Returns
- The orientation
Implements rviz::Object.
Definition at line 110 of file axes.cpp.
Get the local position of this object.
- Returns
- The position
Implements rviz::Object.
Definition at line 105 of file axes.cpp.
Ogre::SceneNode* rviz::Axes::getSceneNode |
( |
| ) |
|
|
inline |
Get the scene node associated with this object.
- Returns
- The scene node associated with this object
Definition at line 90 of file axes.h.
Shape* rviz::Axes::getXShape |
( |
| ) |
|
|
inline |
Shape* rviz::Axes::getYShape |
( |
| ) |
|
|
inline |
Shape* rviz::Axes::getZShape |
( |
| ) |
|
|
inline |
Axes& rviz::Axes::operator= |
( |
const Axes & |
other | ) |
|
|
inlineprivate |
void rviz::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 69 of file axes.cpp.
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].
- Parameters
-
r | Red component |
g | Green component |
b | Blue component |
- Todo:
- should anything be done here?
Implements rviz::Object.
Definition at line 99 of file axes.cpp.
void rviz::Axes::setOrientation |
( |
const Ogre::Quaternion & |
orientation | ) |
|
|
virtual |
Set the orientation of the object.
- Parameters
-
Orientation | quaternion orientation to set to. |
Implements rviz::Object.
Definition at line 89 of file axes.cpp.
Set the position of this object.
- Parameters
-
Position | vector position to set to. |
Implements rviz::Object.
Definition at line 84 of file axes.cpp.
Set the scale of the object. Always relative to the identity orientation of the object.
- Parameters
-
Scale | vector scale to set to. |
Implements rviz::Object.
Definition at line 94 of file axes.cpp.
void rviz::Axes::setToDefaultColors |
( |
| ) |
|
void rviz::Axes::setUserData |
( |
const Ogre::Any & |
data | ) |
|
|
virtual |
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_ |
|
staticprivate |
const Ogre::ColourValue rviz::Axes::default_y_color_ |
|
staticprivate |
const Ogre::ColourValue rviz::Axes::default_z_color_ |
|
staticprivate |
Ogre::SceneNode* rviz::Axes::scene_node_ |
|
private |
Shape* rviz::Axes::x_axis_ |
|
private |
Cylinder for the X-axis.
Definition at line 117 of file axes.h.
Shape* rviz::Axes::y_axis_ |
|
private |
Cylinder for the Y-axis.
Definition at line 118 of file axes.h.
Shape* rviz::Axes::z_axis_ |
|
private |
Cylinder for the Z-axis.
Definition at line 119 of file axes.h.
The documentation for this class was generated from the following files: