39 for (
unsigned int i = 0; i < this->GetNumberOfOutputs() ; ++i)
59 if( this->GetNumberOfOutputs() < 2 )
61 MITK_WARN <<
"TrackedUltrasound not possible. The number of tracked devices must be at least 2.";
67 mitk::NavigationData::Pointer needleOut = this->
GetOutput(0);
70 mitk::NavigationData::Pointer usTrackerOut = this->
GetOutput(1);
75 needleOut->SetDataValid(
false);
78 needleOut->Graft(needleIn);
82 usTrackerOut->SetDataValid(
false);
85 usTrackerOut->Graft(usTrackerIn);
87 needleOut->Compose( usTrackerOut->GetInverse(), false );
90 usTrackerOut->SetDataValid(
true);
91 needleOut->SetDataValid(
true);
93 if( this->GetNumberOfOutputs() > 2 )
95 for(
unsigned int i = 2; i < this->GetNumberOfOutputs(); ++i )
105 output->
Graft(input);
NavigationData * GetOutput(void)
return the output (output with id 0) of the filter
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
void GenerateData() override
filter execute method
DataCollection - Class to facilitate loading/accessing structured data.
virtual void SetDataValid(bool _arg)
sets the dataValid flag of the NavigationData object indicating if the object contains valid data ...
Key-value list holding instances of BaseProperty.
virtual PositionType GetPosition() const
returns position of the NavigationData object
const NavigationData * GetInput(void) const
Get the input of this filter.
NavigationDataDisplacementFilter()
bool GetPropertyValue(const char *propertyKey, T &value) const
Convenience access method for GenericProperty<T> properties (T being the type of the second parameter...
~NavigationDataDisplacementFilter() override
mitk::PropertyList::ConstPointer GetParameters() const override
Get all filter parameters (offset) as a PropertyList.
void SetTransformation(mitk::AffineTransform3D::Pointer transform)
itk::SmartPointer< const Self > ConstPointer
virtual void SetPosition(PositionType _arg)
sets the position of the NavigationData object
void SetParameters(const mitk::PropertyList *p) override
Set all filter parameters (Offset) as the PropertyList p.
void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
virtual bool IsDataValid() const
returns true if the object contains valid data
mitk::NavigationData::Pointer m_Transformation
mitk::Vector3D m_Offset
offset that is added to all inputs