An object of this class represents the MicronTracker device. You can add tools to this device, then open the connection and start tracking. The tracking device will then continuously update the tool coordinates.
More...
#include <mitkClaronTrackingDevice.h>
An object of this class represents the MicronTracker device. You can add tools to this device, then open the connection and start tracking. The tracking device will then continuously update the tool coordinates.
Documentation:
Definition at line 38 of file mitkClaronTrackingDevice.h.
◆ ClaronTrackingDevice()
mitk::ClaronTrackingDevice::ClaronTrackingDevice |
( |
| ) |
|
|
protected |
◆ ~ClaronTrackingDevice()
mitk::ClaronTrackingDevice::~ClaronTrackingDevice |
( |
| ) |
|
|
overrideprotected |
◆ AddTool()
mitk::TrackingTool * mitk::ClaronTrackingDevice::AddTool |
( |
const char * | toolName, |
|
|
const char * | fileName ) |
Create a new Claron tool with toolName and fileName and add it to the list of tools.
This method will create a new ClaronTool object, load the tool definition file fileName, set the tool name toolName and then add it to the list of tools. It returns a pointer of type mitk::TrackingTool to the tool that can be used to read tracking data from it. This is the only way to add tools to ClaronTrackingDevice.
- Warning
- adding tools is not possible in tracking mode, only in setup and ready.
Definition at line 59 of file mitkClaronTrackingDevice.cpp.
◆ CloseConnection()
bool mitk::ClaronTrackingDevice::CloseConnection |
( |
| ) |
|
|
overridevirtual |
◆ DEPRECATED()
mitk::ClaronTrackingDevice::DEPRECATED |
( |
bool | IsMicronTrackerInstalled() | ) |
|
- Returns
- Returns whether the MicronTracker is installed (means whether the C-Make-Variable "MITK_USE_MICRON_TRACKER" is set), so returns false in this case.
- Deprecated
- (as of 2014_03) This method is deprecated, please use the static method IsDeviceInstalled() instead.
◆ DetectTools()
std::vector< mitk::ClaronTool::Pointer > mitk::ClaronTrackingDevice::DetectTools |
( |
| ) |
|
|
protected |
Automatically detects tools in field of measurement of the tracking device. Tools can only be detected if their calibration file is availiable in the directory for calibration files.
- Returns
- Returns all detected Tools.
Definition at line 80 of file mitkClaronTrackingDevice.cpp.
◆ GetAllTools()
std::vector< mitk::ClaronTool::Pointer > mitk::ClaronTrackingDevice::GetAllTools |
( |
| ) |
|
|
protected |
◆ GetDevice()
◆ GetTool()
- Parameters
-
toolNumber | The number of the tool which should be given back. |
- Returns
- Returns the tool which the number "toolNumber". Returns nullptr, if there is no tool with this number.
Implements mitk::TrackingDevice.
Definition at line 148 of file mitkClaronTrackingDevice.cpp.
◆ GetToolCount()
unsigned int mitk::ClaronTrackingDevice::GetToolCount |
( |
| ) |
const |
|
overridevirtual |
◆ InternalAddTool()
bool mitk::ClaronTrackingDevice::InternalAddTool |
( |
ClaronTool::Pointer | tool | ) |
|
|
protected |
Adds a tool to the tracking device.
- Parameters
-
tool | The tool which will be added. |
- Returns
- Returns true if the tool has been added, false otherwise.
Definition at line 73 of file mitkClaronTrackingDevice.cpp.
◆ IsDeviceInstalled()
bool mitk::ClaronTrackingDevice::IsDeviceInstalled |
( |
| ) |
|
|
overridevirtual |
◆ itkCloneMacro()
mitk::ClaronTrackingDevice::itkCloneMacro |
( |
Self | | ) |
|
◆ itkFactorylessNewMacro()
mitk::ClaronTrackingDevice::itkFactorylessNewMacro |
( |
Self | | ) |
|
◆ itkGetMacro()
mitk::ClaronTrackingDevice::itkGetMacro |
( |
CalibrationDir | , |
|
|
std::string | ) |
Gets the current calibration directory.
◆ itkSetMacro()
mitk::ClaronTrackingDevice::itkSetMacro |
( |
CalibrationDir | , |
|
|
std::string | ) |
Sets the directory where the calibration file of the MicronTracker can be found.
◆ mitkClassMacro()
◆ OpenConnection()
bool mitk::ClaronTrackingDevice::OpenConnection |
( |
| ) |
|
|
overridevirtual |
◆ StartTracking()
bool mitk::ClaronTrackingDevice::StartTracking |
( |
| ) |
|
|
overridevirtual |
◆ StopTracking()
bool mitk::ClaronTrackingDevice::StopTracking |
( |
| ) |
|
|
overridevirtual |
◆ ThreadStartTracking()
void mitk::ClaronTrackingDevice::ThreadStartTracking |
( |
| ) |
|
|
protected |
◆ TrackTools()
void mitk::ClaronTrackingDevice::TrackTools |
( |
| ) |
|
|
protected |
This method tracks tools as long as the variable m_Mode is set to "Tracking". Tracking tools means grabbing frames from the camera an updating the tools.
- Exceptions
-
Definition at line 214 of file mitkClaronTrackingDevice.cpp.
◆ m_AllTools
std::vector<ClaronTool::Pointer> mitk::ClaronTrackingDevice::m_AllTools |
|
protected |
◆ m_CalibrationDir
std::string mitk::ClaronTrackingDevice::m_CalibrationDir |
|
protected |
◆ m_Device
ClaronInterface::Pointer mitk::ClaronTrackingDevice::m_Device |
|
protected |
◆ m_Thread
std::thread mitk::ClaronTrackingDevice::m_Thread |
|
protected |
◆ m_ToolfilesDir
std::string mitk::ClaronTrackingDevice::m_ToolfilesDir |
|
protected |
The documentation for this class was generated from the following files: