16 #ifndef SURGSIM_DEVICES_TRACKIR_TRACKIRDEVICE_H 17 #define SURGSIM_DEVICES_TRACKIR_TRACKIRDEVICE_H 28 class TrackIRScaffold;
95 #endif // SURGSIM_DEVICES_TRACKIR_TRACKIRDEVICE_H std::shared_ptr< TrackIRScaffold > m_scaffold
Communication with hardware is handled by scaffold.
Definition: TrackIRDevice.h:89
Definition: DriveElementFromInputBehavior.cpp:27
virtual ~TrackIRDevice()
Destructor.
Definition: TrackIRDevice.cpp:31
A class implementing the communication with Natural Point TrackIR camera.
Definition: TrackIRDevice.h:40
void setOrientationScale(double scale)
Sets the orientation scale for this device.
Definition: TrackIRDevice.cpp:86
double getPositionScale() const
Gets the position scale for this device.
Definition: TrackIRDevice.cpp:80
double m_positionScale
Scale factor for the position axes; stored locally before the device is initialized.
Definition: TrackIRDevice.h:84
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
double m_orientationScale
Scale factor for the orientation axes; stored locally before the device is initialized.
Definition: TrackIRDevice.h:86
double getOrientationScale() const
Gets the orientation scale for this device.
Definition: TrackIRDevice.cpp:95
virtual bool initialize() override
Initialize this device, register it with the scaffold.
Definition: TrackIRDevice.cpp:40
bool isInitialized() const
Check whether this device is initialized.
Definition: TrackIRDevice.cpp:65
static double defaultOrientationScale()
Definition: TrackIRDevice.cpp:106
static double defaultPositionScale()
Definition: TrackIRDevice.cpp:101
void setPositionScale(double scale)
Sets the position scale for this device.
Definition: TrackIRDevice.cpp:71
virtual bool finalize() override
Finalize this device, unregister this device from the scaffold.
Definition: TrackIRDevice.cpp:56
A class that manages Natural Point TRACKIR devices.
Definition: TrackIRScaffold.h:38
TrackIRDevice(const std::string &uniqueName)
Constructor.
Definition: TrackIRDevice.cpp:26