18 #ifndef sitkScaleTransform_h
19 #define sitkScaleTransform_h
45 const std::vector<double> &scale = std::vector<double>(3,1.0) );
52 std::string
GetName()
const {
return std::string (
"ScaleTransform"); }
57 SITK_RETURN_SELF_TYPE_HEADER SetScale(
const std::vector<double> ¶ms);
58 std::vector<double> GetScale( )
const;
61 SITK_RETURN_SELF_TYPE_HEADER SetCenter(
const std::vector<double> ¶ms);
62 std::vector<double> GetCenter( )
const;
65 std::vector<double> GetMatrix()
const;
69 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
73 using Superclass::AddTransform;
79 template<
typename TransformType >
80 void operator() (
void )
const
82 TransformType *t =
dynamic_cast<TransformType*
>(transform);
83 if (t && (
typeid(*t) ==
typeid(TransformType)))
92 template <
typename TransformType>
93 void InternalInitialization(TransformType *transform);
96 nsstd::function<void(std::vector<double>)> m_pfSetCenter;
97 nsstd::function<std::vector<double>()> m_pfGetCenter;
98 nsstd::function<void(std::vector<double>)> m_pfSetScale;
99 nsstd::function<std::vector<double>()> m_pfGetScale;
100 nsstd::function<std::vector<double>()> m_pfGetMatrix;
108 #endif // sitkScaleTransform_h
#define SITKCommon_EXPORT