18 #ifndef sitkVersorRigid3DTransform_h
19 #define sitkVersorRigid3DTransform_h
50 const std::vector< double > &translation=std::vector< double >(3, 0.0),
51 const std::vector< double> &fixedCenter=std::vector< double >(3, 0.0));
54 const std::vector< double > &translation=std::vector< double >(3, 0.0),
55 const std::vector< double> &fixedCenter=std::vector< double >(3, 0.0) );
60 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
61 std::vector<double> GetCenter( )
const;
65 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &versor);
66 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &axis,
double angle);
67 std::vector<double> GetVersor()
const;
69 std::vector<double> GetTranslation( )
const;
70 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
73 SITK_RETURN_SELF_TYPE_HEADER Translate(
const std::vector<double> &offset);
74 std::vector<double> GetMatrix()
const;
75 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
79 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
83 using Superclass::AddTransform;
87 template <
typename TransformType>
88 void InternalInitialization(TransformType *transform);
91 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
92 nsstd::function<std::vector<double>()> m_pfGetCenter;
93 nsstd::function<void(const std::vector<double>&)> m_pfSetRotation1;
94 nsstd::function<void(const std::vector<double>&,double)> m_pfSetRotation2;
95 nsstd::function<std::vector<double>()> m_pfGetVersor;
96 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
97 nsstd::function<std::vector<double>()> m_pfGetTranslation;
98 nsstd::function<void(const std::vector<double> &)> m_pfTranslate;
99 nsstd::function<std::vector<double>()> m_pfGetMatrix;
100 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
106 #endif // sitkVersorTransform_h
#define SITKCommon_EXPORT