Public Types | |
typedef TrackingDeviceTestClass | Self |
typedef mitk::TrackingDevice | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual bool | OpenConnection () |
Opens a connection to the device. | |
virtual bool | CloseConnection () |
Closes the connection to the device. | |
virtual bool | StartTracking () |
start retrieving tracking data from the device. | |
virtual mitk::TrackingTool * | GetTool (unsigned int) const |
Return tool with index toolNumber. | |
virtual unsigned int | GetToolCount () const |
Returns number of tracking tools. | |
Static Public Member Functions | |
static Pointer | New () |
Create new class and derive it from TrackingDevice
Definition at line 30 of file mitkTrackingDeviceTest.cpp.
typedef itk::SmartPointer<const Self> TrackingDeviceTestClass::ConstPointer |
Reimplemented from mitk::TrackingDevice.
Definition at line 34 of file mitkTrackingDeviceTest.cpp.
typedef itk::SmartPointer<Self> TrackingDeviceTestClass::Pointer |
Reimplemented from mitk::TrackingDevice.
Definition at line 34 of file mitkTrackingDeviceTest.cpp.
Reimplemented from mitk::TrackingDevice.
Definition at line 34 of file mitkTrackingDeviceTest.cpp.
Reimplemented from mitk::TrackingDevice.
Definition at line 34 of file mitkTrackingDeviceTest.cpp.
virtual bool TrackingDeviceTestClass::CloseConnection | ( | ) | [inline, virtual] |
Closes the connection to the device.
This may only be called if there is currently a connection to the device, but tracking is not running (e.g. object is in Ready state) Closes the connection with the device
Implements mitk::TrackingDevice.
Definition at line 38 of file mitkTrackingDeviceTest.cpp.
{return true;};
virtual const char* TrackingDeviceTestClass::GetClassName | ( | ) | const [virtual] |
Reimplemented from mitk::TrackingDevice.
virtual mitk::TrackingTool* TrackingDeviceTestClass::GetTool | ( | unsigned | toolNumber ) | const [inline, virtual] |
Return tool with index toolNumber.
tools are numbered from 0 to GetToolCount() - 1.
Implements mitk::TrackingDevice.
Definition at line 40 of file mitkTrackingDeviceTest.cpp.
{return NULL;};
virtual unsigned int TrackingDeviceTestClass::GetToolCount | ( | ) | const [inline, virtual] |
Returns number of tracking tools.
Implements mitk::TrackingDevice.
Definition at line 41 of file mitkTrackingDeviceTest.cpp.
{return 1;};
static Pointer TrackingDeviceTestClass::New | ( | ) | [static] |
Referenced by mitkTrackingDeviceTest().
virtual bool TrackingDeviceTestClass::OpenConnection | ( | ) | [inline, virtual] |
Opens a connection to the device.
This may only be called if there is currently no connection to the device. If OpenConnection() is successful, the object will change from Setup state to Ready state
Implements mitk::TrackingDevice.
Definition at line 37 of file mitkTrackingDeviceTest.cpp.
{return true;};
virtual bool TrackingDeviceTestClass::StartTracking | ( | ) | [inline, virtual] |
start retrieving tracking data from the device.
This may only be called after the connection to the device has been established with a call to OpenConnection() (E.g. object is in Ready mode). This will change the object state from Ready to Tracking
Implements mitk::TrackingDevice.
Definition at line 39 of file mitkTrackingDeviceTest.cpp.
References mitk::TrackingDevice::m_TrackingFinishedMutex, mitk::TrackingDevice::SetState(), and mitk::TrackingDevice::Tracking.
{this->SetState(Tracking); this->m_TrackingFinishedMutex->Unlock(); return true;};