Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGGROUP_H
17 #define SURGSIM_GRAPHICS_OSGGROUP_H
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;
86 #endif // SURGSIM_GRAPHICS_OSGGROUP_H
bool remove(std::shared_ptr< Representation > representation) override
Removes an representation.
Definition: OsgGroup.cpp:81
bool add(std::shared_ptr< Representation > representation) override
Adds an representation.
Definition: OsgGroup.cpp:51
OsgGroup(const std::string &name)
Constructor.
Definition: OsgGroup.cpp:24
Base graphics group class, which defines the interface that all graphics groups must implement.
Definition: Group.h:37
void clear() override
Removes all representations.
Definition: OsgGroup.cpp:96
bool isVisible() const override
Gets whether this group is currently visible.
Definition: OsgGroup.cpp:46
Definition: CompoundShapeToGraphics.cpp:30
OSG implementation of a graphics group.
Definition: OsgGroup.h:34
osg::ref_ptr< osg::Group > getOsgGroup() const
Returns the root OSG group node.
Definition: OsgGroup.cpp:106
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::Switch > m_switch
OSG group node A switch is used to provide visibility functionality.
Definition: OsgGroup.h:79
bool m_isVisible
Whether the group is currently visible or not Newly added representations or groups will have this vi...
Definition: OsgGroup.h:75
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
void setVisible(bool visible) override
Sets whether this group is currently visible.
Definition: OsgGroup.cpp:32