16 #ifndef SURGSIM_DEVICES_MOUSE_MOUSESCAFFOLD_H 17 #define SURGSIM_DEVICES_MOUSE_MOUSESCAFFOLD_H 26 namespace DataStructures
34 class OsgMouseHandler;
41 friend class MouseDeviceTest;
48 explicit MouseScaffold(std::shared_ptr<SurgSim::Framework::Logger> logger =
nullptr);
54 std::shared_ptr<SurgSim::Framework::Logger> getLogger()
const;
59 static std::shared_ptr<MouseScaffold> getOrCreateSharedInstance();
78 bool unregisterDevice();
87 bool updateDevice(
int buttons,
float x,
float y,
int scrollDeltaX,
int scrollDeltaY);
98 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
108 #endif // SURGSIM_DEVICES_MOUSE_MOUSESCAFFOLD_H Definition: DriveElementFromInputBehavior.cpp:27
A class implementing the communication with a mouse.
Definition: MouseDevice.h:51
LogLevel
Logging levels.
Definition: Logger.h:36
A class that implements the behavior of MouseDevice objects.
Definition: MouseScaffold.h:38
Definition: OsgMouseHandler.h:30
static SurgSim::Framework::LogLevel m_defaultLogLevel
The default logging level.
Definition: MouseScaffold.h:100
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Logger used by the scaffold and all devices.
Definition: MouseScaffold.h:98
A collection of NamedData objects.
Definition: DataGroup.h:66
std::unique_ptr< DeviceData > m_device
The mouse device managed by this scaffold.
Definition: MouseScaffold.h:102
Struct to hold a MouseDevice object, a OsgMouseHandler, and a mutex for data passing.
Definition: MouseScaffold.cpp:34