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

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

Inheritance diagram for graphics::GroupNode:
Collaboration diagram for graphics::GroupNode:

Public Member Functions

virtual GroupNodePtr_t clone (void) const
 Proceed to a clonage of the current object defined by the copy constructor. More...
 
GroupNodePtr_t self (void) const
 Return a shared pointer of the current object. More...
 
virtual bool addChild (::graphics::NodePtr_t child_ptr)
 Add a GraphicalObject to the list. More...
 
virtual bool removeChild (::graphics::NodePtr_t child_ptr)
 Remove a GraphicalObject from the list. More...
 
virtual void removeAllChildren ()
 Remove all children. More...
 
virtual size_t getNumOfChildren () const
 
virtual graphics::NodePtr_t getChild (size_t i) const
 
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)
 Replace the old transparency value with alpha Note : alpha must be in [0,1]. More...
 
virtual ~GroupNode ()
 
- 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 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 GroupNodePtr_t create (const std::string &name)
 Static method which create a new box defined by the half_axis vector. More...
 
static GroupNodePtr_t createCopy (GroupNodePtr_t other)
 Static method for creating a clone of box other with the copy constructor. More...
 

Protected Member Functions

 GroupNode (const std::string &name)
 Default constructor. More...
 
 GroupNode (const GroupNode &other)
 Copy constructor. More...
 
- 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)
 

Constructor & Destructor Documentation

graphics::GroupNode::GroupNode ( const std::string &  name)
protected

Default constructor.

graphics::GroupNode::GroupNode ( const GroupNode other)
protected

Copy constructor.

virtual graphics::GroupNode::~GroupNode ( )
virtual

Member Function Documentation

virtual bool graphics::GroupNode::addChild ( ::graphics::NodePtr_t  child_ptr)
virtual

Add a GraphicalObject to the list.

virtual GroupNodePtr_t graphics::GroupNode::clone ( void  ) const
virtual

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

static GroupNodePtr_t graphics::GroupNode::create ( const std::string &  name)
static

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

static GroupNodePtr_t graphics::GroupNode::createCopy ( GroupNodePtr_t  other)
static

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

virtual graphics::NodePtr_t graphics::GroupNode::getChild ( size_t  i) const
inlinevirtual
virtual size_t graphics::GroupNode::getNumOfChildren ( ) const
inlinevirtual
virtual void graphics::GroupNode::removeAllChildren ( )
virtual

Remove all children.

virtual bool graphics::GroupNode::removeChild ( ::graphics::NodePtr_t  child_ptr)
virtual

Remove a GraphicalObject from the list.

GroupNodePtr_t graphics::GroupNode::self ( void  ) const

Return a shared pointer of the current object.

virtual void graphics::GroupNode::setLightingMode ( const LightingMode lighting_state)
virtual

Virtual method for setting the lighting mode of the object : influence by light or not.

Parameters
lightingmodestate

Reimplemented from graphics::Node.

virtual void graphics::GroupNode::setScale ( const float  scale)
virtual

Replace the old transparency value with alpha Note : alpha must be in [0,1].

Apply the scale value of all children note : scale value must be positive

virtual void graphics::GroupNode::setVisibilityMode ( const VisibilityMode visibility_state)
virtual

Virtual method for setting the visibility mode of the object : visible or not visible.

Parameters
visibilitymodestate

Reimplemented from graphics::Node.

virtual void graphics::GroupNode::setWireFrameMode ( const WireFrameMode wireframe_state)
virtual

Virtual method for setting the wireframe mode of the object : visible or not.

Parameters
wireframemodestate

Reimplemented from graphics::Node.