ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingVelocityFieldTransformParametersAdaptor.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 __itkTimeVaryingVelocityFieldTransformParametersAdaptor_h
19 #define __itkTimeVaryingVelocityFieldTransformParametersAdaptor_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::ParametersType ParametersType;
85  typedef typename TransformType::ParametersValueType ParametersValueType;
86 
87  typedef typename TransformType::TimeVaryingVelocityFieldType TimeVaryingVelocityFieldType;
88  typedef typename TimeVaryingVelocityFieldType::Pointer TimeVaryingVelocityFieldPointer;
89  typedef typename TimeVaryingVelocityFieldType::PointType PointType;
90  typedef typename TimeVaryingVelocityFieldType::SizeType SizeType;
91  typedef typename TimeVaryingVelocityFieldType::DirectionType DirectionType;
92  typedef typename TimeVaryingVelocityFieldType::SpacingType SpacingType;
93 
95  itkStaticConstMacro( TotalDimension, unsigned int, TransformType::Dimension + 1 );
96 
98  void SetRequiredSize( const SizeType & );
99 
101  virtual const SizeType GetRequiredSize() const;
102 
104  void SetRequiredOrigin( const PointType & );
105 
107  virtual const PointType GetRequiredOrigin() const;
108 
110  void SetRequiredSpacing( const SpacingType & );
111 
113  virtual const SpacingType GetRequiredSpacing() const;
114 
116  void SetRequiredDirection( const DirectionType & );
117 
119  virtual const DirectionType GetRequiredDirection() const;
120 
122  virtual void AdaptTransformParameters();
123 
124 protected:
127 
128 private:
129  TimeVaryingVelocityFieldTransformParametersAdaptor( const Self & ); //purposely not implemented
130  void operator=( const Self & ); //purposely not implemented
131 
132 }; //class TimeVaryingVelocityFieldTransformParametersAdaptor
133 } // namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 #include "itkTimeVaryingVelocityFieldTransformParametersAdaptor.hxx"
137 #endif
138 
139 #endif /* __itkTimeVaryingVelocityFieldTransformParametersAdaptor_h */
Light weight base class for most itk classes.
Base helper class intended for multi-resolution image registration.
TimeVaryingVelocityFieldTransformParametersAdaptor is a helper class intended to definition.
virtual const PointType GetRequiredOrigin() const
virtual const DirectionType GetRequiredDirection() const
virtual const SpacingType GetRequiredSpacing() const