Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkImageDuplicator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageDuplicator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2010-04-22 02:21:14 $
00007   Version:   $Revision: 1.7 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
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 
00048 template <class TInputImage>
00049 class ITK_EXPORT ImageDuplicator : public Object
00050 {
00051 public:
00053   typedef ImageDuplicator               Self;
00054   typedef Object                        Superclass;
00055   typedef SmartPointer<Self>            Pointer;
00056   typedef SmartPointer<const Self>      ConstPointer;
00057 
00059   itkNewMacro(Self);
00060 
00062   itkTypeMacro(ImageDuplicator, Object);
00063 
00065   typedef TInputImage                           ImageType;
00066   typedef typename TInputImage::Pointer         ImagePointer;
00067   typedef typename TInputImage::ConstPointer    ImageConstPointer;
00068   typedef typename TInputImage::PixelType       PixelType;
00069   typedef typename TInputImage::IndexType       IndexType;
00070 
00071   itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension);
00072 
00074   itkSetConstObjectMacro(InputImage,ImageType);
00075 
00077   itkGetObjectMacro(Output,ImageType);
00078 
00080   void Update(void);
00081 
00082 protected:
00083   ImageDuplicator();
00084   virtual ~ImageDuplicator() {};
00085   void PrintSelf(std::ostream& os, Indent indent) const;
00086 
00087 private:
00088   ImageDuplicator(const Self&); //purposely not implemented
00089   void operator=(const Self&); //purposely not implemented
00090 
00091   ImageConstPointer       m_InputImage;
00092   ImagePointer            m_Output;
00093   unsigned long           m_InternalImageTime;
00094 
00095 };
00096 
00097 } // end namespace itk
00098 
00099 // Define instantiation macro for this template.
00100 #define ITK_TEMPLATE_ImageDuplicator(_, EXPORT, x, y) namespace itk { \
00101   _(1(class EXPORT ImageDuplicator< ITK_TEMPLATE_1 x >)) \
00102   namespace Templates { typedef ImageDuplicator< ITK_TEMPLATE_1 x > ImageDuplicator##y; } \
00103   }
00104 
00105 #if ITK_TEMPLATE_EXPLICIT
00106 # include "Templates/itkImageDuplicator+-.h"
00107 #endif
00108 
00109 #if ITK_TEMPLATE_TXX
00110 # include "itkImageDuplicator.txx"
00111 #endif
00112 
00113 #endif /* __itkImageDuplicator_h */
00114 

Generated at Mon Jul 12 2010 18:36:12 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000