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.
◆ Clone()
Pointer mitk::ClaronTrackingDevice::Clone |
( |
| ) |
const |
◆ CloseConnection()
bool mitk::ClaronTrackingDevice::CloseConnection |
( |
| ) |
|
|
overridevirtual |
◆ DetectTools()
std::vector<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.
◆ GetAllTools()
std::vector<ClaronTool::Pointer> mitk::ClaronTrackingDevice::GetAllTools |
( |
| ) |
|
|
protected |
- Returns
- Returns all tools of the tracking device.
◆ GetCalibrationDir()
virtual std::string mitk::ClaronTrackingDevice::GetCalibrationDir |
( |
| ) |
|
|
virtual |
Gets the current calibration directory.
◆ GetDevice()
- Returns
- Gives back the device which is represented by an object of the class ClaronInterface.
◆ GetTool()
TrackingTool* mitk::ClaronTrackingDevice::GetTool |
( |
unsigned int |
toolNumber | ) |
const |
|
overridevirtual |
- 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.
◆ GetToolCount()
unsigned int mitk::ClaronTrackingDevice::GetToolCount |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Returns the number of tools which have been added to the device.
Implements mitk::TrackingDevice.
◆ 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.
◆ IsDeviceInstalled()
bool mitk::ClaronTrackingDevice::IsDeviceInstalled |
( |
| ) |
|
|
overridevirtual |
- Returns
- Returns true if the MicronTracker is installed on this build (means activated in CMAKE). False if not.
Reimplemented from mitk::TrackingDevice.
◆ IsMicronTrackerInstalled()
bool mitk::ClaronTrackingDevice::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.
◆ mitkClassMacro()
◆ New()
static Pointer mitk::ClaronTrackingDevice::New |
( |
| ) |
|
|
static |
◆ OpenConnection()
bool mitk::ClaronTrackingDevice::OpenConnection |
( |
| ) |
|
|
overridevirtual |
Opens the connection to the device. This have to be done before the tracking is started.
- Exceptions
-
Implements mitk::TrackingDevice.
◆ SetCalibrationDir()
virtual void mitk::ClaronTrackingDevice::SetCalibrationDir |
( |
std::string |
_arg | ) |
|
|
virtual |
Sets the directory where the calibration file of the MicronTracker can be found.
◆ StartTracking()
bool mitk::ClaronTrackingDevice::StartTracking |
( |
| ) |
|
|
overridevirtual |
Starts the tracking.
- Returns
- Returns true if the tracking is started. Throws an exception if an error occures.
- Exceptions
-
Implements mitk::TrackingDevice.
◆ StopTracking()
bool mitk::ClaronTrackingDevice::StopTracking |
( |
| ) |
|
|
overridevirtual |
Stops the tracking.
- Returns
- Returns true if the tracking is stopped.
Reimplemented from mitk::TrackingDevice.
◆ 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
-
◆ 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 file: