18 #ifndef sitkSimilarity3DTransform_h
19 #define sitkSimilarity3DTransform_h
49 const std::vector< double > &translation=std::vector< double >(3, 0.0),
50 const std::vector< double > &fixedCenter=std::vector< double >(3, 0.0) );
53 const std::vector< double > &translation=std::vector< double >(3, 0.0),
54 const std::vector< double > &fixedCenter=std::vector< double >(3, 0.0) );
59 std::string
GetName()
const {
return std::string (
"Similarity3DTransform"); }
62 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
63 std::vector<double> GetCenter( )
const;
67 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &versor);
68 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &axis,
double angle);
69 std::vector<double> GetVersor()
const;
71 SITK_RETURN_SELF_TYPE_HEADER SetScale(
double scale);
72 double GetScale()
const;
74 std::vector<double> GetTranslation( )
const;
75 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
79 SITK_RETURN_SELF_TYPE_HEADER Translate(
const std::vector<double> &offset);
80 std::vector<double> GetMatrix()
const;
81 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
85 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
89 using Superclass::AddTransform;
93 template <
typename TransformType>
94 void InternalInitialization(TransformType *transform);
96 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
97 nsstd::function<std::vector<double>()> m_pfGetCenter;
98 nsstd::function<void(const std::vector<double>&)> m_pfSetRotation1;
99 nsstd::function<void(const std::vector<double>,
double&)> m_pfSetRotation2;
100 nsstd::function<std::vector<double>()> m_pfGetVersor;
103 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
104 nsstd::function<std::vector<double>()> m_pfGetTranslation;
105 nsstd::function<void(const std::vector<double> &)> m_pfTranslate;
106 nsstd::function<std::vector<double>()> m_pfGetMatrix;
107 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
113 #endif // sitkSimilarity3DTransform_h
#define SITKCommon_EXPORT