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: 2005/01/21 20:16:26 $
00007   Version:   $Revision: 1.3 $
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 
00028 template <class TInputImage>            
00029 class ITK_EXPORT ImageDuplicator : public Object 
00030 {
00031 public:
00033   typedef ImageDuplicator Self;
00034   typedef Object  Superclass;
00035   typedef SmartPointer<Self>   Pointer;
00036   typedef SmartPointer<const Self>  ConstPointer;
00037 
00039   itkNewMacro(Self);
00040 
00042   itkTypeMacro(ImageDuplicator, Object);
00043 
00045   typedef TInputImage  ImageType;
00046   typedef typename TInputImage::Pointer  ImagePointer;
00047   typedef typename TInputImage::ConstPointer ImageConstPointer;
00048   typedef typename TInputImage::PixelType PixelType;
00049   typedef typename TInputImage::IndexType IndexType;
00050 
00051   itkStaticConstMacro(ImageDimension, unsigned int,
00052                       ImageType::ImageDimension);
00053 
00055   itkSetConstObjectMacro(InputImage,ImageType);
00056   
00058   itkGetObjectMacro(Output,ImageType);
00059 
00061   void Update(void);
00062 
00063 protected:
00064   ImageDuplicator();
00065   virtual ~ImageDuplicator() {};
00066   void PrintSelf(std::ostream& os, Indent indent) const;
00067 
00068 private:
00069   ImageDuplicator(const Self&); //purposely not implemented
00070   void operator=(const Self&); //purposely not implemented
00071   
00072   ImageConstPointer       m_InputImage;
00073   ImagePointer            m_Output;
00074   unsigned long           m_InternalImageTime;
00075   
00076 };
00077 
00078 } // end namespace itk
00079 
00080 
00081 #ifndef ITK_MANUAL_INSTANTIATION
00082 #include "itkImageDuplicator.txx"
00083 #endif
00084 
00085 #endif /* __itkImageDuplicator_h */

Generated at Wed May 24 23:19:13 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000