Go to the documentation of this file.
16 #ifndef SURGSIM_DEVICES_TRACKIR_TRACKIRSCAFFOLD_H
17 #define SURGSIM_DEVICES_TRACKIR_TRACKIRSCAFFOLD_H
26 namespace DataStructures
124 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
133 #endif // SURGSIM_DEVICES_TRACKIR_TRACKIRSCAFFOLD_H
A class implementing the thread context for sampling TrackIR devices.
Definition: TrackIRThread.h:30
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Logger used by the scaffold and all devices.
Definition: TrackIRScaffold.h:124
bool unregisterDevice(const TrackIRDevice *device)
Unregisters the specified device object.
Definition: TrackIRScaffold.cpp:192
bool stopCamera(DeviceData *info)
Stop the camera, it will stop sending frames.
Definition: TrackIRScaffold.cpp:362
Definition: CompoundShapeToGraphics.cpp:30
bool finalizeSdk()
Finalizes (de-initializes) the OptiTrack SDK.
Definition: TrackIRScaffold.cpp:321
A collection of NamedData objects.
Definition: DataGroup.h:69
bool destroyPerDeviceThread(DeviceData *data)
Destroys the thread associated with the given DeviceData object.
Definition: TrackIRScaffold.cpp:346
A class implementing the communication with Natural Point TrackIR camera.
Definition: TrackIRDevice.h:45
bool registerDevice(TrackIRDevice *device)
Registers the specified device object.
Definition: TrackIRScaffold.cpp:144
static SurgSim::DataStructures::DataGroup buildDeviceInputData()
Builds the data layout for the application input (i.e. device output).
Definition: TrackIRScaffold.cpp:367
TrackIRScaffold()
Constructor.
Definition: TrackIRScaffold.cpp:104
Definition: TrackIRScaffold.cpp:50
A class that manages Natural Point TRACKIR devices.
Definition: TrackIRScaffold.h:39
bool createPerDeviceThread(DeviceData *data)
Creates a thread for the given DeviceData object.
Definition: TrackIRScaffold.cpp:335
bool startCamera(DeviceData *info)
Start the camera, it will start sending frames.
Definition: TrackIRScaffold.cpp:357
bool updateDevice(DeviceData *info)
Updates the device information for a single device.
Definition: TrackIRScaffold.cpp:254
void setOrientationScale(const TrackIRDevice *device, double scale)
Sets the orientation scale for the device.
Definition: TrackIRScaffold.cpp:231
bool initializeSdk()
Initializes the OptiTrack SDK.
Definition: TrackIRScaffold.cpp:293
std::unique_ptr< StateData > m_state
Internal scaffold state.
Definition: TrackIRScaffold.h:127
~TrackIRScaffold()
Destructor.
Definition: TrackIRScaffold.cpp:112
static std::shared_ptr< TrackIRScaffold > getOrCreateSharedInstance()
Gets or creates the scaffold shared by all TrackIRDevice instances.
Definition: TrackIRScaffold.cpp:374
bool runInputFrame(DeviceData *info)
Executes the operations for a single input frame for a single device.
Definition: TrackIRScaffold.cpp:244
Definition: TrackIRScaffold.cpp:81
void setPositionScale(const TrackIRDevice *device, double scale)
Sets the position scale for the device.
Definition: TrackIRScaffold.cpp:218