go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkGPUIdentityTransform.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 __itkGPUIdentityTransform_h
19 #define __itkGPUIdentityTransform_h
20 
21 #include "itkIdentityTransform.h"
22 #include "itkVersion.h"
23 
24 #include "itkGPUTransformBase.h"
25 
26 namespace itk
27 {
29 itkGPUKernelClassMacro( GPUIdentityTransformKernel );
30 
42 template< typename TScalarType = float, unsigned int NDimensions = 3,
43 typename TParentTransform = IdentityTransform< TScalarType, NDimensions > >
45 {
46 public:
47 
53  typedef SmartPointer< const Self > ConstPointer;
54 
56  itkNewMacro( Self );
57 
59  itkTypeMacro( GPUIdentityTransform, TParentTransform );
60 
63  virtual bool IsIdentityTransform( void ) const { return true; }
64 
65 protected:
66 
68  virtual ~GPUIdentityTransform() {}
69  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
70 
73  virtual bool GetSourceCode( std::string & source ) const ITK_OVERRIDE;
74 
75 private:
76 
77  GPUIdentityTransform( const Self & other ); // purposely not implemented
78  const Self & operator=( const Self & ); // purposely not implemented
79 
80  std::vector< std::string > m_Sources;
81 };
82 
83 } // end namespace itk
84 
85 #ifndef ITK_MANUAL_INSTANTIATION
86 #include "itkGPUIdentityTransform.hxx"
87 #endif
88 
89 #endif /* __itkGPUIdentityTransform_h */
virtual bool IsIdentityTransform(void) const
virtual bool GetSourceCode(std::string &source) const ITK_OVERRIDE
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
SmartPointer< const Self > ConstPointer
Base class for all GPU transforms.
itkGPUKernelClassMacro(GPUBSplineTransformKernel)
std::vector< std::string > m_Sources
GPU version of IdentityTransform.
const Self & operator=(const Self &)


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