16 #ifndef SURGSIM_GRAPHICS_VIEWELEMENT_H
17 #define SURGSIM_GRAPHICS_VIEWELEMENT_H
51 virtual bool setView(std::shared_ptr<View> view);
55 std::shared_ptr<View>
getView();
59 void setCamera(std::shared_ptr<Camera> camera);
75 virtual std::shared_ptr<SurgSim::Input::CommonDevice>
getMouseDevice() = 0;
97 #endif // SURGSIM_GRAPHICS_VIEWELEMENT_H
virtual bool setView(std::shared_ptr< View > view)
Sets the view component that provides the visualization of the graphics representations.
Definition: ViewElement.cpp:34
Definition: DriveElementFromInputBehavior.cpp:27
std::shared_ptr< Camera > getCamera()
Get the camera for the view in this sceneelement.
Definition: ViewElement.cpp:54
virtual std::shared_ptr< SurgSim::Input::CommonDevice > getKeyboardDevice()=0
Return the keyboard to be used with this view.
std::shared_ptr< Camera > m_camera
Camera component connected to the view.
Definition: ViewElement.h:91
Simple concrete implementation of a scene element that does not have any higher logic.
Definition: BasicSceneElement.h:29
virtual void enableMouseDevice(bool val)=0
Turn on/off the mouse device to be used.
virtual ~ViewElement()
Destructor.
Definition: ViewElement.cpp:30
virtual void enableKeyboardDevice(bool val)=0
Turn on/off the keyboard device to be used.
ViewElement(const std::string &name)
Constructor.
Definition: ViewElement.cpp:26
virtual bool doInitialize() override
Initializes the scene element.
Definition: ViewElement.cpp:59
virtual std::shared_ptr< SurgSim::Input::CommonDevice > getMouseDevice()=0
Return the mouse to be used with this view.
Basic SceneElement that wraps a View so that it can be added to the Scene.
Definition: ViewElement.h:39
std::shared_ptr< View > getView()
Returns the view component that provides the visualization of the graphics representations.
Definition: ViewElement.cpp:44
std::shared_ptr< View > m_view
View component that provides the visualization of the graphics representations.
Definition: ViewElement.h:88
void setCamera(std::shared_ptr< Camera > camera)
Sets the camera for the view in this sceneelement.
Definition: ViewElement.cpp:49