18 #ifndef sitkEuler2DTransform_h
19 #define sitkEuler2DTransform_h
49 const std::vector<double> &translation = std::vector<double>(2,0.0) );
58 std::string
GetName()
const {
return std::string (
"Euler2DTransform"); }
61 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
62 std::vector<double> GetCenter( )
const;
65 SITK_RETURN_SELF_TYPE_HEADER SetAngle (
double angle);
66 double GetAngle ()
const;
68 std::vector<double> GetTranslation( )
const;
69 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
72 std::vector<double> GetMatrix()
const;
73 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
77 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
81 using Superclass::AddTransform;
85 template <
typename TransformType>
86 void InternalInitialization(TransformType *transform);
88 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
89 nsstd::function<std::vector<double>()> m_pfGetCenter;
92 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
93 nsstd::function<std::vector<double>()> m_pfGetTranslation;
94 nsstd::function<std::vector<double>()> m_pfGetMatrix;
95 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
102 #endif // sitkEuler2DTransform_h
#define SITKCommon_EXPORT