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_;
41 void initWeakPtr(GroupNodeWeakPtr other_weak_ptr);
63 virtual bool addChild (
NodePtr_t child_ptr);
67 virtual bool removeChild (
NodePtr_t child_ptr);
71 virtual bool hasChild (
NodePtr_t child_ptr)
const;
75 virtual void removeAllChildren();
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);
96 virtual void setLightingMode (
const LightingMode& lighting_state);
102 virtual void setWireFrameMode (
const WireFrameMode& wireframe_state);
107 virtual void setAlpha (
const float& alpha);
114 virtual osg::ref_ptr<osg::Node> getOsgNode()
const;
::osg::Vec4f osgVector4
Definition: config-osg.h:110
virtual NodePtr_t getChild(size_t i) const
Definition: group-node.h:82
Definition: node-visitor.h:35
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:47
Definition: action-search-bar.hh:27
viewer::GroupNodePtr_t GroupNodePtr_t
Definition: fwd.hh:50
LightingMode
Definition: config-osg.h:124
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
virtual size_t getNumOfChildren() const
Definition: group-node.h:77
SCENE_VIEWER_ACCEPT_VISITOR
Definition: group-node.h:116
Definition: group-node.h:19
WireFrameMode
Definition: config-osg.h:130
Abstract base class of 3D objects in a scene.
Definition: node.h:27