18 #ifndef sitkSimilarity2DTransform_h
19 #define sitkSimilarity2DTransform_h
49 const std::vector<double> &translation = std::vector<double>(2,0.0),
50 const std::vector< double > &fixedCenter = std::vector<double>(2,0.0) );
59 std::string
GetName()
const {
return std::string (
"Similarity2DTransform"); }
62 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
63 std::vector<double> GetCenter( )
const;
66 SITK_RETURN_SELF_TYPE_HEADER SetAngle (
double angle);
67 double GetAngle ()
const;
69 std::vector<double> GetTranslation( )
const;
70 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
72 SITK_RETURN_SELF_TYPE_HEADER SetScale(
double scale);
73 double GetScale()
const;
76 std::vector<double> GetMatrix()
const;
77 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
81 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
85 using Superclass::AddTransform;
89 template <
typename TransformType>
90 void InternalInitialization(TransformType *transform);
92 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
93 nsstd::function<std::vector<double>()> m_pfGetCenter;
96 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
97 nsstd::function<std::vector<double>()> m_pfGetTranslation;
100 nsstd::function<std::vector<double>()> m_pfGetMatrix;
101 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
107 #endif // sitkSimilarity2DTransform_h
#define SITKCommon_EXPORT