18 #ifndef sitkEuler2DTransform_h
19 #define sitkEuler2DTransform_h
46 const std::vector<double> &translation = std::vector<double>(2,0.0) );
55 std::string
GetName()
const {
return std::string (
"Euler2DTransform"); }
58 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
59 std::vector<double> GetCenter( )
const;
62 SITK_RETURN_SELF_TYPE_HEADER SetAngle (
double angle);
63 double GetAngle ()
const;
65 std::vector<double> GetTranslation( )
const;
66 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
69 std::vector<double> GetMatrix()
const;
70 SITK_RETURN_SELF_TYPE_HEADER SetMatrix(
const std::vector<double> &matrix,
double tolerance = 1e-10);
74 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
78 using Superclass::AddTransform;
82 template <
typename TransformType>
83 void InternalInitialization(TransformType *transform);
85 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
86 nsstd::function<std::vector<double>()> m_pfGetCenter;
89 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
90 nsstd::function<std::vector<double>()> m_pfGetTranslation;
91 nsstd::function<std::vector<double>()> m_pfGetMatrix;
92 nsstd::function<void(const std::vector<double>&, double)> m_pfSetMatrix;
99 #endif // sitkEuler2DTransform_h
#define SITKCommon_EXPORT