Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGMANAGER_H
17 #define SURGSIM_GRAPHICS_OSGMANAGER_H
23 #include <osgViewer/CompositeViewer>
36 class OsgScreenSpacePass;
86 bool addView(std::shared_ptr<View> view)
override;
92 bool removeView(std::shared_ptr<View> view)
override;
113 #endif // SURGSIM_GRAPHICS_OSGMANAGER_H
bool doStartUp() override
Starts up the manager after all threads have initialized.
Definition: OsgManager.cpp:215
bool doUpdate(double dt) override
Performs an update for a single timestep.
Definition: OsgManager.cpp:220
friend class OsgManagerTest
Definition: OsgManager.h:61
bool addView(std::shared_ptr< View > view) override
Adds a view to the manager.
Definition: OsgManager.cpp:175
bool removeView(std::shared_ptr< View > view) override
Removes a view from the manager.
Definition: OsgManager.cpp:197
bool addRepresentation(std::shared_ptr< Representation > representation) override
Adds an representation to the manager.
Definition: OsgManager.cpp:152
osg::ref_ptr< osgViewer::CompositeViewer > m_viewer
OSG CompositeViewer to manage and render the individual views.
Definition: OsgManager.h:103
std::shared_ptr< Group > getOrCreateGroup(const std::string &name) override
Fetch a group with a given name, if the group does not exist, create it.
Definition: OsgManager.cpp:131
void doBeforeStop()
Prepares the manager for its execution to be stopped.
Definition: OsgManager.cpp:252
bool doInitialize() override
Initializes the manager.
Definition: OsgManager.cpp:209
Definition: CompoundShapeToGraphics.cpp:29
virtual ~OsgManager()
Destructor.
Definition: OsgManager.cpp:110
OsgManager()
Constructor.
Definition: OsgManager.cpp:104
osg::ref_ptr< osgViewer::CompositeViewer > getOsgCompositeViewer() const
Returns the OSG CompositeViewer used to manage and render the views.
Definition: OsgManager.cpp:263
void dumpDebugInfo() const override
OsgManager will write out the scenegraph in the working directory.
Definition: OsgManager.cpp:268
void setMultiThreading(bool val)
Change the threading model of the graphics manager viewer.
Definition: OsgManager.cpp:114
std::shared_ptr< OsgScreenSpacePass > m_hudElement
Builtin RenderPass that can be used for HUD functionality, uses Group "ossHud".
Definition: OsgManager.h:106
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
bool isMultiThreading() const
Definition: OsgManager.cpp:126
Basic graphics manager class which manages graphics components to provide a visualization of the scen...
Definition: Manager.h:37
OSG-based implementation of graphics manager class.
Definition: OsgManager.h:42