#include <line.h>
List of all members.
Public Member Functions |
virtual const Ogre::Quaternion & | getOrientation () |
| Get the local orientation of this object.
|
virtual const Ogre::Vector3 & | getPosition () |
| Get the local position of this object.
|
| Line (Ogre::SceneManager *manager, Ogre::SceneNode *parent_node=NULL) |
| Constructor.
|
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.
|
void | setPoints (Ogre::Vector3 start, Ogre::Vector3 end) |
| Set the start and end point of the line.
|
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.
|
virtual void | setUserData (const Ogre::Any &data) |
| Set the user data on this object.
|
void | setVisible (bool visible) |
virtual | ~Line () |
Protected Attributes |
Ogre::ManualObject * | manual_object_ |
Ogre::MaterialPtr | manual_object_material_ |
Ogre::SceneNode * | scene_node_ |
Detailed Description
Definition at line 52 of file line.h.
Constructor & Destructor Documentation
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. |
Definition at line 42 of file line.cpp.
Member Function Documentation
Get the local orientation of this object.
- Returns:
- The orientation
Implements rviz::Object.
Definition at line 119 of file line.cpp.
Get the local position of this object.
- Returns:
- The position
Implements rviz::Object.
Definition at line 114 of file line.cpp.
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 109 of file line.cpp.
Set the orientation of the object.
- Parameters:
-
Orientation | quaternion orientation to set to. |
Implements rviz::Object.
Definition at line 99 of file line.cpp.
Set the start and end point of the line.
- Parameters:
-
start | The start point. |
end | The end point. |
Definition at line 78 of file line.cpp.
Set the position of this object.
- Parameters:
-
Position | vector position to set to. |
Implements rviz::Object.
Definition at line 94 of file line.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 104 of file line.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: