16 #ifndef SURGSIM_GRAPHICS_OSGVIEWELEMENT_H
17 #define SURGSIM_GRAPHICS_OSGVIEWELEMENT_H
19 #include <osg/ref_ptr>
55 virtual bool setView(std::shared_ptr<View> view)
override;
70 virtual std::shared_ptr<SurgSim::Input::CommonDevice>
getKeyboardDevice()
override;
77 virtual std::shared_ptr<SurgSim::Input::CommonDevice>
getMouseDevice()
override;
93 #endif // SURGSIM_GRAPHICS_OSGVIEWELEMENT_H
Definition: DriveElementFromInputBehavior.cpp:27
OsgViewElement(const std::string &name)
Constructor.
Definition: OsgViewElement.cpp:31
bool m_keyboardEnabled
Indicate if a keyboard device is enabled.
Definition: OsgViewElement.h:84
virtual std::shared_ptr< SurgSim::Input::CommonDevice > getMouseDevice() override
Return the mouse to be used with this view.
Definition: OsgViewElement.cpp:92
virtual bool setView(std::shared_ptr< View > view) override
Sets the view component that provides the visualization of the graphics representations Only allows O...
Definition: OsgViewElement.cpp:45
OSG-based implementation of graphics view element.
Definition: OsgViewElement.h:41
void enableManipulator(bool val)
Enables a camera manipulator, implemented via a trackball, this is a temporary solution as it uses th...
Definition: OsgViewElement.cpp:64
void setManipulatorParameters(const SurgSim::Math::Vector3d &position, const SurgSim::Math::Vector3d &lookat)
As the camera is not accessible from here and as it cannot be controlled from the outside any more we...
Definition: OsgViewElement.cpp:99
Basic SceneElement that wraps a View so that it can be added to the Scene.
Definition: ViewElement.h:39
Definitions of small fixed-size vector types.
virtual void enableKeyboardDevice(bool val) override
Turn on/off the keyboard device to be used.
Definition: OsgViewElement.cpp:72
virtual void enableMouseDevice(bool val) override
Turn on/off the mouse device to be used.
Definition: OsgViewElement.cpp:85
bool m_mouseEnabled
Indicate if a mouse device is enabled.
Definition: OsgViewElement.h:86
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:56
virtual ~OsgViewElement()
Destructor.
Definition: OsgViewElement.cpp:41
virtual std::shared_ptr< SurgSim::Input::CommonDevice > getKeyboardDevice() override
Return the keyboard to be used with this view.
Definition: OsgViewElement.cpp:79