Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
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) static Pointer New() | |
Pointer | Clone () const |
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. More... | |
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. More... | |
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. More... | |
Public Member Functions inherited from mitk::SurfaceSource | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
Public Member Functions inherited from mitk::BaseDataSource | |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual void | GraftOutput (OutputType *output) |
Graft the specified BaseData onto this BaseDataSource's output. More... | |
virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
bool | Updating () const |
Access itk::ProcessObject::m_Updating. More... | |
Protected Member Functions | |
TrackingVolumeGenerator () | |
void | GenerateData () override |
Protected Member Functions inherited from mitk::SurfaceSource | |
SurfaceSource () | |
virtual | ~SurfaceSource () |
Protected Member Functions inherited from mitk::BaseDataSource | |
BaseDataSource () | |
virtual | ~BaseDataSource () |
Protected Attributes | |
mitk::TrackingDeviceData | m_Data |
Holds the current tracking device data object, which is used to generate the volume. More... | |
Additional Inherited Members | |
Public Types inherited from mitk::SurfaceSource | |
typedef SurfaceSource | Self |
typedef BaseDataSource | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef Surface | OutputType |
Public Types inherited from mitk::BaseDataSource | |
typedef BaseDataSource | Self |
typedef itk::ProcessObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef BaseData | OutputType |
typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Static Public Member Functions inherited from mitk::SurfaceSource | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Member Functions inherited from mitk::BaseDataSource | |
static const char * | GetStaticNameOfClass () |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
static Pointer | New () |
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 47 of file mitkTrackingVolumeGenerator.h.
|
protected |
Definition at line 41 of file mitkTrackingVolumeGenerator.cpp.
References mitk::UnspecifiedTrackingTypeInformation::GetDeviceDataUnspecified(), and m_Data.
Pointer mitk::TrackingVolumeGenerator::Clone | ( | ) | const |
|
overrideprotected |
Definition at line 58 of file mitkTrackingVolumeGenerator.cpp.
References filename, ModuleContext::GetModule(), us::GetModuleContext(), us::Module::GetResource(), mitk::IOUtil::Load(), MITK_ERROR, MITK_INFO, and mitk::New().
mitk::TrackingDeviceData mitk::TrackingVolumeGenerator::GetTrackingDeviceData | ( | ) | const |
Definition at line 128 of file mitkTrackingVolumeGenerator.cpp.
mitk::TrackingDeviceType mitk::TrackingVolumeGenerator::GetTrackingDeviceType | ( | ) | const |
Definition at line 118 of file mitkTrackingVolumeGenerator.cpp.
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 46 of file mitkTrackingVolumeGenerator.cpp.
References mitk::TrackingDeviceTypeCollection::GetFirstCompatibleDeviceDataForLine(), us::GetModuleContext(), ModuleContext::GetService(), ModuleContext::GetServiceReferences(), and MITK_ERROR.
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 123 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.
type | 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 106 of file mitkTrackingVolumeGenerator.cpp.
References mitk::TrackingDeviceTypeCollection::GetFirstCompatibleDeviceDataForLine(), us::GetModuleContext(), ModuleContext::GetService(), ModuleContext::GetServiceReferences(), and MITK_ERROR.
|
protected |
Holds the current tracking device data object, which is used to generate the volume.
Definition at line 100 of file mitkTrackingVolumeGenerator.h.
Referenced by TrackingVolumeGenerator().