Go to the documentation of this file.
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 finalizeSdk()
Finalizes (de-initializes) the Sixense SDK.
Definition: SixenseScaffold.cpp:309
bool unregisterDevice(const SixenseDevice *device)
Unregisters the specified device object.
Definition: SixenseScaffold.cpp:208
bool createThread()
Creates the input loop thread.
Definition: SixenseScaffold.cpp:428
static std::shared_ptr< SixenseScaffold > getOrCreateSharedInstance()
Gets or creates the scaffold shared by all SixenseDevice instances.
Definition: SixenseScaffold.cpp:468
bool runInputFrame()
Executes the operations for a single input frame.
Definition: SixenseScaffold.cpp:228
A class that manages Sixense devices, such as the Razer Hydra.
Definition: SixenseScaffold.h:36
bool registerDevice(SixenseDevice *device)
Registers the specified device object.
Definition: SixenseScaffold.cpp:138
bool initializeSdk()
Initializes the Sixense SDK.
Definition: SixenseScaffold.cpp:293
Definition: CompoundShapeToGraphics.cpp:30
A collection of NamedData objects.
Definition: DataGroup.h:69
Definition: SixenseScaffold.cpp:77
A class implementing the thread context for sampling Sixense devices.
Definition: SixenseThread.h:34
static int m_startupRetryIntervalMilliseconds
How long to wait between trying to detect devices, in milliseconds.
Definition: SixenseScaffold.h:132
std::unique_ptr< StateData > m_state
Internal scaffold state.
Definition: SixenseScaffold.h:127
bool updateDevice(const DeviceData &info)
Updates the device information for a single device.
Definition: SixenseScaffold.cpp:244
static SurgSim::DataStructures::DataGroup buildDeviceInputData()
Builds the data layout for the application input (i.e. device output).
Definition: SixenseScaffold.cpp:450
bool destroyThread()
Destroys the input loop thread.
Definition: SixenseScaffold.cpp:439
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 communication with one Sixense controller, for example one of the two on the...
Definition: SixenseDevice.h:54
Definition: SixenseScaffold.cpp:53
static int m_startupDelayMilliseconds
How long we're willing to wait for devices to be detected, in milliseconds.
Definition: SixenseScaffold.h:130
SixenseScaffold()
Constructor.
Definition: SixenseScaffold.cpp:103
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
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Logger used by the scaffold and all devices.
Definition: SixenseScaffold.h:125