From e3ab4de04a3be7d194330d6ca3b5c961eaa7a209 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 22 Sep 2010 10:58:29 +0200
Subject: [PATCH] ENH : use a macro

---
 Code/Projections/otbGenericRSResampleImageFilter.h | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/Code/Projections/otbGenericRSResampleImageFilter.h b/Code/Projections/otbGenericRSResampleImageFilter.h
index 2063f98153..d32966c147 100644
--- a/Code/Projections/otbGenericRSResampleImageFilter.h
+++ b/Code/Projections/otbGenericRSResampleImageFilter.h
@@ -98,11 +98,8 @@ public:
   typedef itk::ImageBase<OutputImageType::ImageDimension>      ImageBaseType;
   
   /** The Deformation field spacing & size */
-  void SetDeformationFieldSpacing(const SpacingType & spacing)
-  {
-    m_Resampler->SetDeformationFieldSpacing(spacing);
-    this->Modified();
-  }
+  otbSetObjectMemberMacro(Resampler,DeformationFieldSpacing, SpacingType);
+
   otbGetObjectMemberConstReferenceMacro(Resampler,
                                         DeformationFieldSpacing,
                                         SpacingType);
-- 
GitLab