18 #ifndef sitkScaleVersor3DTransform_h
19 #define sitkScaleVersor3DTransform_h
51 const std::vector< double > &versor,
52 const std::vector< double > &translation=std::vector< double >(3, 0.0),
53 const std::vector< double> &fixedCenter=std::vector< double >(3, 0.0) );
56 const std::vector< double > &axis,
double angle,
57 const std::vector< double > &translation=std::vector< double >(3, 0.0),
58 const std::vector< double> &fixedCenter=std::vector< double >(3, 0.0) );
63 std::string
GetName()
const {
return std::string (
"ScaleVersor3DTransform"); }
66 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
67 std::vector<double> GetCenter( )
const;
71 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &versor);
72 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &axis,
double angle);
73 std::vector<double> GetVersor()
const;
75 std::vector<double> GetTranslation( )
const;
76 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
78 std::vector<double> GetScale( )
const;
79 SITK_RETURN_SELF_TYPE_HEADER SetScale(
const std::vector<double> & scale );
82 SITK_RETURN_SELF_TYPE_HEADER Translate(
const std::vector<double> &offset);
83 std::vector<double> GetMatrix()
const;
87 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
91 using Superclass::AddTransform;
95 template <
typename TransformType>
96 void InternalInitialization(TransformType *transform);
99 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
100 nsstd::function<std::vector<double>()> m_pfGetCenter;
101 nsstd::function<void(const std::vector<double>&)> m_pfSetRotation1;
102 nsstd::function<void(const std::vector<double>&,double)> m_pfSetRotation2;
103 nsstd::function<std::vector<double>()> m_pfGetVersor;
104 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
105 nsstd::function<std::vector<double>()> m_pfGetTranslation;
106 nsstd::function<void(const std::vector<double>&)> m_pfSetScale;
107 nsstd::function<std::vector<double>()> m_pfGetScale;
108 nsstd::function<void(const std::vector<double> &)> m_pfTranslate;
109 nsstd::function<std::vector<double>()> m_pfGetMatrix;
115 #endif // sitkVersorTransform_h
#define SITKCommon_EXPORT