Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_MOUSE_MOUSESCAFFOLD_H
17 #define SURGSIM_DEVICES_MOUSE_MOUSESCAFFOLD_H
26 namespace DataStructures
34 class OsgMouseHandler;
77 bool updateDevice(
int buttons,
float x,
float y,
int scrollDeltaX,
int scrollDeltaY);
88 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
96 #endif // SURGSIM_DEVICES_MOUSE_MOUSESCAFFOLD_H
friend class MouseDeviceTest
Definition: MouseScaffold.h:41
OsgMouseHandler * getMouseHandler() const
Get mouse handler.
Definition: MouseScaffold.cpp:110
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Logger used by the scaffold and all devices.
Definition: MouseScaffold.h:88
~MouseScaffold()
Destructor.
Definition: MouseScaffold.cpp:61
A class implementing the communication with a mouse.
Definition: MouseDevice.h:53
std::unique_ptr< DeviceData > m_device
The mouse device managed by this scaffold.
Definition: MouseScaffold.h:90
Definition: CompoundShapeToGraphics.cpp:30
Definition: OsgMouseHandler.h:31
A collection of NamedData objects.
Definition: DataGroup.h:69
bool unregisterDevice()
Unregisters the specified device object.
Definition: MouseScaffold.cpp:84
static SurgSim::DataStructures::DataGroup buildDeviceInputData()
Builds the data layout for the application input (i.e. device output).
Definition: MouseScaffold.cpp:116
bool updateDevice(int buttons, float x, float y, int scrollDeltaX, int scrollDeltaY)
Updates the device information for a single device.
Definition: MouseScaffold.cpp:91
A class that implements the behavior of MouseDevice objects.
Definition: MouseScaffold.h:39
static std::shared_ptr< MouseScaffold > getOrCreateSharedInstance()
Gets or creates the scaffold shared by all MouseDevice instances.
Definition: MouseScaffold.cpp:130
Struct to hold a MouseDevice object, a OsgMouseHandler, and a mutex for data passing.
Definition: MouseScaffold.cpp:35
MouseDevice
Definition: CMakeLists.txt:35
bool registerDevice(MouseDevice *device)
Registers the specified device object.
Definition: MouseScaffold.cpp:70
MouseScaffold()
Constructor.
Definition: MouseScaffold.cpp:56