23 m_ObjectsToTransform(),m_HandEyeTransformations()
30 m_ObjectsToTransform.clear();
31 m_HandEyeTransformations.clear();
36 m_ObjectsToTransform[index] = data;
41 m_HandEyeTransformations[index] = handEyeTransformation;
47 unsigned int numberOfInputs = this->GetNumberOfInputs();
48 for (
unsigned int index=0; index < numberOfInputs; index++)
66 if (!objectToTransform)
72 if (!m_HandEyeTransformations[index])
78 handEyeTransform->SetRotation(m_HandEyeTransformations[index]->GetOrientation());
79 handEyeTransform->SetOffset(m_HandEyeTransformations[index]->GetPosition().GetVectorFromOrigin());
84 ndTransform->SetOffset(nd->
GetPosition().GetVectorFromOrigin());
87 transform->SetIdentity();
88 transform->Compose(handEyeTransform);
89 transform->Compose(ndTransform);
91 objectToTransform->GetGeometry()->SetIndexToWorldTransform(transform);
92 objectToTransform->Modified();
itk::SmartPointer< Self > Pointer
Base of all data objects.
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
~NavigationDataHandEyeCalibrationFilter()
Destructor.
virtual void SetDataValid(bool _arg)
sets the dataValid flag of the NavigationData object indicating if the object contains valid data ...
virtual OrientationType GetOrientation() const
returns the orientation of the NavigationData object
virtual void GenerateData() override
void SetObjectToTransform(unsigned int index, BaseData *data)
Set the object that will be transformed to tracking coordinates using the current NavigationData and ...
void SetHandEyeTransformation(unsigned int index, Transform::Pointer handEyeTransform)
Set the transformation of the HandEyeCalibration that should be applied to the BaseData with the curr...
virtual bool IsDataValid() const
returns true if the object contains valid data
virtual PositionType GetPosition() const
returns position of the NavigationData object
virtual void Graft(const DataObject *data) override
Graft the data and information from one NavigationData to another.
NavigationDataHandEyeCalibrationFilter()
Constructor.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.