go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxBaseComponentSE.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __elxBaseComponentSE_h
19 #define __elxBaseComponentSE_h
20 
21 #include "elxBaseComponent.h"
22 #include "itkObject.h"
23 
24 namespace elastix
25 {
26 
42 template< class TElastix >
44 {
45 public:
46 
50 
52  typedef TElastix ElastixType;
53  typedef typename ElastixType::Pointer ElastixPointer;
54 
56  typedef typename ElastixType::ConfigurationType ConfigurationType;
57  typedef typename ElastixType::ConfigurationPointer ConfigurationPointer;
58 
62  typedef typename ElastixType::RegistrationBaseType RegistrationType;
63  typedef RegistrationType * RegistrationPointer;
64 
77  virtual void SetElastix( ElastixType * _arg );
78 
82  virtual ElastixType * GetElastix( void ) const
83  {
84  return this->m_Elastix.GetPointer();
85  }
86 
87 
92  virtual ConfigurationType * GetConfiguration( void ) const
93  {
94  return this->m_Configuration.GetPointer();
95  }
96 
97 
99  virtual void SetConfiguration( ConfigurationType * _arg );
100 
106  virtual RegistrationPointer GetRegistration( void ) const
107  {
108  return this->m_Registration;
109  }
110 
111 
112 protected:
113 
114  BaseComponentSE();
115  virtual ~BaseComponentSE() {}
116 
117  ElastixPointer m_Elastix;
118  ConfigurationPointer m_Configuration;
119  RegistrationPointer m_Registration;
120 
121 private:
122 
123  BaseComponentSE( const Self & ); // purposely not implemented
124  void operator=( const Self & ); // purposely not implemented
125 
126 };
127 
128 } //end namespace elastix
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "elxBaseComponentSE.hxx"
132 #endif
133 
134 #endif // end #ifndef __elxBaseComponentSE_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
ElastixType::RegistrationBaseType RegistrationType
ElastixType::ConfigurationPointer ConfigurationPointer
ElastixType::Pointer ElastixPointer
ElastixType::ConfigurationType ConfigurationType
void operator=(const Self &)
virtual ElastixType * GetElastix(void) const
The BaseComponent class is a class that all elastix components should inherit from.
RegistrationType * RegistrationPointer
ConfigurationPointer m_Configuration
virtual ConfigurationType * GetConfiguration(void) const
virtual void SetElastix(ElastixType *_arg)
virtual void SetConfiguration(ConfigurationType *_arg)
RegistrationPointer m_Registration
virtual RegistrationPointer GetRegistration(void) const


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo