go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxBaseComponent.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 
27 #ifndef __elxBaseComponent_h
28 #define __elxBaseComponent_h
29 
31 #ifdef _MSC_VER
32 #pragma warning ( disable : 4786 )
33 #pragma warning ( disable : 4503 )
34 #endif
35 
36 #include <iostream>
37 #include <sstream>
38 
40 #define __ELASTIX_VERSION 4.600
41 
43 namespace elastix
44 {
45 
62  {
63  public:
64 
71  virtual int BeforeAllBase(void) { return 0;};
72  virtual int BeforeAll(void) { return 0;};
73 
80  virtual void BeforeRegistrationBase(void) {};
81  virtual void BeforeEachResolutionBase(void) {};
82  virtual void AfterEachResolutionBase(void) {};
83  virtual void AfterEachIterationBase(void) {};
84  virtual void AfterRegistrationBase(void) {};
85 
92  virtual void BeforeRegistration(void) {};
93  virtual void BeforeEachResolution(void) {};
94  virtual void AfterEachResolution(void) {};
95  virtual void AfterEachIteration(void) {};
96  virtual void AfterRegistration(void) {};
97 
103  virtual const char * elxGetClassName( void ) const
104  {
105  return "BaseComponent";
106  }
107 
115  virtual void SetComponentLabel( const char * label, unsigned int idx)
116  {
117  std::ostringstream makestring;
118  makestring << label << idx;
119  this->m_ComponentLabel = makestring.str();
120  }
121 
123  virtual const char * GetComponentLabel( void ) const
124  {
125  return this->m_ComponentLabel.c_str();
126  }
127 
128  protected:
129 
131  virtual ~BaseComponent() {}
132 
133  private:
134 
135  BaseComponent( const BaseComponent & ); // purposely not implemented
136  void operator=( const BaseComponent & ); // purposely not implemented
137 
138  std::string m_ComponentLabel;
139 
140  }; // end class BaseComponent
141 
142 
143 } // end namespace elastix
144 
146 namespace elx = elastix;
147 
148 
149 #endif // end #ifndef __elxBaseComponent_h
150 
virtual int BeforeAll(void)
virtual int BeforeAllBase(void)
void operator=(const BaseComponent &)
virtual void AfterEachResolution(void)
virtual void AfterEachIterationBase(void)
The BaseComponent class is a class that all elastix components should inherit from.
virtual const char * elxGetClassName(void) const
virtual const char * GetComponentLabel(void) const
virtual void AfterRegistrationBase(void)
virtual void AfterEachResolutionBase(void)
virtual void BeforeEachResolutionBase(void)
virtual void BeforeRegistrationBase(void)
virtual void AfterEachIteration(void)
virtual void SetComponentLabel(const char *label, unsigned int idx)
virtual void BeforeRegistration(void)
virtual void AfterRegistration(void)
virtual void BeforeEachResolution(void)


Generated on 05-01-2014 for elastix by doxygen 1.8.5 elastix logo