All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros
graphics::LeafNodeCapsule Class Reference

Implementation of the Capsule GraphicalObject in OSG render. More...

#include <gepetto/viewer/leaf-node-capsule.h>

Inheritance diagram for graphics::LeafNodeCapsule:
Collaboration diagram for graphics::LeafNodeCapsule:

Public Member Functions

virtual LeafNodeCapsulePtr_t clone (void) const
 Proceed to a clonage of the current object defined by the copy constructor. More...
 
virtual LeafNodeCapsulePtr_t copy () const
 Copy. More...
 
LeafNodeCapsulePtr_t self (void) const
 Return a shared pointer of the current object. More...
 
virtual void setRadius (const float &radius)
 Fix the new radius of the capsule Note : radius must be positive scalar. More...
 
float getRadius () const
 
virtual void setHeight (const float &height)
 Fix the new jeight of the capsule Note : radius must be positive scalar. More...
 
float getHeight () const
 
virtual void setColor (const osgVector4 &color)
 Replace the old color pointer with the new one defined by ColorConstSharedPtr color_ptr. More...
 
osgVector4 getColor () const
 
void setTexture (const std::string &image_path)
 
virtual ~LeafNodeCapsule ()
 Destructor. More...
 
- Public Member Functions inherited from graphics::Node
std::string getID () const
 getID is a public method for getting the id_name of the Object More...
 
void applyConfiguration (osgVector3 position, osgQuat quat)
 Apply a new global configuration. More...
 
void setStaticTransform (osgVector3 position, osgQuat quat)
 Set Static transformation. More...
 
virtual void setVisibilityMode (const VisibilityMode &visibility_state)
 Virtual method for setting the visibility mode of the object : visible or not visible. More...
 
virtual void setLightingMode (const LightingMode &lighting_state)
 Virtual method for setting the lighting mode of the object : influence by light or not. More...
 
virtual void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not. More...
 
virtual void setScale (const float &scale)
 Set scale value of the OSG object. More...
 
virtual void setScale (const osg::Vec3d &scale)
 Set scales value of the OSG object. More...
 
virtual ::osg::GroupRefPtr asGroup () const
 Return the root node to include it in the scene. More...
 
void addLandmark (const float &size)
 
void deleteLandmark ()
 
virtual ~Node ()
 Return the alpha value. More...
 

Static Public Member Functions

static LeafNodeCapsulePtr_t create (const std::string &name, const float &radius, const float &height)
 Static method which create a new box defined by the half_axis vector. More...
 
static LeafNodeCapsulePtr_t create (const std::string &name, const float &radius, const float &height, const osgVector4 &color)
 
static LeafNodeCapsulePtr_t createCopy (const LeafNodeCapsulePtr_t &other)
 Static method for creating a clone of box other with the copy constructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from graphics::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)
 

Detailed Description

Implementation of the Capsule GraphicalObject in OSG render.

Constructor & Destructor Documentation

virtual graphics::LeafNodeCapsule::~LeafNodeCapsule ( )
virtual

Destructor.

Member Function Documentation

virtual LeafNodeCapsulePtr_t graphics::LeafNodeCapsule::clone ( void  ) const
virtual

Proceed to a clonage of the current object defined by the copy constructor.

virtual LeafNodeCapsulePtr_t graphics::LeafNodeCapsule::copy ( ) const
inlinevirtual

Copy.

Proceed to a copy of the currend object as clone

static LeafNodeCapsulePtr_t graphics::LeafNodeCapsule::create ( const std::string &  name,
const float &  radius,
const float &  height 
)
static

Static method which create a new box defined by the half_axis vector.

static LeafNodeCapsulePtr_t graphics::LeafNodeCapsule::create ( const std::string &  name,
const float &  radius,
const float &  height,
const osgVector4 color 
)
static
static LeafNodeCapsulePtr_t graphics::LeafNodeCapsule::createCopy ( const LeafNodeCapsulePtr_t &  other)
static

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

osgVector4 graphics::LeafNodeCapsule::getColor ( ) const
inline
float graphics::LeafNodeCapsule::getHeight ( ) const
inline
float graphics::LeafNodeCapsule::getRadius ( ) const
inline
LeafNodeCapsulePtr_t graphics::LeafNodeCapsule::self ( void  ) const

Return a shared pointer of the current object.

virtual void graphics::LeafNodeCapsule::setColor ( const osgVector4 color)
virtual

Replace the old color pointer with the new one defined by ColorConstSharedPtr color_ptr.

virtual void graphics::LeafNodeCapsule::setHeight ( const float &  height)
virtual

Fix the new jeight of the capsule Note : radius must be positive scalar.

virtual void graphics::LeafNodeCapsule::setRadius ( const float &  radius)
virtual

Fix the new radius of the capsule Note : radius must be positive scalar.

void graphics::LeafNodeCapsule::setTexture ( const std::string &  image_path)