18 #ifndef sitkTranslationTransform_h
19 #define sitkTranslationTransform_h
42 const std::vector<double> &offset = std::vector<double>(3,0.0) );
50 SITK_RETURN_SELF_TYPE_HEADER SetOffset(
const std::vector<double> ¶ms);
51 std::vector<double> GetOffset( )
const;
55 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
59 using Superclass::AddTransform;
65 template<
typename TransformType >
66 void operator() (
void )
const
68 TransformType *t =
dynamic_cast<TransformType*
>(transform);
69 if (t && (
typeid(*t)==
typeid(TransformType)))
78 template <
typename TransformType>
79 void InternalInitialization(TransformType *transform);
81 nsstd::function<void(const std::vector<double> &)> m_pfSetOffset;
82 nsstd::function<std::vector<double>()> m_pfGetOffset;
89 #endif // sitkTranslationTransform_h
#define SITKCommon_EXPORT