17 #include <itkMutexLockHolder.h> 31 m_StopTracking(false),
78 itkDebugMacro(
"setting m_State to " << state);
91 MITK_WARN <<
"Rotation mode switching is not implemented for this device. Leaving it at mitk::TrackingDevice::RotationStandard";
105 MITK_ERROR <<
"No tracking device service found!";
144 for (
unsigned int i = 0; i < toolCount; ++i)
145 if (name == this->
GetTool(i)->GetToolName())
virtual unsigned int GetToolCount() const =0
Returns number of tracking tools.
~TrackingDevice() override
itk::FastMutexLock::Pointer m_TrackingFinishedMutex
mutex to manage control flow of StopTracking()
itk::MutexLockHolder< itk::FastMutexLock > MutexLockHolder
TrackingDeviceData GetData() const
return device data
virtual bool AutoDetectToolsAvailable()
DataCollection - Class to facilitate loading/accessing structured data.
This class is a collection for information of all Tracking Device Types (derived from abstract Tracki...
std::string GetTrackingDeviceName()
Convenient Method to get the Name of the Tracking Device. This is identical with GetData().Line and can be used to compare with TrackingDeviceTypeInformation::GetTrackingDeviceName() to check if you have a specific device.
TrackingDeviceState GetState() const
return current object state (Setup, Ready or Tracking)
virtual void SetRotationMode(RotationMode r)
virtual bool AddSingleToolIsAvailable()
itk::FastMutexLock::Pointer m_StateMutex
mutex to control access to m_State
TrackingDeviceData GetFirstCompatibleDeviceDataForLine(TrackingDeviceType type)
virtual bool StopTracking()
stop retrieving tracking data from the device. stop retrieving tracking data from the device...
bool m_StopTracking
signal stop to tracking thread
Interface for all Tracking Devices.
static IGTTimeStamp * GetInstance()
returns a pointer to the current instance of mitkTimeStamp
virtual bool IsDeviceInstalled()
TrackingDeviceData m_Data
current device Data
std::string TrackingDeviceType
itk::FastMutexLock::Pointer m_StopTrackingMutex
mutex to control access to m_StopTracking
void Stop(itk::Object::Pointer device)
stops the time-acqusition
void SetData(TrackingDeviceData data)
set device type
virtual TrackingTool * GetTool(unsigned int toolNumber) const =0
Return tool with index toolNumber.
virtual mitk::NavigationToolStorage::Pointer AutoDetectTools()
void SetState(TrackingDeviceState state)
change object state
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
TrackingDeviceType GetType() const
Deprecated! Use the more specific getData or GetTrackingDeviceName instead. return device type identi...
virtual mitk::TrackingTool * GetToolByName(std::string name) const
Returns the tool with the given tool name.
void SetType(TrackingDeviceType type)
Deprecated! Use the more specific setDeviceData instead. set device type.