ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkBSplineTransformInitializer.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 __itkBSplineTransformInitializer_h
19 #define __itkBSplineTransformInitializer_h
20 
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
23 
24 namespace itk
25 {
36 template<class TTransform, class TImage>
38 : public Object
39 {
40 public:
41 
44  typedef Object Superclass;
47 
49  itkNewMacro( Self );
50 
53 
55  typedef TTransform TransformType;
56 
58  typedef TImage ImageType;
59  typedef typename ImageType::ConstPointer ImagePointer;
60  typedef typename ImageType::IndexType IndexType;
61  typedef typename ImageType::PointType ImagePointType;
62  typedef typename ImagePointType::CoordRepType ImagePointCoordRepType;
63 
65  typedef typename TransformType::Pointer TransformPointer;
66  typedef typename TransformType::RegionType RegionType;
67  typedef typename RegionType::SizeType SizeType;
68  typedef typename TransformType::SpacingType SpacingType;
69  typedef typename TransformType::OriginType OriginType;
70  typedef typename TransformType::DirectionType DirectionType;
71  typedef typename TransformType::PhysicalDimensionsType PhysicalDimensionsType;
72  typedef typename TransformType::MeshSizeType MeshSizeType;
73  typedef typename SpacingType::ComponentType SpacingComponentType;
74 
76  itkStaticConstMacro( SpaceDimension, unsigned int,
77  TransformType::SpaceDimension );
78 
80  itkSetObjectMacro( Transform, TransformType );
81 
83  itkSetConstObjectMacro( Image, ImageType );
84 
90  void SetTransformDomainMeshSize( const MeshSizeType );
91 
93  virtual void InitializeTransform() const;
94 
95 protected:
98 
99  void PrintSelf( std::ostream & os, Indent indent ) const;
100 
101 private:
102  BSplineTransformInitializer( const Self & ); //purposely not
103  // implemented
104  void operator=( const Self & ); //purposely not
105  // implemented
106 
109 
112 
113 }; //class BSplineTransformInitializer
114 } // namespace itk
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "itkBSplineTransformInitializer.hxx"
118 #endif
119 
120 #endif /* __itkBSplineTransformInitializer_h */
121