16 #ifndef SURGSIM_DEVICES_MOUSE_MOUSEDEVICE_H
17 #define SURGSIM_DEVICES_MOUSE_MOUSEDEVICE_H
30 class OsgMouseHandler;
59 explicit MouseDevice(
const std::string& deviceName);
86 #endif //SURGSIM_DEVICES_MOUSE_MOUSEDEVICE_H
Definition: DriveElementFromInputBehavior.cpp:27
A class implementing the communication with a mouse.
Definition: MouseDevice.h:51
A class that implements the behavior of MouseDevice objects.
Definition: MouseScaffold.h:38
Definition: OsgMouseHandler.h:30
OsgMouseHandler * getMouseHandler() const
Get mouse handler.
Definition: MouseDevice.cpp:65
std::shared_ptr< MouseScaffold > m_scaffold
Communication with hardware is handled by scaffold.
Definition: MouseDevice.h:80
virtual bool initialize() override
Initialize corresponding MouseScaffold.
Definition: MouseDevice.cpp:39
bool isInitialized() const
Check if the scaffold of this device is initialized.
Definition: MouseDevice.cpp:60
friend class MouseDeviceTest
Definition: MouseDevice.h:54
virtual bool finalize() override
"De"-initialize corresponding MouseScaffold.
Definition: MouseDevice.cpp:52
virtual ~MouseDevice()
Destructor.
Definition: MouseDevice.cpp:31
MouseDevice(const std::string &deviceName)
Constructor.
Definition: MouseDevice.cpp:26