go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxImageSamplerBase.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __elxImageSamplerBase_h
16 #define __elxImageSamplerBase_h
17 
19 #include "elxMacro.h"
20 
21 #include "elxBaseComponentSE.h"
22 
23 #include "itkImageSamplerBase.h"
24 
25 
26 namespace elastix
27 {
28 //using namespace itk; not here because itk::ImageSamplerBase exists also.
29 
40  template <class TElastix>
41  class ImageSamplerBase : public BaseComponentSE<TElastix>
42  {
43  public:
44 
48 
51 
53  typedef typename Superclass::ElastixType ElastixType;
59 
61  typedef typename ElastixType::FixedImageType InputImageType;
62 
65 
67  virtual ITKBaseType * GetAsITKBaseType(void)
68  {
69  return dynamic_cast<ITKBaseType *>(this);
70  }
71 
73  virtual const ITKBaseType * GetAsITKBaseType(void) const
74  {
75  return dynamic_cast<const ITKBaseType *>(this);
76  }
77 
82  virtual void BeforeEachResolutionBase(void);
83 
84  protected:
85 
89  virtual ~ImageSamplerBase() {}
90 
91  private:
92 
94  ImageSamplerBase( const Self& ); // purposely not implemented
96  void operator=( const Self& ); // purposely not implemented
97 
98  }; // end class ImageSamplerBase
99 
100 
101 } // end namespace elastix
102 
103 
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "elxImageSamplerBase.hxx"
107 #endif
108 
109 #endif // end #ifndef __elxImageSamplerBase_h
110 
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Superclass::ElastixType ElastixType
Superclass::ElastixPointer ElastixPointer
ElastixType::RegistrationBaseType RegistrationType
ElastixType::ConfigurationPointer ConfigurationPointer
BaseComponentSE< TElastix > Superclass
ElastixType::Pointer ElastixPointer
ElastixType::ConfigurationType ConfigurationType
virtual ITKBaseType * GetAsITKBaseType(void)
Superclass::RegistrationType RegistrationType
Superclass::ConfigurationPointer ConfigurationPointer
RegistrationType * RegistrationPointer
This class is a base class for any image sampler.
Superclass::ConfigurationType ConfigurationType
virtual const ITKBaseType * GetAsITKBaseType(void) const
Superclass::RegistrationPointer RegistrationPointer
itk::ImageSamplerBase< InputImageType > ITKBaseType
ElastixType::FixedImageType InputImageType
void operator=(const Self &)


Generated on 05-12-2013 for elastix by doxygen 1.8.5 elastix logo