19 #include <mapExceptionObjectMacros.h>
51 if (m_spRegistration.IsNull())
53 mitkThrow()<<
"Error. Cannot return moving dimension. Wrapper points to invalid registration (NULL).";
55 return m_spRegistration->getMovingDimensions();
61 if (m_spRegistration.IsNull())
63 mitkThrow()<<
"Error. Cannot return target dimension. Wrapper points to invalid registration (NULL).";
65 return m_spRegistration->getTargetDimensions();
70 if (m_spRegistration.IsNull())
72 mitkThrow()<<
"Error. Cannot return registration tags. Wrapper points to invalid registration (NULL).";
74 return m_spRegistration->getTags();
79 if (m_spRegistration.IsNull())
81 mitkThrow()<<
"Error. Cannot return registration tag value. Wrapper points to invalid registration (NULL). Tag: " << tag;
83 return m_spRegistration->getTagValue(tag,value);
88 if (m_spRegistration.IsNull())
90 mitkThrow()<<
"Error. Cannot determin HasLimitedTargetRepresentation(). Wrapper points to invalid registration (NULL).";
92 return m_spRegistration->hasLimitedTargetRepresentation();
97 if (m_spRegistration.IsNull())
99 mitkThrow()<<
"Error. Cannot determin HasLimitedMovingRepresentation(). Wrapper points to invalid registration (NULL).";
101 return m_spRegistration->hasLimitedMovingRepresentation();
106 return m_spRegistration;
111 return m_spRegistration;
116 m_spRegistration = pReg;
121 Superclass::PrintSelf(os,indent);
122 if (m_spRegistration.IsNull())
124 os<<
"Error. Wrapper points to invalid registration (NULL).";
128 os<<std::endl<<indent<<
"MatchPoint registration instance:";
129 m_spRegistration->Print(os,indent.GetNextIndent());
131 typedef map::core::Registration<3,3> CastedRegType;
132 const CastedRegType* pCastedReg =
dynamic_cast<const CastedRegType*
>(m_spRegistration.GetPointer());
134 os<<std::endl<<indent<<
"MatchPoint registration direct kernel instance:";
135 pCastedReg->getDirectMapping().Print(os,indent.GetNextIndent());
137 os<<std::endl<<indent<<
"MatchPoint registration inverse kernel instance:";
138 pCastedReg->getInverseMapping().Print(os,indent.GetNextIndent());
virtual void SetRequestedRegionToLargestPossibleRegion()
::map::core::RegistrationBase::ValueType ValueType
virtual ~MAPRegistrationWrapper()
void SetRegistration(map::core::RegistrationBase *pReg)
virtual unsigned int GetMovingDimensions() const
Gets the number of moving dimensions.
virtual void SetRequestedRegion(const itk::DataObject *)
::map::core::RegistrationBase::TagType TagType
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
map::core::RegistrationBase * GetRegistration()
bool HasLimitedMovingRepresentation() const
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion()
bool HasLimitedTargetRepresentation() const
bool GetTagValue(const TagType &tag, ValueType &value) const
returns the tag value for a specific tag
virtual bool VerifyRequestedRegion()
::map::core::RegistrationBase::TagMapType TagMapType
virtual unsigned int GetTargetDimensions() const
Gets the number of target dimensions.
const TagMapType & GetTags() const
returns the tags associated with this registration