16 #ifndef SURGSIM_GRAPHICS_GROUP_H 17 #define SURGSIM_GRAPHICS_GROUP_H 19 #include "SurgSim/Framework/Component.h" 42 explicit Group(
const std::string& name);
58 virtual bool add(std::shared_ptr<Representation> representation);
63 virtual bool append(std::shared_ptr<Group> group);
69 virtual bool remove(std::shared_ptr<Representation> representation);
72 const std::vector<std::shared_ptr<Representation>>&
getMembers()
const;
85 std::vector<std::shared_ptr<Representation>> m_representations;
92 #endif // SURGSIM_GRAPHICS_GROUP_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
virtual bool isVisible() const =0
Gets whether the group is currently visible.
virtual void clear()
Removes all representations.
Definition: Group.cpp:76
const std::vector< std::shared_ptr< Representation > > & getMembers() const
Definition: Group.cpp:71
virtual void setVisible(bool visible)=0
Sets whether the group is currently visible.
virtual ~Group()
Destructor.
Definition: Group.cpp:30
Base graphics group class, which defines the interface that all graphics groups must implement...
Definition: Group.h:36
Group(const std::string &name)
Constructor.
Definition: Group.cpp:25
virtual bool append(std::shared_ptr< Group > group)
Adds all representations in another group to this group.
Definition: Group.cpp:45
virtual bool add(std::shared_ptr< Representation > representation)
Adds an representation.
Definition: Group.cpp:34
std::string getName() const
Definition: Group.cpp:81