Public Member Functions | Protected Attributes
rviz::Line Class Reference

#include <line.h>

Inheritance diagram for rviz::Line:
Inheritance graph
[legend]

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

rviz::Line::Line ( Ogre::SceneManager *  manager,
Ogre::SceneNode *  parent_node = NULL 
)

Constructor.

Parameters:
managerScene manager this object is a part of
parent_nodeA 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.

rviz::Line::~Line ( ) [virtual]

Definition at line 67 of file line.cpp.


Member Function Documentation

const Ogre::Quaternion & rviz::Line::getOrientation ( ) [virtual]

Get the local orientation of this object.

Returns:
The orientation

Implements rviz::Object.

Definition at line 119 of file line.cpp.

const Ogre::Vector3 & rviz::Line::getPosition ( ) [virtual]

Get the local position of this object.

Returns:
The position

Implements rviz::Object.

Definition at line 114 of file line.cpp.

void rviz::Line::setColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of the object. Values are in the range [0, 1].

Parameters:
rRed component
gGreen component
bBlue component

Implements rviz::Object.

Definition at line 109 of file line.cpp.

void rviz::Line::setOrientation ( const Ogre::Quaternion &  orientation) [virtual]

Set the orientation of the object.

Parameters:
Orientationquaternion orientation to set to.

Implements rviz::Object.

Definition at line 99 of file line.cpp.

void rviz::Line::setPoints ( Ogre::Vector3  start,
Ogre::Vector3  end 
)

Set the start and end point of the line.

Parameters:
startThe start point.
endThe end point.

Definition at line 78 of file line.cpp.

void rviz::Line::setPosition ( const Ogre::Vector3 &  position) [virtual]

Set the position of this object.

Parameters:
Positionvector position to set to.

Implements rviz::Object.

Definition at line 94 of file line.cpp.

void rviz::Line::setScale ( const Ogre::Vector3 &  scale) [virtual]

Set the scale of the object. Always relative to the identity orientation of the object.

Parameters:
Scalevector scale to set to.

Implements rviz::Object.

Definition at line 104 of file line.cpp.

void rviz::Line::setUserData ( const Ogre::Any &  data) [virtual]

Set the user data on this object.

Parameters:
data

Implements rviz::Object.

Definition at line 124 of file line.cpp.

void rviz::Line::setVisible ( bool  visible)

Definition at line 88 of file line.cpp.


Member Data Documentation

Ogre::ManualObject* rviz::Line::manual_object_ [protected]

Definition at line 119 of file line.h.

Ogre::MaterialPtr rviz::Line::manual_object_material_ [protected]

Definition at line 120 of file line.h.

Ogre::SceneNode* rviz::Line::scene_node_ [protected]

Definition at line 118 of file line.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Mon Oct 6 2014 07:26:37