Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_KEYBOARD_KEYBOARDSCAFFOLD_H
17 #define SURGSIM_DEVICES_KEYBOARD_KEYBOARDSCAFFOLD_H
26 namespace DataStructures
34 class OsgKeyboardHandler;
84 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
92 #endif // SURGSIM_DEVICES_KEYBOARD_KEYBOARDSCAFFOLD_H
std::unique_ptr< DeviceData > m_device
The keyboard device managed by this scaffold.
Definition: KeyboardScaffold.h:86
~KeyboardScaffold()
Destructor.
Definition: KeyboardScaffold.cpp:58
Definition: OsgKeyboardHandler.h:30
bool unregisterDevice()
Unregisters the specified device object.
Definition: KeyboardScaffold.cpp:81
friend class KeyboardDeviceTest
Definition: KeyboardScaffold.h:41
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Logger used by the scaffold and all devices.
Definition: KeyboardScaffold.h:84
A class that implements the behavior of KeyboardDevice objects.
Definition: KeyboardScaffold.h:38
Definition: CompoundShapeToGraphics.cpp:29
A collection of NamedData objects.
Definition: DataGroup.h:68
static std::shared_ptr< KeyboardScaffold > getOrCreateSharedInstance()
Gets or creates the scaffold shared by all KeyboardDevice instances.
Definition: KeyboardScaffold.cpp:117
Struct to hold a KeyboardDevice object, a KeyboardHandler object, and a mutex for data passing.
Definition: KeyboardScaffold.cpp:31
OsgKeyboardHandler * getKeyboardHandler() const
Get keyboard handler.
Definition: KeyboardScaffold.cpp:104
static SurgSim::DataStructures::DataGroup buildDeviceInputData()
Builds the data layout for the application input (i.e. device output).
Definition: KeyboardScaffold.cpp:109
bool updateDevice(int key, int modifierMask)
Updates the device information for a single device.
Definition: KeyboardScaffold.cpp:93
KeyboardScaffold()
Constructor.
Definition: KeyboardScaffold.cpp:53
KeyboardDevice
Definition: CMakeLists.txt:35
bool registerDevice(KeyboardDevice *device)
Registers the specified device object.
Definition: KeyboardScaffold.cpp:67
A class implementing the communication with a keyboard.
Definition: KeyboardDevice.h:46