gepetto::viewer::NodeRod Class Reference

#include <gepetto/viewer/node-rod.h>

Inheritance diagram for gepetto::viewer::NodeRod:
[legend]
Collaboration diagram for gepetto::viewer::NodeRod:
[legend]

Public Types

typedef osg::Vec3f::value_type value_type
 

Public Member Functions

virtual std::string getCapsuleName (size_t i)
 Return the ID of the capsule at the index i. More...
 
virtual LeafNodeCapsulePtr_t getCapsule (size_t i) const
 
NodeRodPtr_t self (void) const
 Return a shared pointer of the current object. More...
 
virtual float radius () const
 
virtual float totalLength () const
 
void setColor (const osgVector4 &color)
 Set the color of the object. More...
 
virtual osgVector4 color () const
 
virtual size_t maxCapsule () const
 
virtual void applyConfiguration (std::vector< std::vector< value_type > > params)
 
- Public Member Functions inherited from gepetto::viewer::Node
const ConfigurationgetGlobalTransform () const
 returns rotation and position of the node in word frame More...
 
std::string getID () const
 getID is a public method for getting the id_name of the Object More...
 
bool isDirty () const
 
void setDirty (bool dirty=true)
 Called when a property is modified. More...
 
void applyConfiguration (const osgVector3 &position, const osgQuat &quat)
 Apply a new global configuration. More...
 
void applyConfiguration (const Configuration &cfg)
 Apply a new global configuration. More...
 
void setStaticTransform (const osgVector3 &position, const osgQuat &quat)
 Set Static transformation. More...
 
osgQuat getStaticRotation () const
 Get Static rotation. More...
 
osgVector3 getStaticPosition () const
 Get Static position. More...
 
virtual void setVisibilityMode (const VisibilityMode &visibility_state)
 Virtual method for setting the visibility mode of the object : visible or not visible. More...
 
virtual const VisibilityModegetVisibilityMode () const
 
virtual void setLightingMode (const LightingMode &lighting_state)
 Virtual method for setting the lighting mode of the object : influence by light or not. More...
 
virtual LightingMode getLightingMode () const
 
virtual void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not. More...
 
virtual const WireFrameModegetWireFrameMode () const
 
virtual void setScale (float scale)
 Set scale value of the OSG object. More...
 
virtual void setScale (const osgVector3 &scale)
 Set scales value of the OSG object. More...
 
osgVector3 getScale () const
 Get scale. More...
 
virtual osg::ref_ptr< osg::Node > getOsgNode () const
 
virtual ::osg::GroupRefPtr asGroup () const
 Return the root node to include it in the scene. More...
 
virtual void addLandmark (const float &size)
 
bool hasLandmark () const
 
::osg::StateSetRefPtr getOrCreateRootStateSet ()
 
void deleteLandmark ()
 
bool getHighlightEnabled () const
 
void setHighlightEnabled (bool enabled)
 
void setHighlightState (unsigned int state)
 
const std::size_t & getHighlightState () const
 
virtual void setAlpha (const float &alpha)
 
virtual float getAlpha () const
 
virtual void traverse (NodeVisitor &visitor)
 
virtual ~Node ()
 
- Public Member Functions inherited from gepetto::viewer::Properties
template<typename T >
bool getProperty (const std::string &name, T &value) const
 
template<typename T >
bool setProperty (const std::string &name, const T &value)
 
bool hasProperty (const std::string &name) const
 
const PropertyMap_tproperties () const
 
void addProperty (const PropertyPtr_t &prop)
 
void addProperty (const std::string &name, const PropertyPtr_t &prop)
 

Static Public Member Functions

static NodeRodPtr_t create (const std::string &name, osgVector4 color, float radius, float totalLength, short maxCapsule)
 Static method which create the new rod. More...
 
static NodeRodPtr_t createCopy (NodeRodPtr_t other)
 Static method for creating a clone of the rod other with the copy constructor. More...
 

Protected Member Functions

 NodeRod (const std::string &name, osgVector4 color, float radius, float totalLength, size_t maxCapsule)
 Default constructor. More...
 
 NodeRod (const NodeRod &other)
 Copy constructor. More...
 
- Protected Member Functions inherited from gepetto::viewer::Node
 Node (const std::string &name)
 Default constructor. More...
 
 Node (const Node &other)
 Copy constructor. More...
 
::osg::GroupRefPtr asQueue () const
 Return the root node to include it in the scene. More...
 
void setID (const std::string &id_name)
 
- Protected Member Functions inherited from gepetto::viewer::Properties
const PropertyPtr_t & property (const std::string &name) const
 

Additional Inherited Members

- Public Attributes inherited from gepetto::viewer::Node
 SCENE_VIEWER_ACCEPT_VISITOR
 
- Protected Attributes inherited from gepetto::viewer::Node
::osg::GeodeRefPtr landmark_geode_ptr_
 protected because it's used in LeafNodeCapsule More...
 
::osg::GeodeRefPtr geode_ptr_
 Geode pointer for landmarks. More...
 
float alpha_
 Alpha value. More...
 
- Protected Attributes inherited from gepetto::viewer::Properties
PropertyMap_t properties_
 

Member Typedef Documentation

typedef osg::Vec3f::value_type gepetto::viewer::NodeRod::value_type

Constructor & Destructor Documentation

gepetto::viewer::NodeRod::NodeRod ( const std::string &  name,
osgVector4  color,
float  radius,
float  totalLength,
size_t  maxCapsule 
)
protected

Default constructor.

gepetto::viewer::NodeRod::NodeRod ( const NodeRod other)
protected

Copy constructor.

Member Function Documentation

virtual void gepetto::viewer::NodeRod::applyConfiguration ( std::vector< std::vector< value_type > >  params)
virtual
virtual osgVector4 gepetto::viewer::NodeRod::color ( ) const
inlinevirtual
static NodeRodPtr_t gepetto::viewer::NodeRod::create ( const std::string &  name,
osgVector4  color,
float  radius,
float  totalLength,
short  maxCapsule 
)
static

Static method which create the new rod.

static NodeRodPtr_t gepetto::viewer::NodeRod::createCopy ( NodeRodPtr_t  other)
static

Static method for creating a clone of the rod other with the copy constructor.

virtual LeafNodeCapsulePtr_t gepetto::viewer::NodeRod::getCapsule ( size_t  i) const
virtual
virtual std::string gepetto::viewer::NodeRod::getCapsuleName ( size_t  i)
virtual

Return the ID of the capsule at the index i.

virtual size_t gepetto::viewer::NodeRod::maxCapsule ( ) const
inlinevirtual
virtual float gepetto::viewer::NodeRod::radius ( ) const
inlinevirtual
NodeRodPtr_t gepetto::viewer::NodeRod::self ( void  ) const

Return a shared pointer of the current object.

void gepetto::viewer::NodeRod::setColor ( const osgVector4 color)
inlinevirtual

Set the color of the object.

Implements gepetto::viewer::Node.

virtual float gepetto::viewer::NodeRod::totalLength ( ) const
inlinevirtual