Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_GROUP_H
17 #define SURGSIM_GRAPHICS_GROUP_H
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;
92 #endif // SURGSIM_GRAPHICS_GROUP_H
Base graphics group class, which defines the interface that all graphics groups must implement.
Definition: Group.h:36
virtual bool add(std::shared_ptr< Representation > representation)
Adds an representation.
Definition: Group.cpp:34
virtual ~Group()
Destructor.
Definition: Group.cpp:30
virtual bool remove(std::shared_ptr< Representation > representation)
Removes an representation.
Definition: Group.cpp:59
virtual void setVisible(bool visible)=0
Sets whether the group is currently visible.
std::string getName() const
Definition: Group.cpp:81
Definition: CompoundShapeToGraphics.cpp:29
std::vector< std::shared_ptr< Representation > > m_representations
Representations in this group.
Definition: Group.h:85
virtual bool isVisible() const =0
Gets whether the group is currently visible.
virtual bool append(std::shared_ptr< Group > group)
Adds all representations in another group to this group.
Definition: Group.cpp:45
virtual void clear()
Removes all representations.
Definition: Group.cpp:76
Group(const std::string &name)
Constructor.
Definition: Group.cpp:25
std::string m_name
Definition: Group.h:82
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
const std::vector< std::shared_ptr< Representation > > & getMembers() const
Definition: Group.cpp:71