ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkTransformParametersAdaptorBase.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 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 : public Object
57 {
58 public:
59 
62  typedef Object Superclass;
65 
68 
70  typedef TTransform TransformBaseType;
74  typedef typename TransformBaseType::FixedParametersType 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 SetTransform( TransformBaseType *_arg, void * priorityLower = ITK_NULLPTR ) = 0;
80 
82  itkSetMacro( RequiredFixedParameters, FixedParametersType );
83 
85  itkGetConstReferenceMacro( RequiredFixedParameters, FixedParametersType );
86 
88  virtual void AdaptTransformParameters() = 0;
89 
90 protected:
93 
94  virtual void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE
95  {
96  Superclass::PrintSelf( os, indent );
97  os << "Fixed parameters" << this->m_RequiredFixedParameters << std::endl;
98  }
99 
101 
102 private:
103  TransformParametersAdaptorBase( const Self & ) ITK_DELETE_FUNCTION;
104  void operator=( const Self & ) ITK_DELETE_FUNCTION;
105 
106 }; //class TransformParametersAdaptorBase
107 } // namespace itk
108 
109 #endif /* itkTransformParametersAdaptorBase_h */
TransformBaseType::ParametersType ParametersType
Light weight base class for most itk classes.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Base helper class intended for multi-resolution image registration.
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
TransformBaseType::FixedParametersType FixedParametersType
Class to hold and manage different parameter types used during optimization.
TransformBaseType::FixedParametersValueType FixedParametersValueType
virtual void SetTransform(TransformBaseType *_arg, void *priorityLower=nullptr)=0
virtual void AdaptTransformParameters()=0
Superclass::FixedParametersValueType FixedParametersValueType
Definition: itkTransform.h:116
TParametersValueType ValueType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Base class for most ITK classes.
Definition: itkObject.h:57