gepetto::viewer::GroupNode Class Reference

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

Inheritance diagram for gepetto::viewer::GroupNode:
Collaboration diagram for gepetto::viewer::GroupNode:

Public Member Functions

GroupNodePtr_t clone (void) const
 
GroupNodePtr_t self (void) const
 
virtual bool addChild (NodePtr_t child_ptr)
 
virtual bool removeChild (NodePtr_t child_ptr)
 
virtual bool hasChild (NodePtr_t child_ptr) const
 
virtual void removeAllChildren ()
 
virtual size_t getNumOfChildren () const
 
virtual NodePtr_t getChild (size_t i) 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 void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not. More...
 
virtual void setAlpha (const float &alpha)
 
void setColor (const osgVector4 &color)
 
void traverse (NodeVisitor &visitor)
 
virtual osg::ref_ptr< osg::Node > getOsgNode () const
 
virtual ~GroupNode ()
 
- 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)
 
void applyConfiguration (const Configuration &cfg)
 
void setStaticTransform (const osgVector3 &position, const osgQuat &quat)
 
osgQuat getStaticRotation () const
 
osgVector3 getStaticPosition () const
 
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 LightingMode getLightingMode () const
 
virtual const WireFrameModegetWireFrameMode () const
 
void setScale (float scale)
 
void setScale (const osgVector3 &scale)
 
osgVector3 getScale () 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 float getAlpha () const
 
void setTransparency (const float &transparency)
 
float getTransparency () const
 
virtual ~Node ()
 
- Public Member Functions inherited from gepetto::viewer::Properties
Propertyproperty (const std::string &name) const
 
bool callVoidProperty (const std::string &name) const
 
template<typename T >
bool getProperty (const std::string &name, T &value) const
 
template<typename T >
bool setProperty (const std::string &name, const T &value)
 Set a property and set this object as dirty. More...
 
bool hasProperty (const std::string &name) const
 
const PropertyMap_tproperties () const
 
void addProperty (const PropertyPtr_t &prop)
 Add a property and take ownership. More...
 
void addProperty (const std::string &name, const PropertyPtr_t &prop)
 Add a property and take ownership. More...
 
void addProperty (Property *prop)
 Add a property and leave ownership. More...
 
void addProperty (const std::string &name, Property *prop)
 Add a property and leave ownership. More...
 
QWidget * guiEditor ()
 

Static Public Member Functions

static GroupNodePtr_t create (const std::string &name)
 
static GroupNodePtr_t createCopy (GroupNodePtr_t other)
 

Public Attributes

 SCENE_VIEWER_ACCEPT_VISITOR
 
- Public Attributes inherited from gepetto::viewer::Node
 SCENE_VIEWER_ACCEPT_VISITOR
 

Protected Member Functions

 GroupNode (const std::string &name)
 Default constructor. More...
 
 GroupNode (const GroupNode &other)
 
void initWeakPtr (GroupNodeWeakPtr other_weak_ptr)
 
- Protected Member Functions inherited from gepetto::viewer::Node
 Node (const std::string &name)
 Default constructor. More...
 
 Node (const Node &other)
 
::osg::GroupRefPtr asQueue () const
 Return the root node to include it in the scene. More...
 
void setID (const std::string &id_name)
 
void setTransparentRenderingBin (bool transparent=true, osg::StateSet *ss=NULL)
 

Additional Inherited Members

- Public Types inherited from gepetto::viewer::Properties
typedef std::map< std::string, WrapperPropertyMap_t
 
- Static Public Attributes inherited from gepetto::viewer::Node
static const float TransparencyRenderingBinThreshold
 
- Protected Attributes inherited from gepetto::viewer::Node
::osg::GeodeRefPtr landmark_geode_ptr_
 
::osg::GeodeRefPtr geode_ptr_
 
float alpha_
 
- Protected Attributes inherited from gepetto::viewer::Properties
PropertyMap_t properties_
 

Constructor & Destructor Documentation

◆ GroupNode() [1/2]

gepetto::viewer::GroupNode::GroupNode ( const std::string &  name)
protected

Default constructor.

◆ GroupNode() [2/2]

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

Copy constructor

◆ ~GroupNode()

virtual gepetto::viewer::GroupNode::~GroupNode ( )
virtual

Member Function Documentation

◆ addChild()

virtual bool gepetto::viewer::GroupNode::addChild ( NodePtr_t  child_ptr)
virtual

Add a GraphicalObject to the list

◆ clone()

GroupNodePtr_t gepetto::viewer::GroupNode::clone ( void  ) const

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

◆ create()

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

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

◆ createCopy()

static GroupNodePtr_t gepetto::viewer::GroupNode::createCopy ( GroupNodePtr_t  other)
static

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

◆ getChild()

virtual NodePtr_t gepetto::viewer::GroupNode::getChild ( size_t  i) const
inlinevirtual

◆ getNumOfChildren()

virtual size_t gepetto::viewer::GroupNode::getNumOfChildren ( ) const
inlinevirtual

◆ getOsgNode()

virtual osg::ref_ptr<osg::Node> gepetto::viewer::GroupNode::getOsgNode ( ) const
virtual

Reimplemented from gepetto::viewer::Node.

◆ hasChild()

virtual bool gepetto::viewer::GroupNode::hasChild ( NodePtr_t  child_ptr) const
virtual

Return true if this group contains this child

◆ initWeakPtr()

void gepetto::viewer::GroupNode::initWeakPtr ( GroupNodeWeakPtr  other_weak_ptr)
protected

Initialize weak_ptr

◆ removeAllChildren()

virtual void gepetto::viewer::GroupNode::removeAllChildren ( )
virtual

Remove all children

◆ removeChild()

virtual bool gepetto::viewer::GroupNode::removeChild ( NodePtr_t  child_ptr)
virtual

Remove a GraphicalObject from the list

◆ self()

GroupNodePtr_t gepetto::viewer::GroupNode::self ( void  ) const

Return a shared pointer of the current object

◆ setAlpha()

virtual void gepetto::viewer::GroupNode::setAlpha ( const float &  alpha)
virtual

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

Reimplemented from gepetto::viewer::Node.

◆ setColor()

void gepetto::viewer::GroupNode::setColor ( const osgVector4 color)
virtual

Set the color of the object

Implements gepetto::viewer::Node.

◆ setLightingMode()

virtual void gepetto::viewer::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 gepetto::viewer::Node.

◆ setWireFrameMode()

virtual void gepetto::viewer::GroupNode::setWireFrameMode ( const WireFrameMode wireframe_state)
virtual

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

Parameters
wireframemodestate

Reimplemented from gepetto::viewer::Node.

◆ traverse()

void gepetto::viewer::GroupNode::traverse ( NodeVisitor visitor)
virtual

Reimplemented from gepetto::viewer::Node.

Member Data Documentation

◆ SCENE_VIEWER_ACCEPT_VISITOR

gepetto::viewer::GroupNode::SCENE_VIEWER_ACCEPT_VISITOR

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