16 #ifndef SURGSIM_GRAPHICS_VIEWELEMENT_H 17 #define SURGSIM_GRAPHICS_VIEWELEMENT_H 19 #include "SurgSim/Framework/BasicSceneElement.h" 51 virtual bool setView(std::shared_ptr<View> view);
55 std::shared_ptr<View> getView();
59 void setCamera(std::shared_ptr<Camera> camera);
63 std::shared_ptr<Camera> getCamera();
67 virtual std::shared_ptr<SurgSim::Input::CommonDevice> getKeyboardDevice() = 0;
71 virtual void enableKeyboardDevice(
bool val) = 0;
75 virtual std::shared_ptr<SurgSim::Input::CommonDevice> getMouseDevice() = 0;
79 virtual void enableMouseDevice(
bool val) = 0;
84 bool doInitialize()
override;
88 std::shared_ptr<View> m_view;
91 std::shared_ptr<Camera> m_camera;
97 #endif // SURGSIM_GRAPHICS_VIEWELEMENT_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Simple concrete implementation of a scene element that does not have any higher logic.
Definition: BasicSceneElement.h:29
Basic SceneElement that wraps a View so that it can be added to the Scene.
Definition: ViewElement.h:39