MITK-IGT
IGT Extension of MITK
|
NavigationDataDisplacementFilter adds an offset to navigation data objects. More...
#include <mitkNavigationDataDisplacementFilter.h>
Public Member Functions | |
mitkClassMacro (NavigationDataDisplacementFilter, NavigationDataToNavigationDataFilter) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
mitkSetVectorMacro (Offset, mitk::Vector3D) | |
Get Offset parameter. | |
mitkGetVectorMacro (Offset, mitk::Vector3D) | |
Set Offset parameter. | |
itkSetMacro (Transform6DOF, bool) | |
itkGetMacro (Transform6DOF, bool) | |
void | SetTransformation (mitk::AffineTransform3D::Pointer transform) |
void | SetParameters (const mitk::PropertyList *p) override |
Set all filter parameters (Offset) as the PropertyList p. | |
mitk::PropertyList::ConstPointer | GetParameters () const override |
Get all filter parameters (offset) as a PropertyList. | |
![]() | |
mitkClassMacro (NavigationDataToNavigationDataFilter, NavigationDataSource) | |
virtual void | SetInput (const NavigationData *nd) |
Set the input of this filter. | |
virtual void | SetInput (unsigned int idx, const NavigationData *nd) |
Set input with id idx of this filter. | |
const NavigationData * | GetInput (void) const |
Get the input of this filter. | |
const NavigationData * | GetInput (unsigned int idx) const |
Get the input with id idx of this filter. | |
const NavigationData * | GetInput (std::string navDataName) const |
Get the input with name navDataName of this filter. | |
DataObjectPointerArraySizeType | GetInputIndex (std::string navDataName) |
return the index of the input with name navDataName, throw std::invalid_argument exception if that name was not found | |
virtual void | ConnectTo (mitk::NavigationDataSource *UpstreamFilter) |
Connects the input of this filter to the outputs of the given NavigationDataSource. | |
![]() | |
mitkClassMacroItkParent (NavigationDataSource, itk::ProcessObject) | |
itkGetMacro (Name, std::string) | |
itkSetMacro (Name, std::string) | |
Sets the human readable name of this source. There is also a default name, but you can use this method if you need to define it on your own. | |
NavigationData * | GetOutput (void) |
return the output (output with id 0) of the filter | |
NavigationData * | GetOutput (DataObjectPointerArraySizeType idx) |
return the output with id idx of the filter | |
NavigationData * | GetOutput (const std::string &navDataName) |
return the output with name navDataName of the filter | |
NavigationTool::Pointer | GetToolMetaData (DataObjectPointerArraySizeType idx) |
NavigationTool::Pointer | GetToolMetaData (const std::string &navDataName) |
itkGetMacro (ToolMetaDataCollection, mitk::NavigationToolStorage::Pointer) | |
itkSetMacro (ToolMetaDataCollection, mitk::NavigationToolStorage::Pointer) | |
DataObjectPointerArraySizeType | GetOutputIndex (std::string navDataName) |
return the index of the output with name navDataName, -1 if no output with that name was found | |
virtual void | RegisterAsMicroservice () |
Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice(). | |
virtual void | UnRegisterMicroservice () |
Registers this object as a Microservice, making it available to every module and/or plugin. | |
std::string | GetMicroserviceID () |
Returns the id that this device is registered with. The id will only be valid, if the NavigationDataSource has been registered using RegisterAsMicroservice(). | |
virtual void | GraftNthOutput (unsigned int idx, itk::DataObject *graft) |
Graft the specified DataObject onto this ProcessObject's output. | |
virtual void | GraftOutput (itk::DataObject *graft) |
Graft the specified DataObject onto this ProcessObject's output. | |
itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
virtual void | Freeze () |
virtual void | UnFreeze () |
itkGetMacro (IsFrozen, bool) | |
Protected Member Functions | |
NavigationDataDisplacementFilter () | |
~NavigationDataDisplacementFilter () override | |
void | GenerateData () override |
filter execute method | |
![]() | |
NavigationDataToNavigationDataFilter () | |
~NavigationDataToNavigationDataFilter () override | |
void | CreateOutputsForAllInputs () |
Create an output for each input. | |
![]() | |
NavigationDataSource () | |
~NavigationDataSource () override | |
Protected Attributes | |
mitk::Vector3D | m_Offset |
offset that is added to all inputs | |
bool | m_Transform6DOF |
mitk::NavigationData::Pointer | m_Transformation |
![]() | |
std::string | m_Name |
bool | m_IsFrozen |
NavigationToolStorage::Pointer | m_ToolMetaDataCollection |
Additional Inherited Members | |
![]() | |
static const std::string | US_INTERFACE_NAME = "org.mitk.services.NavigationDataSource" |
These Constants are used in conjunction with Microservices. | |
static const std::string | US_PROPKEY_DEVICENAME = US_INTERFACE_NAME + ".devicename" |
static const std::string | US_PROPKEY_ID = US_INTERFACE_NAME + ".id" |
static const std::string | US_PROPKEY_ISACTIVE = US_INTERFACE_NAME + ".isActive" |
NavigationDataDisplacementFilter adds an offset to navigation data objects.
Documentation
Example class that shows how to write a navigation filter. This filter adds a offset that can be specified as a parameter to each input navigation data.
Definition at line 29 of file mitkNavigationDataDisplacementFilter.h.
|
protected |
Definition at line 17 of file mitkNavigationDataDisplacementFilter.cpp.
|
overrideprotected |
Definition at line 29 of file mitkNavigationDataDisplacementFilter.cpp.
|
overrideprotected |
filter execute method
Documentation
adds the offset m_Offset to all inputs
Definition at line 34 of file mitkNavigationDataDisplacementFilter.cpp.
|
overridevirtual |
Get all filter parameters (offset) as a PropertyList.
This method returns a PropertyList containing the following properties (name : data type):
Reimplemented from mitk::NavigationDataSource.
Definition at line 129 of file mitkNavigationDataDisplacementFilter.cpp.
mitk::NavigationDataDisplacementFilter::itkCloneMacro | ( | Self | ) |
mitk::NavigationDataDisplacementFilter::itkFactorylessNewMacro | ( | Self | ) |
mitk::NavigationDataDisplacementFilter::itkGetMacro | ( | Transform6DOF | , |
bool | ) |
mitk::NavigationDataDisplacementFilter::itkSetMacro | ( | Transform6DOF | , |
bool | ) |
mitk::NavigationDataDisplacementFilter::mitkClassMacro | ( | NavigationDataDisplacementFilter | , |
NavigationDataToNavigationDataFilter | ) |
mitk::NavigationDataDisplacementFilter::mitkGetVectorMacro | ( | Offset | , |
mitk::Vector3D | ) |
Set Offset parameter.
mitk::NavigationDataDisplacementFilter::mitkSetVectorMacro | ( | Offset | , |
mitk::Vector3D | ) |
Get Offset parameter.
|
overridevirtual |
Set all filter parameters (Offset) as the PropertyList p.
This method reads the following properties from the PropertyList (name : data type):
Reimplemented from mitk::NavigationDataSource.
Definition at line 119 of file mitkNavigationDataDisplacementFilter.cpp.
void mitk::NavigationDataDisplacementFilter::SetTransformation | ( | mitk::AffineTransform3D::Pointer | transform | ) |
Definition at line 113 of file mitkNavigationDataDisplacementFilter.cpp.
|
protected |
offset that is added to all inputs
Definition at line 72 of file mitkNavigationDataDisplacementFilter.h.
|
protected |
Definition at line 74 of file mitkNavigationDataDisplacementFilter.h.
|
protected |
Definition at line 76 of file mitkNavigationDataDisplacementFilter.h.