MITK-IGT
IGT Extension of MITK
|
An instance of this class represents a generator wich generates the tracking volume of a given tracking device as a mitk:Surface. More...
#include <mitkTrackingVolumeGenerator.h>
Public Member Functions | |
mitkClassMacro (TrackingVolumeGenerator, mitk::SurfaceSource) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
void | SetTrackingDeviceType (mitk::TrackingDeviceType deviceType) |
Deprecated! Use set DeviceData instead. Sets the tracking device type of the volume. Warning: there are different possible volumes for some device types. In this case a default volume is chosen automatically. All tracking volumes are defined by TrackingDeviceData objects (see file mitkTrackingTypes.h) for a list. | |
mitk::TrackingDeviceType | GetTrackingDeviceType () const |
void | SetTrackingDeviceData (mitk::TrackingDeviceData deviceData) |
Sets the tracking device data object which will be used to generate the volume. Each tracking device data object has an unambiguous assignment to a tracking volume. See file mitkTrackingTypes.h for a list of all availiable object. | |
mitk::TrackingDeviceData | GetTrackingDeviceData () const |
void | SetTrackingDevice (mitk::TrackingDevice::Pointer tracker) |
Deprecated! Use set DeviceData instead. Sets the tracking device type of the volume. After doing this the tracking volume gets generated and is set to the correct dimensions in the correct coordinate system. The TV of a VirtualTrackingDevice is always a 400*400 cube. | |
Protected Member Functions | |
TrackingVolumeGenerator () | |
void | GenerateData () override |
Protected Attributes | |
mitk::TrackingDeviceData | m_Data |
Holds the current tracking device data object, which is used to generate the volume. | |
An instance of this class represents a generator wich generates the tracking volume of a given tracking device as a mitk:Surface.
Documentation
To generate the specific dimensions of the tracking volume of a tracking device the methods SetTrackingDeviceType(trackingdevicetype) or SetTrackingDevice (tracker) have to be called first. Otherwise the TrackingDeviceType is set to "TrackingSystemNotSpecified". After setting the trackingdevice type, the update() method has to be called. Now the method GetOutput() delivers the generatet TrackingVolume as mitk:Surface
The coordinate system of die TrackingVolume is the same as the coordination system of the tracking device.
For tracking devices that have a modifiable tracking volume (e.g. VirtualTrackingDevice, this class produces a tracking volume with default values.
Definition at line 43 of file mitkTrackingVolumeGenerator.h.
|
protected |
Definition at line 96 of file mitkTrackingVolumeGenerator.cpp.
|
overrideprotected |
Definition at line 113 of file mitkTrackingVolumeGenerator.cpp.
mitk::TrackingDeviceData mitk::TrackingVolumeGenerator::GetTrackingDeviceData | ( | ) | const |
Definition at line 187 of file mitkTrackingVolumeGenerator.cpp.
mitk::TrackingDeviceType mitk::TrackingVolumeGenerator::GetTrackingDeviceType | ( | ) | const |
Definition at line 177 of file mitkTrackingVolumeGenerator.cpp.
mitk::TrackingVolumeGenerator::itkCloneMacro | ( | Self | ) |
mitk::TrackingVolumeGenerator::itkFactorylessNewMacro | ( | Self | ) |
mitk::TrackingVolumeGenerator::mitkClassMacro | ( | TrackingVolumeGenerator | , |
mitk::SurfaceSource | ) |
void mitk::TrackingVolumeGenerator::SetTrackingDevice | ( | mitk::TrackingDevice::Pointer | tracker | ) |
Deprecated! Use set DeviceData instead. Sets the tracking device type of the volume. After doing this the tracking volume gets generated and is set to the correct dimensions in the correct coordinate system. The TV of a VirtualTrackingDevice is always a 400*400 cube.
tracker | The tracking device the tracking volume has to be created for (currently supported: NDIAurora, NDIPolaris, ClaronMicron, IntuitiveDaVinci and the VirtualTracker; see file mitkTrackingTypes.h for a always up to date list). |
Definition at line 101 of file mitkTrackingVolumeGenerator.cpp.
void mitk::TrackingVolumeGenerator::SetTrackingDeviceData | ( | mitk::TrackingDeviceData | deviceData | ) |
Sets the tracking device data object which will be used to generate the volume. Each tracking device data object has an unambiguous assignment to a tracking volume. See file mitkTrackingTypes.h for a list of all availiable object.
Definition at line 182 of file mitkTrackingVolumeGenerator.cpp.
void mitk::TrackingVolumeGenerator::SetTrackingDeviceType | ( | mitk::TrackingDeviceType | deviceType | ) |
Deprecated! Use set DeviceData instead. Sets the tracking device type of the volume. Warning: there are different possible volumes for some device types. In this case a default volume is chosen automatically. All tracking volumes are defined by TrackingDeviceData objects (see file mitkTrackingTypes.h) for a list.
After setting the device type the tracking volume gets generated (by a default volume for this type as mentioned above) and set to the correct dimensions in the correct coordinate system. The TV of a VirtualTrackingDevice is always a 400*400 cube.
deviceType | The type of the tracking device (currently supported:NDIAurora, NDIPolaris, ClaronMicron, IntuitiveDaVinci and the VirtualTracker; see file mitkTrackingTypes.h for a always up to date list). |
Definition at line 165 of file mitkTrackingVolumeGenerator.cpp.
|
protected |
Holds the current tracking device data object, which is used to generate the volume.
Definition at line 97 of file mitkTrackingVolumeGenerator.h.