go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUImageFactory.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 __itkGPUImageFactory_h
19 #define __itkGPUImageFactory_h
20 
22 #include "itkGPUImage.h"
23 
24 namespace itk
25 {
36 template< typename TTypeList, typename NDimensions >
37 class GPUImageFactory2 : public GPUObjectFactoryBase< NDimensions >
38 {
39 public:
40 
44  typedef SmartPointer< const Self > ConstPointer;
45 
47  const char * GetDescription() const { return "A Factory for GPUImage"; }
48 
50  itkFactorylessNewMacro( Self );
51 
53  itkTypeMacro( GPUImageFactory2, GPUObjectFactoryBase );
54 
56  static void RegisterOneFactory();
57 
59  template< typename TType, unsigned int VImageDimension >
60  void operator()( void )
61  {
62  this->RegisterOverride(
63  typeid( Image< TType, VImageDimension > ).name(),
64  typeid( GPUImage< TType, VImageDimension > ).name(),
65  "GPU Image Override", true,
66  CreateObjectFunction< GPUImage< TType, VImageDimension > >::New()
67  );
68  }
69 
70 
71 protected:
72 
74  virtual ~GPUImageFactory2() {}
75 
77  virtual void Register1D();
78 
80  virtual void Register2D();
81 
83  virtual void Register3D();
84 
85 private:
86 
87  GPUImageFactory2( const Self & ); // purposely not implemented
88  void operator=( const Self & ); // purposely not implemented
89 
90 };
91 
92 } // end namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "itkGPUImageFactory.hxx"
96 #endif
97 
98 #endif // end #ifndef __itkGPUImageFactory_h
Object Factory implementation for GPUImage.
void operator=(const Self &)
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:63
static void RegisterOneFactory()
Base class for all GPU factory classes.
virtual void Register2D()
SmartPointer< Self > Pointer
virtual void Register3D()
SmartPointer< const Self > ConstPointer
const char * GetDescription() const
virtual void Register1D()
GPUObjectFactoryBase< NDimensions > Superclass


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