ITK  5.2.0
Insight Toolkit
itkTransformParametersAdaptorBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 itkTransformParametersAdaptorBase_h
19 #define itkTransformParametersAdaptorBase_h
20 
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
23 
24 namespace itk
25 {
54 template <typename TTransform>
56 {
57 public:
58  ITK_DISALLOW_COPY_AND_ASSIGN(TransformParametersAdaptorBase);
59 
62  using Superclass = Object;
65 
68 
70  using TransformBaseType = TTransform;
73  using ParametersValueType = typename ParametersType::ValueType;
74  using FixedParametersType = typename TransformBaseType::FixedParametersType;
76 
77  // note: the void pointer is use to ensure this method has lower
78  // overloaded priority and avoid an ambiguous overloaded method
79  virtual void
80  SetTransform(TransformBaseType * _arg, void * priorityLower = nullptr) = 0;
81 
83  itkSetMacro(RequiredFixedParameters, FixedParametersType);
84 
86  itkGetConstReferenceMacro(RequiredFixedParameters, FixedParametersType);
87 
89  virtual void
91 
92 protected:
94  ~TransformParametersAdaptorBase() override = default;
95 
96  void
97  PrintSelf(std::ostream & os, Indent indent) const override
98  {
99  Superclass::PrintSelf(os, indent);
100  os << "Fixed parameters" << this->m_RequiredFixedParameters << std::endl;
101  }
102 
104 }; // class TransformParametersAdaptorBase
105 } // namespace itk
106 
107 #endif /* itkTransformParametersAdaptorBase_h */
itk::TransformParametersAdaptorBase< Transform< TTransform::ScalarType, TTransform::InputSpaceDimension, TTransform::OutputSpaceDimension > >::ParametersType
typename TransformBaseType::ParametersType ParametersType
Definition: itkTransformParametersAdaptorBase.h:72
itkObjectFactory.h
itk::TransformParametersAdaptorBase
Base helper class intended for multi-resolution image registration.
Definition: itkTransformParametersAdaptorBase.h:55
itk::TransformParametersAdaptorBase< Transform< TTransform::ScalarType, TTransform::InputSpaceDimension, TTransform::OutputSpaceDimension > >::FixedParametersType
typename TransformBaseType::FixedParametersType FixedParametersType
Definition: itkTransformParametersAdaptorBase.h:74
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::Transform::FixedParametersValueType
typename Superclass::FixedParametersValueType FixedParametersValueType
Definition: itkTransform.h:120
itk::TransformParametersAdaptorBase< Transform< TTransform::ScalarType, TTransform::InputSpaceDimension, TTransform::OutputSpaceDimension > >::ParametersValueType
typename ParametersType::ValueType ParametersValueType
Definition: itkTransformParametersAdaptorBase.h:73
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::TransformParametersAdaptorBase::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
Definition: itkTransformParametersAdaptorBase.h:97
itk::TransformParametersAdaptorBase::~TransformParametersAdaptorBase
~TransformParametersAdaptorBase() override=default
itk::TransformParametersAdaptorBase::SetTransform
virtual void SetTransform(TransformBaseType *_arg, void *priorityLower=nullptr)=0
itk::TransformParametersAdaptorBase::m_RequiredFixedParameters
FixedParametersType m_RequiredFixedParameters
Definition: itkTransformParametersAdaptorBase.h:103
itkObject.h
itk::TransformParametersAdaptorBase< Transform< TTransform::ScalarType, TTransform::InputSpaceDimension, TTransform::OutputSpaceDimension > >::TransformBasePointer
typename TransformBaseType::Pointer TransformBasePointer
Definition: itkTransformParametersAdaptorBase.h:71
itk::Transform::ParametersType
typename Superclass::ParametersType ParametersType
Definition: itkTransform.h:121
itk::TransformParametersAdaptorBase< Transform< TTransform::ScalarType, TTransform::InputSpaceDimension, TTransform::OutputSpaceDimension > >::FixedParametersValueType
typename TransformBaseType::FixedParametersValueType FixedParametersValueType
Definition: itkTransformParametersAdaptorBase.h:75
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::TransformParametersAdaptorBase::AdaptTransformParameters
virtual void AdaptTransformParameters()=0
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:60
itk::Transform
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
itk::Object::Object
Object()
itk::Object::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::TransformParametersAdaptorBase::TransformParametersAdaptorBase
TransformParametersAdaptorBase()=default