9 #ifndef GEPETTO_VIEWER_GROUPNODE_HH
10 #define GEPETTO_VIEWER_GROUPNODE_HH
25 typedef std::vector<NodePtr_t> Nodes_t;
26 Nodes_t list_of_objects_;
29 GroupNodeWeakPtr weak_ptr_;
79 return list_of_objects_.size();
84 Nodes_t::const_iterator it = list_of_objects_.begin();
85 if (list_of_objects_.size() > i)
87 std::advance(it, (
long)i);
Definition: group-node.h:20
virtual void setAlpha(const float &alpha)
void traverse(NodeVisitor &visitor)
virtual void setLightingMode(const LightingMode &lighting_state)
Virtual method for setting the lighting mode of the object : influence by light or not.
GroupNode(const GroupNode &other)
void initWeakPtr(GroupNodeWeakPtr other_weak_ptr)
GroupNode(const std::string &name)
Default constructor.
SCENE_VIEWER_ACCEPT_VISITOR
Definition: group-node.h:116
static GroupNodePtr_t createCopy(GroupNodePtr_t other)
virtual bool removeChild(NodePtr_t child_ptr)
virtual osg::ref_ptr< osg::Node > getOsgNode() const
GroupNodePtr_t clone(void) const
virtual void setWireFrameMode(const WireFrameMode &wireframe_state)
Virtual method for setting the wireframe mode of the object : visible or not.
void setColor(const osgVector4 &color)
virtual void removeAllChildren()
virtual size_t getNumOfChildren() const
Definition: group-node.h:77
virtual bool hasChild(NodePtr_t child_ptr) const
virtual bool addChild(NodePtr_t child_ptr)
static GroupNodePtr_t create(const std::string &name)
virtual NodePtr_t getChild(size_t i) const
Definition: group-node.h:82
Definition: node-visitor.h:36
Abstract base class of 3D objects in a scene.
Definition: node.h:29
::osg::Vec4f osgVector4
Definition: config-osg.h:110
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:47
viewer::GroupNodePtr_t GroupNodePtr_t
Definition: fwd.hh:50
LightingMode
Definition: config-osg.h:125
WireFrameMode
Definition: config-osg.h:131
Definition: action-search-bar.hh:27