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
24namespace itk
25{
36template< typename TTypeList, typename NDimensions >
37class GPUImageFactory2 : public GPUObjectFactoryBase< NDimensions >
38{
39public:
40
44 typedef SmartPointer< const Self > ConstPointer;
45
47 const char * GetDescription() const { return "A Factory for GPUImage"; }
48
51
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(),
65 "GPU Image Override", true,
66 CreateObjectFunction< GPUImage< TType, VImageDimension > >::New()
67 );
68 }
69
70
71protected:
72
74 virtual ~GPUImageFactory2() {}
75
77 virtual void Register1D();
78
80 virtual void Register2D();
81
83 virtual void Register3D();
84
85private:
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.
virtual void Register3D()
virtual void Register1D()
SmartPointer< const Self > ConstPointer
GPUObjectFactoryBase< NDimensions > Superclass
void operator=(const Self &)
virtual void Register2D()
static void RegisterOneFactory()
GPUImageFactory2(const Self &)
SmartPointer< Self > Pointer
const char * GetDescription() const
Templated n-dimensional image class for the GPU.
Definition: itkGPUImage.h:64
Base class for all GPU factory classes.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo