go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUTranslationTransformFactory.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 __itkGPUTranslationTransformFactory_h
19 #define __itkGPUTranslationTransformFactory_h
20 
23 
24 namespace itk
25 {
36 template< typename NDimensions >
38 {
39 public:
40 
44  typedef SmartPointer< const Self > ConstPointer;
45 
47  const char * GetDescription() const { return "A Factory for GPUTranslationTransform"; }
48 
50  itkFactorylessNewMacro( Self );
51 
54 
56  static void RegisterOneFactory();
57 
59  template< typename TType, unsigned int VImageDimension >
60  void operator()( void )
61  {
62  this->RegisterOverride(
63  typeid( TranslationTransform< TType, VImageDimension > ).name(),
65  "GPU TranslationTransform override", true,
66  CreateObjectFunction< GPUTranslationTransform< TType, VImageDimension > >::New()
67  );
68  }
69 
70 
71 protected:
72 
75 
78 
80  virtual void Register1D();
81 
83  virtual void Register2D();
84 
86  virtual void Register3D();
87 
88 private:
89 
90  GPUTranslationTransformFactory2( const Self & ); // purposely not implemented
91  void operator=( const Self & ); // purposely not implemented
92 
93 };
94 
95 } // end namespace itk
96 
97 #ifndef ITK_MANUAL_INSTANTIATION
98 #include "itkGPUTranslationTransformFactory.hxx"
99 #endif
100 
101 #endif /* __itkGPUTranslationTransformFactory_h */
typelist::MakeTypeList< float, double >::Type RealTypeList
The building block of typelists of any length.
Definition: TypeList.h:82
GPUObjectFactoryBase< NDimensions > Superclass
Base class for all GPU factory classes.
GPU version of TranslationTransform.


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