Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_MANAGER_H
17 #define SURGSIM_GRAPHICS_MANAGER_H
52 const std::unordered_map<std::string, std::shared_ptr<Group>>&
getGroups()
const
58 const std::vector<std::shared_ptr<View>>&
getViews()
const
72 virtual bool executeAdditions(
const std::shared_ptr<SurgSim::Framework::Component>& component);
77 virtual bool executeRemovals(
const std::shared_ptr<SurgSim::Framework::Component>& component);
88 virtual bool addView(std::shared_ptr<View> view);
98 virtual bool removeView(std::shared_ptr<View> view);
115 virtual void addGroup(std::shared_ptr<Group> group);
134 std::unordered_map<std::string, std::shared_ptr<Group>>
m_groups;
143 #endif // SURGSIM_GRAPHICS_MANAGER_H
const std::vector< std::shared_ptr< Representation > > & getRepresentations() const
Returns the representations assigned to the manager.
Definition: Manager.h:46
virtual bool doInitialize()
Initializes the manager.
Definition: Manager.cpp:175
std::vector< std::shared_ptr< View > > m_views
Views assigned to the manager.
Definition: Manager.h:136
virtual ~Manager()
Destructor.
Definition: Manager.cpp:36
std::vector< std::shared_ptr< Representation > > m_representations
Representations assigned to the manager.
Definition: Manager.h:132
Manager()
Constructor.
Definition: Manager.cpp:31
virtual bool removeView(std::shared_ptr< View > view)
Removes a view from the manager.
Definition: Manager.cpp:158
virtual bool doStartUp()
Starts up the manager after all threads have initialized.
Definition: Manager.cpp:180
virtual std::shared_ptr< Group > getOrCreateGroup(const std::string &name)=0
Fetch a group with a given name, if the group does not exist, create it.
Base Component Manager class.
Definition: ComponentManager.h:50
Definition: CompoundShapeToGraphics.cpp:30
virtual bool executeAdditions(const std::shared_ptr< SurgSim::Framework::Component > &component)
Adds a component.
Definition: Manager.cpp:57
int getType() const override
Overrides ComponentManager::getType()
Definition: Manager.cpp:204
std::unordered_map< std::string, std::shared_ptr< Group > > m_groups
Groups assigned to the manager.
Definition: Manager.h:134
const std::unordered_map< std::string, std::shared_ptr< Group > > & getGroups() const
Returns the groups assigned to the manager.
Definition: Manager.h:52
virtual bool addRepresentation(std::shared_ptr< Representation > representation)
Adds an representation to the manager.
Definition: Manager.cpp:74
virtual bool executeRemovals(const std::shared_ptr< SurgSim::Framework::Component > &component)
Removes a component.
Definition: Manager.cpp:40
virtual void addGroup(std::shared_ptr< Group > group)
Adds a group to the manager, override for manager specific behavior when adding.
Definition: Manager.cpp:209
virtual bool doUpdate(double dt)
Performs an update for a single timestep.
Definition: Manager.cpp:185
void doBeforeStop() override
Prepares the thread for its execution to be stopped.
Definition: Manager.cpp:218
const std::vector< std::shared_ptr< View > > & getViews() const
Returns the views assigned to the manager.
Definition: Manager.h:58
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
virtual bool addView(std::shared_ptr< View > view)
Adds a view to the manager.
Definition: Manager.cpp:118
virtual bool removeRepresentation(std::shared_ptr< Representation > representation)
Removes an representation from the manager.
Definition: Manager.cpp:134
virtual void dumpDebugInfo() const =0
Generic unspecified debug handle, there are no requirements on this interface the manager implementat...
Basic graphics manager class which manages graphics components to provide a visualization of the scen...
Definition: Manager.h:38