18 #ifndef sitkSimilarity3DTransform_h
19 #define sitkSimilarity3DTransform_h
52 const std::vector< double > &translation=std::vector< double >(3, 0.0),
53 const std::vector< double > &fixedCenter=std::vector< double >(3, 0.0) );
56 const std::vector< double > &translation=std::vector< double >(3, 0.0),
57 const std::vector< double > &fixedCenter=std::vector< double >(3, 0.0) );
62 std::string
GetName()
const {
return std::string (
"Similarity3DTransform"); }
65 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
66 std::vector<double> GetCenter( )
const;
70 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &versor);
71 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &axis,
double angle);
72 std::vector<double> GetVersor()
const;
74 SITK_RETURN_SELF_TYPE_HEADER SetScale(
double scale);
75 double GetScale()
const;
77 std::vector<double> GetTranslation( )
const;
78 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
82 SITK_RETURN_SELF_TYPE_HEADER Translate(
const std::vector<double> &offset);
83 std::vector<double> GetMatrix()
const;
84 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
88 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
92 using Superclass::AddTransform;
96 template <
typename TransformType>
97 void InternalInitialization(TransformType *transform);
99 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
100 nsstd::function<std::vector<double>()> m_pfGetCenter;
101 nsstd::function<void(const std::vector<double>&)> m_pfSetRotation1;
102 nsstd::function<void(const std::vector<double>,
double&)> m_pfSetRotation2;
103 nsstd::function<std::vector<double>()> m_pfGetVersor;
106 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
107 nsstd::function<std::vector<double>()> m_pfGetTranslation;
108 nsstd::function<void(const std::vector<double> &)> m_pfTranslate;
109 nsstd::function<std::vector<double>()> m_pfGetMatrix;
110 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
116 #endif // sitkSimilarity3DTransform_h
#define SITKCommon_EXPORT