18 #ifndef sitkScaleVersor3DTransform_h
19 #define sitkScaleVersor3DTransform_h
54 const std::vector< double > &versor,
55 const std::vector< double > &translation=std::vector< double >(3, 0.0),
56 const std::vector< double> &fixedCenter=std::vector< double >(3, 0.0) );
59 const std::vector< double > &axis,
double angle,
60 const std::vector< double > &translation=std::vector< double >(3, 0.0),
61 const std::vector< double> &fixedCenter=std::vector< double >(3, 0.0) );
66 std::string
GetName()
const {
return std::string (
"ScaleVersor3DTransform"); }
69 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
70 std::vector<double> GetCenter( )
const;
74 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &versor);
75 SITK_RETURN_SELF_TYPE_HEADER SetRotation(
const std::vector<double> &axis,
double angle);
76 std::vector<double> GetVersor()
const;
78 std::vector<double> GetTranslation( )
const;
79 SITK_RETURN_SELF_TYPE_HEADER SetTranslation(
const std::vector<double>& translation);
81 std::vector<double> GetScale( )
const;
82 SITK_RETURN_SELF_TYPE_HEADER SetScale(
const std::vector<double> & scale );
85 SITK_RETURN_SELF_TYPE_HEADER Translate(
const std::vector<double> &offset);
86 std::vector<double> GetMatrix()
const;
90 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
94 using Superclass::AddTransform;
98 template <
typename TransformType>
99 void InternalInitialization(TransformType *transform);
102 nsstd::function<void(const std::vector<double>&)> m_pfSetCenter;
103 nsstd::function<std::vector<double>()> m_pfGetCenter;
104 nsstd::function<void(const std::vector<double>&)> m_pfSetRotation1;
105 nsstd::function<void(const std::vector<double>&,double)> m_pfSetRotation2;
106 nsstd::function<std::vector<double>()> m_pfGetVersor;
107 nsstd::function<void(const std::vector<double>&)> m_pfSetTranslation;
108 nsstd::function<std::vector<double>()> m_pfGetTranslation;
109 nsstd::function<void(const std::vector<double>&)> m_pfSetScale;
110 nsstd::function<std::vector<double>()> m_pfGetScale;
111 nsstd::function<void(const std::vector<double> &)> m_pfTranslate;
112 nsstd::function<std::vector<double>()> m_pfGetMatrix;
118 #endif // sitkVersorTransform_h
#define SITKCommon_EXPORT