Go to the documentation of this file.
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);
97 #endif // SURGSIM_GRAPHICS_VIEWELEMENT_H
std::shared_ptr< View > m_view
View component that provides the visualization of the graphics representations.
Definition: ViewElement.h:88
virtual ~ViewElement()
Destructor.
Definition: ViewElement.cpp:30
virtual bool setView(std::shared_ptr< View > view)
Sets the view component that provides the visualization of the graphics representations.
Definition: ViewElement.cpp:34
std::shared_ptr< View > getView()
Returns the view component that provides the visualization of the graphics representations.
Definition: ViewElement.cpp:44
Simple concrete implementation of a scene element that does not have any higher logic.
Definition: BasicSceneElement.h:30
virtual std::shared_ptr< SurgSim::Input::CommonDevice > getKeyboardDevice()=0
Return the keyboard to be used with this view.
virtual void enableMouseDevice(bool val)=0
Turn on/off the mouse device to be used.
virtual void enableKeyboardDevice(bool val)=0
Turn on/off the keyboard device to be used.
std::shared_ptr< Camera > m_camera
Camera component connected to the view.
Definition: ViewElement.h:91
Definition: CompoundShapeToGraphics.cpp:30
ViewElement(const std::string &name)
Constructor.
Definition: ViewElement.cpp:26
bool doInitialize() override
Initializes the scene element.
Definition: ViewElement.cpp:59
void setCamera(std::shared_ptr< Camera > camera)
Sets the camera for the view in this sceneelement.
Definition: ViewElement.cpp:49
Basic SceneElement that wraps a View so that it can be added to the Scene.
Definition: ViewElement.h:40
virtual std::shared_ptr< SurgSim::Input::CommonDevice > getMouseDevice()=0
Return the mouse to be used with this view.
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
std::shared_ptr< Camera > getCamera()
Get the camera for the view in this sceneelement.
Definition: ViewElement.cpp:54