9#ifndef GEPETTO_VIEWER_GROUPNODE_HH
10#define GEPETTO_VIEWER_GROUPNODE_HH
24 typedef std::vector<NodePtr_t> Nodes_t;
25 Nodes_t list_of_objects_;
28 GroupNodeWeakPtr weak_ptr_;
45 static GroupNodePtr_t
create(
const std::string& name);
53 GroupNodePtr_t
clone(
void)
const;
57 GroupNodePtr_t
self(
void)
const;
69 virtual bool hasChild(NodePtr_t child_ptr)
const;
78 Nodes_t::const_iterator it = list_of_objects_.begin();
79 if (list_of_objects_.size() > i) {
80 std::advance(it, (
long)i);
Definition group-node.h:19
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:109
static GroupNodePtr_t createCopy(GroupNodePtr_t other)
virtual osg::ref_ptr< osg::Node > getOsgNode() const
virtual bool removeChild(NodePtr_t child_ptr)
GroupNodePtr_t self(void) 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:75
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:77
Definition node-visitor.h:35
Abstract base class of 3D objects in a scene.
Definition node.h:25
::osg::Vec4f osgVector4
Definition config-osg.h:100
#define DEF_CLASS_SMART_PTR(className)
Definition macros.h:51
LightingMode
Definition config-osg.h:109
WireFrameMode
Definition config-osg.h:111
Definition action-search-bar.hh:27