18 #ifndef sitkTranslationTransform_h
19 #define sitkTranslationTransform_h
45 const std::vector<double> &offset = std::vector<double>(3,0.0) );
53 SITK_RETURN_SELF_TYPE_HEADER SetOffset(
const std::vector<double> ¶ms);
54 std::vector<double> GetOffset( )
const;
58 virtual void SetPimpleTransform( PimpleTransformBase *pimpleTransform );
62 using Superclass::AddTransform;
68 template<
typename TransformType >
69 void operator() (
void )
const
71 TransformType *t =
dynamic_cast<TransformType*
>(transform);
72 if (t && (
typeid(*t) ==
typeid(TransformType)))
81 template <
typename TransformType>
82 void InternalInitialization(TransformType *transform);
84 nsstd::function<void(const std::vector<double> &)> m_pfSetOffset;
85 nsstd::function<std::vector<double>()> m_pfGetOffset;
92 #endif // sitkTranslationTransform_h
#define SITKCommon_EXPORT