16 #ifndef SURGSIM_GRAPHICS_OSGGROUP_H
17 #define SURGSIM_GRAPHICS_OSGGROUP_H
38 explicit OsgGroup(
const std::string& name);
42 virtual void setVisible(
bool visible)
override;
52 virtual bool add(std::shared_ptr<Representation> representation)
override;
58 virtual bool append(std::shared_ptr<Group> group)
override;
64 virtual bool remove(std::shared_ptr<Representation> representation)
override;
67 virtual void clear()
override;
86 #endif // SURGSIM_GRAPHICS_OSGGROUP_H
Definition: DriveElementFromInputBehavior.cpp:27
virtual bool append(std::shared_ptr< Group > group) override
Adds all representations in another group to this group.
Definition: OsgGroup.cpp:67
osg::ref_ptr< osg::Group > getOsgGroup() const
Returns the root OSG group node.
Definition: OsgGroup.cpp:106
virtual bool add(std::shared_ptr< Representation > representation) override
Adds an representation.
Definition: OsgGroup.cpp:51
virtual bool isVisible() const override
Gets whether this group is currently visible.
Definition: OsgGroup.cpp:46
OSG implementation of a graphics group.
Definition: OsgGroup.h:33
virtual void setVisible(bool visible) override
Sets whether this group is currently visible.
Definition: OsgGroup.cpp:32
bool m_isVisible
Whether the group is currently visible or not Newly added representations or groups will have this vi...
Definition: OsgGroup.h:75
osg::ref_ptr< osg::Switch > m_switch
OSG group node A switch is used to provide visibility functionality.
Definition: OsgGroup.h:79
Base graphics group class, which defines the interface that all graphics groups must implement...
Definition: Group.h:36
virtual void clear() override
Removes all representations.
Definition: OsgGroup.cpp:96
OsgGroup(const std::string &name)
Constructor.
Definition: OsgGroup.cpp:24