ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkTransformParametersAdaptor.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 __itkTransformParametersAdaptor_h
19 #define __itkTransformParametersAdaptor_h
20 
22 
23 namespace itk
24 {
53 template<class TTransform>
55 : public TransformParametersAdaptorBase<TTransform>
56 {
57 public:
58 
64 
67 
69  typedef TTransform TransformType;
70  typedef typename Superclass::TransformPointer TransformPointer;
71  typedef typename Superclass::ParametersType ParametersType;
72  typedef typename Superclass::ParametersValueType ParametersValueType;
73 
75  itkSetObjectMacro( Transform, TransformType );
76 
78  itkNewMacro( Self );
79 
81  itkSetMacro( RequiredFixedParameters, ParametersType );
82 
84  itkGetConstReferenceMacro( RequiredFixedParameters, ParametersType );
85 
87  virtual void AdaptTransformParameters() {};
88 
89 protected:
92 
93  void PrintSelf( std::ostream & os, Indent itkNotUsed( indent ) ) const
94  {
95  os << "Fixed parameters: " << this->m_RequiredFixedParameters << std::endl;
96  }
97 
100 
101 private:
102  TransformParametersAdaptor( const Self & ); //purposely not implemented
103  void operator=( const Self & ); //purposely not implemented
104 
105 }; //class TransformParametersAdaptor
106 } // namespace itk
107 
108 #endif /* __itkTransformParametersAdaptor_h */
109