16 #ifndef SURGSIM_DEVICES_SIXENSE_SIXENSESCAFFOLD_H 17 #define SURGSIM_DEVICES_SIXENSE_SIXENSESCAFFOLD_H 125 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
138 #endif // SURGSIM_DEVICES_SIXENSE_SIXENSESCAFFOLD_H bool unregisterDevice(const SixenseDevice *device)
Unregisters the specified device object.
Definition: SixenseScaffold.cpp:208
Definition: CompoundShapeToGraphics.cpp:29
A class that manages Sixense devices, such as the Razer Hydra.
Definition: SixenseScaffold.h:35
static std::shared_ptr< SixenseScaffold > getOrCreateSharedInstance()
Gets or creates the scaffold shared by all SixenseDevice instances.
Definition: SixenseScaffold.cpp:468
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Logger used by the scaffold and all devices.
Definition: SixenseScaffold.h:125
bool runInputFrame()
Executes the operations for a single input frame.
Definition: SixenseScaffold.cpp:228
bool createThread()
Creates the input loop thread.
Definition: SixenseScaffold.cpp:428
bool initializeSdk()
Initializes the Sixense SDK.
Definition: SixenseScaffold.cpp:293
Definition: SixenseScaffold.cpp:76
A class implementing the communication with one Sixense controller, for example one of the two on the...
Definition: SixenseDevice.h:53
bool registerDevice(SixenseDevice *device)
Registers the specified device object.
Definition: SixenseScaffold.cpp:138
std::unique_ptr< StateData > m_state
Internal scaffold state.
Definition: SixenseScaffold.h:127
bool destroyThread()
Destroys the input loop thread.
Definition: SixenseScaffold.cpp:439
static SurgSim::DataStructures::DataGroup buildDeviceInputData()
Builds the data layout for the application input (i.e. device output).
Definition: SixenseScaffold.cpp:450
A collection of NamedData objects.
Definition: DataGroup.h:68
SixenseScaffold()
Constructor.
Definition: SixenseScaffold.cpp:103
bool findUnusedDeviceAndRegister(SixenseDevice *device, int *numUsedDevicesSeen, bool *fatalError)
Scans controllers that are present in the system, and if an unused one is found, register a device fo...
Definition: SixenseScaffold.cpp:325
~SixenseScaffold()
Destructor.
Definition: SixenseScaffold.cpp:110
A class implementing the thread context for sampling Sixense devices.
Definition: SixenseThread.h:33
static int m_startupRetryIntervalMilliseconds
How long to wait between trying to detect devices, in milliseconds.
Definition: SixenseScaffold.h:132
static int m_startupDelayMilliseconds
How long we're willing to wait for devices to be detected, in milliseconds.
Definition: SixenseScaffold.h:130
bool updateDevice(const DeviceData &info)
Updates the device information for a single device.
Definition: SixenseScaffold.cpp:244
bool registerIfUnused(int baseIndex, int controllerIndex, SixenseDevice *device, int *numUsedDevicesSeen)
Register a device object given a (baseIndex, controllerIndex) pair, if the same pair is not already i...
Definition: SixenseScaffold.cpp:398
Definition: SixenseScaffold.cpp:52
bool finalizeSdk()
Finalizes (de-initializes) the Sixense SDK.
Definition: SixenseScaffold.cpp:309