ITK  5.0.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  ITK_DISALLOW_COPY_AND_ASSIGN(DisplacementFieldTransformParametersAdaptor);
69 
75 
77  itkNewMacro( Self );
78 
81 
83  using TransformType = TTransform;
84  using TransformPointer = typename TransformType::Pointer;
85  using FixedParametersType = typename TransformType::FixedParametersType;
86  using FixedParametersValueType = typename TransformType::FixedParametersValueType;
87  using ParametersType = typename TransformType::ParametersType;
88  using ParametersValueType = typename TransformType::ParametersValueType;
89 
90  using DisplacementFieldType = typename TransformType::DisplacementFieldType;
94  using SpacingType = typename DisplacementFieldType::SpacingType;
95 
97  static constexpr unsigned int SpaceDimension = TransformType::Dimension;
98 
100  void SetRequiredSize( const SizeType & );
101 
103  virtual const SizeType GetRequiredSize() const;
104 
106  void SetRequiredOrigin( const PointType & );
107 
109  virtual const PointType GetRequiredOrigin() const;
110 
112  void SetRequiredSpacing( const SpacingType & );
113 
115  virtual const SpacingType GetRequiredSpacing() const;
116 
118  void SetRequiredDirection( const DirectionType & );
119 
121  virtual const DirectionType GetRequiredDirection() const;
122 
124  void AdaptTransformParameters() override;
125 
126 protected:
128  ~DisplacementFieldTransformParametersAdaptor() override = default;
129 }; //class DisplacementFieldTransformParametersAdaptor
130 } // namespace itk
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 #include "itkDisplacementFieldTransformParametersAdaptor.hxx"
134 #endif
135 
136 #endif /* itkDisplacementFieldTransformParametersAdaptor_h */
Light weight base class for most itk classes.
Base helper class intended for multi-resolution image registration.
DisplacementFieldTransformParametersAdaptor is a helper class intended to definition.
typename TransformType::FixedParametersValueType FixedParametersValueType