ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkDisplacementFieldTransformParametersAdaptor.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 itkDisplacementFieldTransformParametersAdaptor_h
19 #define itkDisplacementFieldTransformParametersAdaptor_h
20 
22 
23 namespace itk
24 {
63 template<typename TTransform>
65 : public TransformParametersAdaptor<TTransform>
66 {
67 public:
68 
74 
76  itkNewMacro( Self );
77 
80 
82  typedef TTransform TransformType;
83  typedef typename TransformType::Pointer TransformPointer;
84  typedef typename TransformType::FixedParametersType FixedParametersType;
85  typedef typename TransformType::FixedParametersValueType FixedParametersValueType;
86  typedef typename TransformType::ParametersType ParametersType;
87  typedef typename TransformType::ParametersValueType ParametersValueType;
88 
89  typedef typename TransformType::DisplacementFieldType DisplacementFieldType;
90  typedef typename DisplacementFieldType::PointType PointType;
91  typedef typename DisplacementFieldType::SizeType SizeType;
92  typedef typename DisplacementFieldType::DirectionType DirectionType;
93  typedef typename DisplacementFieldType::SpacingType SpacingType;
94 
96  itkStaticConstMacro( SpaceDimension, unsigned int, TransformType::Dimension );
97 
99  void SetRequiredSize( const SizeType & );
100 
102  virtual const SizeType GetRequiredSize() const;
103 
105  void SetRequiredOrigin( const PointType & );
106 
108  virtual const PointType GetRequiredOrigin() const;
109 
111  void SetRequiredSpacing( const SpacingType & );
112 
114  virtual const SpacingType GetRequiredSpacing() const;
115 
117  void SetRequiredDirection( const DirectionType & );
118 
120  virtual const DirectionType GetRequiredDirection() const;
121 
123  virtual void AdaptTransformParameters() ITK_OVERRIDE;
124 
125 protected:
127  ~DisplacementFieldTransformParametersAdaptor();
128 
129 private:
130  DisplacementFieldTransformParametersAdaptor( const Self & ); //purposely not implemented
131  void operator=( const Self & ); //purposely not implemented
132 
133 }; //class DisplacementFieldTransformParametersAdaptor
134 } // namespace itk
135 
136 #ifndef ITK_MANUAL_INSTANTIATION
137 #include "itkDisplacementFieldTransformParametersAdaptor.hxx"
138 #endif
139 
140 #endif /* itkDisplacementFieldTransformParametersAdaptor_h */
virtual const PointType GetRequiredOrigin() const
Light weight base class for most itk classes.
Base helper class intended for multi-resolution image registration.
void SetRequiredDirection(const DirectionType &)
virtual const SpacingType GetRequiredSpacing() const
virtual const DirectionType GetRequiredDirection() const
virtual const SizeType GetRequiredSize() const
DisplacementFieldTransformParametersAdaptor is a helper class intended to definition.