go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUObjectFactoryBase.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 __itkGPUObjectFactoryBase_h
19 #define __itkGPUObjectFactoryBase_h
20 
21 #include "itkGPUSupportedImages.h"
22 
23 // ITK includes
24 #include "itkVersion.h"
25 #include "itkObjectFactoryBase.h"
26 
27 namespace itk
28 {
39 template< typename NDimensions >
40 class GPUObjectFactoryBase : public ObjectFactoryBase
41 {
42 public:
43 
45  typedef ObjectFactoryBase Superclass;
47  typedef SmartPointer< const Self > ConstPointer;
48 
50  virtual const char * GetITKSourceVersion() const { return ITK_SOURCE_VERSION; }
51 
53  itkTypeMacro( GPUObjectFactoryBase, ObjectFactoryBase );
54 
56  itkStaticConstMacro( Support1D, bool, NDimensions::Support1D );
57  itkStaticConstMacro( Support2D, bool, NDimensions::Support2D );
58  itkStaticConstMacro( Support3D, bool, NDimensions::Support3D );
59 
62  virtual void RegisterAll();
63 
64 protected:
65 
67  virtual ~GPUObjectFactoryBase() {}
68 
70  virtual void Register1D() {}
71 
73  virtual void Register2D() {}
74 
76  virtual void Register3D() {}
77 
78 private:
79 
80  GPUObjectFactoryBase( const Self & ); // purposely not implemented
81  void operator=( const Self & ); // purposely not implemented
82 
83 };
84 
85 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "itkGPUObjectFactoryBase.hxx"
89 #endif
90 
91 #endif // end #ifndef __itkGPUObjectFactoryBase_h
SmartPointer< const Self > ConstPointer
Base class for all GPU factory classes.
virtual const char * GetITKSourceVersion() const
itkStaticConstMacro(Support1D, bool, NDimensions::Support1D)
void operator=(const Self &)
virtual void RegisterAll()


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