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 59 of file axes.h.
◆ Axes() [1/2]
rviz::Axes::Axes |
( |
Ogre::SceneManager * |
manager, |
|
|
Ogre::SceneNode * |
parent_node = nullptr , |
|
|
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 42 of file axes.cpp.
◆ ~Axes()
◆ Axes() [2/2]
rviz::Axes::Axes |
( |
const Axes & |
| ) |
|
|
privatedelete |
◆ getDefaultXColor()
const Ogre::ColourValue & rviz::Axes::getDefaultXColor |
( |
| ) |
|
|
static |
◆ getDefaultYColor()
const Ogre::ColourValue & rviz::Axes::getDefaultYColor |
( |
| ) |
|
|
static |
◆ getDefaultZColor()
const Ogre::ColourValue & rviz::Axes::getDefaultZColor |
( |
| ) |
|
|
static |
◆ getOrientation()
const Ogre::Quaternion & rviz::Axes::getOrientation |
( |
| ) |
|
|
overridevirtual |
Get the local orientation of this object.
- Returns
- The orientation
Implements rviz::Object.
Definition at line 108 of file axes.cpp.
◆ getPosition()
const Ogre::Vector3 & rviz::Axes::getPosition |
( |
| ) |
|
|
overridevirtual |
Get the local position of this object.
- Returns
- The position
Implements rviz::Object.
Definition at line 103 of file axes.cpp.
◆ getSceneNode()
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 95 of file axes.h.
◆ getXShape()
Shape* rviz::Axes::getXShape |
( |
| ) |
|
|
inline |
◆ getYShape()
Shape* rviz::Axes::getYShape |
( |
| ) |
|
|
inline |
◆ getZShape()
Shape* rviz::Axes::getZShape |
( |
| ) |
|
|
inline |
◆ operator=()
Axes& rviz::Axes::operator= |
( |
const Axes & |
| ) |
|
|
privatedelete |
◆ set()
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 68 of file axes.cpp.
◆ setColor()
void rviz::Axes::setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
overridevirtual |
Set the color of the object. Values are in the range [0, 1].
- Parameters
-
r | Red component |
g | Green component |
b | Blue component |
Implements rviz::Object.
Definition at line 98 of file axes.cpp.
◆ setOrientation()
void rviz::Axes::setOrientation |
( |
const Ogre::Quaternion & |
orientation | ) |
|
|
overridevirtual |
Set the orientation of the object.
- Parameters
-
Orientation | quaternion orientation to set to. |
Implements rviz::Object.
Definition at line 88 of file axes.cpp.
◆ setPosition()
void rviz::Axes::setPosition |
( |
const Ogre::Vector3 & |
position | ) |
|
|
overridevirtual |
Set the position of this object.
- Parameters
-
Position | vector position to set to. |
Implements rviz::Object.
Definition at line 83 of file axes.cpp.
◆ setScale()
void rviz::Axes::setScale |
( |
const Ogre::Vector3 & |
scale | ) |
|
|
overridevirtual |
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 93 of file axes.cpp.
◆ setToDefaultColors()
void rviz::Axes::setToDefaultColors |
( |
| ) |
|
◆ setUserData()
void rviz::Axes::setUserData |
( |
const Ogre::Any & |
data | ) |
|
|
overridevirtual |
◆ setXColor()
void rviz::Axes::setXColor |
( |
const Ogre::ColourValue & |
col | ) |
|
◆ setYColor()
void rviz::Axes::setYColor |
( |
const Ogre::ColourValue & |
col | ) |
|
◆ setZColor()
void rviz::Axes::setZColor |
( |
const Ogre::ColourValue & |
col | ) |
|
◆ default_x_color_
const Ogre::ColourValue rviz::Axes::default_x_color_ |
|
staticprivate |
◆ default_y_color_
const Ogre::ColourValue rviz::Axes::default_y_color_ |
|
staticprivate |
◆ default_z_color_
const Ogre::ColourValue rviz::Axes::default_z_color_ |
|
staticprivate |
◆ scene_node_
Ogre::SceneNode* rviz::Axes::scene_node_ |
|
private |
◆ x_axis_
Shape* rviz::Axes::x_axis_ |
|
private |
Cylinder for the X-axis.
Definition at line 133 of file axes.h.
◆ y_axis_
Shape* rviz::Axes::y_axis_ |
|
private |
Cylinder for the Y-axis.
Definition at line 134 of file axes.h.
◆ z_axis_
Shape* rviz::Axes::z_axis_ |
|
private |
Cylinder for the Z-axis.
Definition at line 135 of file axes.h.
The documentation for this class was generated from the following files: