18 #ifndef sitkScaleTransform_h
19 #define sitkScaleTransform_h
42 const std::vector<double> &scale = std::vector<double>(3,1.0) );
49 std::string
GetName()
const {
return std::string (
"ScaleTransform"); }
54 SITK_RETURN_SELF_TYPE_HEADER SetScale(
const std::vector<double> ¶ms);
55 std::vector<double> GetScale( )
const;
58 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
59 std::vector<double> GetCenter( )
const;
62 std::vector<double> GetMatrix()
const;
66 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
70 using Superclass::AddTransform;
76 template<
typename TransformType >
77 void operator() (
void )
const
79 TransformType *t =
dynamic_cast<TransformType*
>(transform);
80 if (t && (
typeid(*t)==
typeid(TransformType)))
89 template <
typename TransformType>
90 void InternalInitialization(TransformType *transform);
93 nsstd::function<void(std::vector<double>)> m_pfSetCenter;
94 nsstd::function<std::vector<double>()> m_pfGetCenter;
95 nsstd::function<void(std::vector<double>)> m_pfSetScale;
96 nsstd::function<std::vector<double>()> m_pfGetScale;
97 nsstd::function<std::vector<double>()> m_pfGetMatrix;
105 #endif // sitkScaleTransform_h
#define SITKCommon_EXPORT