19 m_ObjectsToTransform(),m_HandEyeTransformations()
43 unsigned int numberOfInputs = this->GetNumberOfInputs();
44 for (
unsigned int index=0; index < numberOfInputs; index++)
62 if (!objectToTransform)
67 QuaternionRigidTransformType::Pointer handEyeTransform = QuaternionRigidTransformType::New();;
78 QuaternionRigidTransformType::Pointer ndTransform = QuaternionRigidTransformType::New();
80 ndTransform->SetOffset(nd->
GetPosition().GetVectorFromOrigin());
82 mitk::AffineTransform3D::Pointer transform = mitk::AffineTransform3D::New();
83 transform->SetIdentity();
84 transform->Compose(handEyeTransform);
85 transform->Compose(ndTransform);
87 objectToTransform->GetGeometry()->SetIndexToWorldTransform(transform);
88 objectToTransform->Modified();
NavigationData * GetOutput(void)
return the output (output with id 0) of the filter
Base of all data objects.
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
virtual void SetDataValid(bool _arg)
sets the dataValid flag of the NavigationData object indicating if the object contains valid data ...
std::map< int, Transform::Pointer > m_HandEyeTransformations
Map of the hand-eye transformations that should be applied to the BaseDatas.
virtual PositionType GetPosition() const
returns position of the NavigationData object
const NavigationData * GetInput(void) const
Get the input of this filter.
void GenerateData() override
~NavigationDataHandEyeCalibrationFilter() override
Destructor.
void SetObjectToTransform(unsigned int index, BaseData *data)
Set the object that will be transformed to tracking coordinates using the current NavigationData and ...
std::map< int, BaseData::Pointer > m_ObjectsToTransform
Map of the BaseDatas that should be transformed.
void SetHandEyeTransformation(unsigned int index, Transform::Pointer handEyeTransform)
Set the transformation of the HandEyeCalibration that should be applied to the BaseData with the curr...
void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
NavigationDataHandEyeCalibrationFilter()
Constructor.
virtual OrientationType GetOrientation() const
returns the orientation of the NavigationData object
virtual bool IsDataValid() const
returns true if the object contains valid data