#include <gepetto/viewer/group-node.h>
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 bool | hasChild (::graphics::NodePtr_t child_ptr) |
Return true if this group contains this child. 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 | setAlpha (const float &alpha) |
Replace the old transparency value with alpha Note : alpha must be in [0,1]. More... | |
virtual void | setScale (const float scale) |
Apply the scale value of all children note : scale value must be positive. More... | |
void | setColor (const osgVector4 &color) |
Set the color of the object. More... | |
void | traverse (NodeVisitor &visitor) |
virtual osg::ref_ptr< osg::Node > | getOsgNode () const |
virtual | ~GroupNode () |
![]() | |
std::pair< osgVector3, osgQuat > | getGlobalTransform () 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... | |
void | applyConfiguration (const osgVector3 &position, const osgQuat &quat) |
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 VisibilityMode | getVisibilityMode () |
virtual void | setScale (const osg::Vec3d &scale) |
Set scales value of the OSG object. More... | |
osgVector3 | getScale () const |
Get scale. More... | |
virtual ::osg::GroupRefPtr | asGroup () const |
Return the root node to include it in the scene. More... | |
virtual void | addLandmark (const float &size) |
::osg::StateSetRefPtr | getOrCreateRootStateSet () |
void | deleteLandmark () |
void | setHighlightState (unsigned int state) |
float | getAlpha () 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) |
const PropertyMap_t & | properties () const |
virtual | ~Node () |
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... | |
Public Attributes | |
SCENE_VIEWER_ACCEPT_VISITOR | |
![]() | |
SCENE_VIEWER_ACCEPT_VISITOR | |
Protected Member Functions | |
GroupNode (const std::string &name) | |
Default constructor. More... | |
GroupNode (const GroupNode &other) | |
Copy constructor. More... | |
void | initWeakPtr (GroupNodeWeakPtr other_weak_ptr) |
Initialize weak_ptr. More... | |
![]() | |
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) |
const PropertyPtr_t & | property (const std::string &name) const |
void | addProperty (const PropertyPtr_t &prop) |
void | addProperty (const std::string &name, const PropertyPtr_t &prop) |
Additional Inherited Members | |
![]() | |
::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 |
Default constructor.
|
protected |
Copy constructor.
|
virtual |
|
virtual |
Add a GraphicalObject to the list.
|
virtual |
Proceed to a clonage of the current object defined by the copy constructor.
|
static |
Static method which create a new box defined by the half_axis vector.
|
static |
Static method for creating a clone of box other with the copy constructor.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented from graphics::Node.
|
virtual |
Return true if this group contains this child.
|
protected |
Initialize weak_ptr.
|
virtual |
Remove all children.
|
virtual |
Remove a GraphicalObject from the list.
GroupNodePtr_t graphics::GroupNode::self | ( | void | ) | const |
Return a shared pointer of the current object.
|
virtual |
Replace the old transparency value with alpha Note : alpha must be in [0,1].
Reimplemented from graphics::Node.
|
virtual |
Set the color of the object.
Implements graphics::Node.
|
virtual |
Virtual method for setting the lighting mode of the object : influence by light or not.
lightingmode | state |
Reimplemented from graphics::Node.
|
virtual |
Apply the scale value of all children note : scale value must be positive.
Reimplemented from graphics::Node.
|
virtual |
Virtual method for setting the visibility mode of the object : visible or not visible.
visibilitymode | state |
Reimplemented from graphics::Node.
|
virtual |
Virtual method for setting the wireframe mode of the object : visible or not.
wireframemode | state |
Reimplemented from graphics::Node.
|
virtual |
Reimplemented from graphics::Node.
graphics::GroupNode::SCENE_VIEWER_ACCEPT_VISITOR |