00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageDuplicator_h
00018 #define __itkImageDuplicator_h
00019
00020 #include "itkObject.h"
00021 #include "itkImage.h"
00022
00023 namespace itk
00024 {
00025
00046 template <class TInputImage>
00047 class ITK_EXPORT ImageDuplicator : public Object
00048 {
00049 public:
00051 typedef ImageDuplicator Self;
00052 typedef Object Superclass;
00053 typedef SmartPointer<Self> Pointer;
00054 typedef SmartPointer<const Self> ConstPointer;
00055
00057 itkNewMacro(Self);
00058
00060 itkTypeMacro(ImageDuplicator, Object);
00061
00063 typedef TInputImage ImageType;
00064 typedef typename TInputImage::Pointer ImagePointer;
00065 typedef typename TInputImage::ConstPointer ImageConstPointer;
00066 typedef typename TInputImage::PixelType PixelType;
00067 typedef typename TInputImage::IndexType IndexType;
00068
00069 itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension);
00070
00072 itkSetConstObjectMacro(InputImage,ImageType);
00073
00075 itkGetObjectMacro(Output,ImageType);
00076
00078 void Update(void);
00079
00080 protected:
00081 ImageDuplicator();
00082 virtual ~ImageDuplicator() {};
00083 void PrintSelf(std::ostream& os, Indent indent) const;
00084
00085 private:
00086 ImageDuplicator(const Self&);
00087 void operator=(const Self&);
00088
00089 ImageConstPointer m_InputImage;
00090 ImagePointer m_Output;
00091 unsigned long m_InternalImageTime;
00092
00093 };
00094
00095 }
00096
00097
00098 #define ITK_TEMPLATE_ImageDuplicator(_, EXPORT, x, y) namespace itk { \
00099 _(1(class EXPORT ImageDuplicator< ITK_TEMPLATE_1 x >)) \
00100 namespace Templates { typedef ImageDuplicator< ITK_TEMPLATE_1 x > ImageDuplicator##y; } \
00101 }
00102
00103 #if ITK_TEMPLATE_EXPLICIT
00104 # include "Templates/itkImageDuplicator+-.h"
00105 #endif
00106
00107 #if ITK_TEMPLATE_TXX
00108 # include "itkImageDuplicator.txx"
00109 #endif
00110
00111 #endif
00112