ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingVelocityFieldTransform.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 __itkTimeVaryingVelocityFieldTransform_h
19 #define __itkTimeVaryingVelocityFieldTransform_h
20 
22 
23 namespace itk
24 {
25 
53 template<class TScalar, unsigned int NDimensions>
55  public VelocityFieldTransform<TScalar, NDimensions>
56 {
57 public:
63 
66 
68  itkNewMacro( Self );
69 
71  typedef typename Superclass::InverseTransformBasePointer InverseTransformBasePointer;
72 
74  typedef typename Superclass::InterpolatorType InterpolatorType;
75  typedef typename Superclass::VelocityFieldInterpolatorType VelocityFieldIntegratorType;
76 
78  typedef typename Superclass::DisplacementFieldType DisplacementFieldType;
79  typedef typename Superclass::VelocityFieldType VelocityFieldType;
80 
82  typedef typename VelocityFieldType::Pointer TimeVaryingVelocityFieldPointer;
83 
85  typedef typename Superclass::ScalarType ScalarType;
86 
88  typedef typename Superclass::ParametersType ParametersType;
90  typedef typename Superclass::NumberOfParametersType NumberOfParametersType;
91 
93  typedef typename Superclass::DerivativeType DerivativeType;
94 
96 
98 #if ! defined ( ITK_FUTURE_LEGACY_REMOVE )
99  typename VelocityFieldType::Pointer GetTimeVaryingVelocityField()
100  {
101  return this->GetModifiableVelocityField();
102  }
103 #endif
104  typename VelocityFieldType::Pointer GetModifiableTimeVaryingVelocityField()
105  {
106  return this->GetModifiableVelocityField();
107  }
108  typename VelocityFieldType::ConstPointer GetTimeVaryingVelocityField() const
109  {
110  return this->GetVelocityField();
111  }
113 
115  virtual void SetTimeVaryingVelocityField( VelocityFieldType * field )
116  {
117  this->SetVelocityField( field );
118  }
119 
122  virtual void IntegrateVelocityField();
123 
124 protected:
127 
128 private:
129  TimeVaryingVelocityFieldTransform( const Self& ); //purposely not implemented
130  void operator=( const Self& ); //purposely not implemented
131 };
132 
133 } // end namespace itk
134 
135 #ifndef ITK_MANUAL_INSTANTIATION
136 # include "itkTimeVaryingVelocityFieldTransform.hxx"
137 #endif
138 
139 #endif // __itkTimeVaryingVelocityFieldTransform_h
140