18 #ifndef sitkSimilarity2DTransform_h
19 #define sitkSimilarity2DTransform_h
46 const std::vector<double> &translation = std::vector<double>(2,0.0),
47 const std::vector< double > &fixedCenter = std::vector<double>(2,0.0) );
56 std::string
GetName()
const {
return std::string (
"Similarity2DTransform"); }
59 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
60 std::vector<double> GetCenter( )
const;
63 SITK_RETURN_SELF_TYPE_HEADER SetAngle (
double angle);
64 double GetAngle ()
const;
66 std::vector<double> GetTranslation( )
const;
67 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
69 SITK_RETURN_SELF_TYPE_HEADER SetScale(
double scale);
70 double GetScale()
const;
73 std::vector<double> GetMatrix()
const;
74 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
78 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
82 using Superclass::AddTransform;
86 template <
typename TransformType>
87 void InternalInitialization(TransformType *transform);
89 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
90 nsstd::function<std::vector<double>()> m_pfGetCenter;
93 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
94 nsstd::function<std::vector<double>()> m_pfGetTranslation;
97 nsstd::function<std::vector<double>()> m_pfGetMatrix;
98 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
104 #endif // sitkSimilarity2DTransform_h
#define SITKCommon_EXPORT