Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_OSGVIEWELEMENT_H
17 #define SURGSIM_GRAPHICS_OSGVIEWELEMENT_H
19 #include <osg/ref_ptr>
55 bool setView(std::shared_ptr<View> view)
override;
77 std::shared_ptr<SurgSim::Input::CommonDevice>
getMouseDevice()
override;
93 #endif // SURGSIM_GRAPHICS_OSGVIEWELEMENT_H
Definitions of small fixed-size vector types.
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
virtual ~OsgViewElement()
Destructor.
Definition: OsgViewElement.cpp:41
void enableKeyboardDevice(bool val) override
Turn on/off the keyboard device to be used.
Definition: OsgViewElement.cpp:72
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
OSG-based implementation of graphics view element.
Definition: OsgViewElement.h:42
Definition: CompoundShapeToGraphics.cpp:30
std::shared_ptr< SurgSim::Input::CommonDevice > getMouseDevice() override
Return the mouse to be used with this view.
Definition: OsgViewElement.cpp:92
OsgViewElement(const std::string &name)
Constructor.
Definition: OsgViewElement.cpp:31
Basic SceneElement that wraps a View so that it can be added to the Scene.
Definition: ViewElement.h:40
bool m_keyboardEnabled
Indicate if a keyboard device is enabled.
Definition: OsgViewElement.h:84
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
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
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
std::shared_ptr< SurgSim::Input::CommonDevice > getKeyboardDevice() override
Return the keyboard to be used with this view.
Definition: OsgViewElement.cpp:79
bool m_mouseEnabled
Indicate if a mouse device is enabled.
Definition: OsgViewElement.h:86
void enableMouseDevice(bool val) override
Turn on/off the mouse device to be used.
Definition: OsgViewElement.cpp:85