16 #ifndef SURGSIM_GRAPHICS_OSGGROUP_H 17 #define SURGSIM_GRAPHICS_OSGGROUP_H 19 #include "SurgSim/Graphics/Group.h" 38 explicit OsgGroup(
const std::string& name);
52 bool add(std::shared_ptr<Representation> representation)
override;
58 bool append(std::shared_ptr<Group> group)
override;
64 bool remove(std::shared_ptr<Representation> representation)
override;
67 void clear()
override;
79 osg::ref_ptr<osg::Switch> m_switch;
86 #endif // SURGSIM_GRAPHICS_OSGGROUP_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
bool append(std::shared_ptr< Group > group) override
Adds all representations in another group to this group.
Definition: OsgGroup.cpp:67
bool add(std::shared_ptr< Representation > representation) override
Adds an representation.
Definition: OsgGroup.cpp:51
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
void setVisible(bool visible) override
Sets whether this group is currently visible.
Definition: OsgGroup.cpp:32
osg::ref_ptr< osg::Group > getOsgGroup() const
Returns the root OSG group node.
Definition: OsgGroup.cpp:106
Base graphics group class, which defines the interface that all graphics groups must implement...
Definition: Group.h:36
void clear() override
Removes all representations.
Definition: OsgGroup.cpp:96
OsgGroup(const std::string &name)
Constructor.
Definition: OsgGroup.cpp:24