ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkTimeVaryingVelocityFieldTransformParametersAdaptor.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkTimeVaryingVelocityFieldTransformParametersAdaptor_h
00019 #define __itkTimeVaryingVelocityFieldTransformParametersAdaptor_h
00020 
00021 #include "itkTransformParametersAdaptor.h"
00022 
00023 namespace itk
00024 {
00063 template<class TTransform>
00064 class ITK_EXPORT TimeVaryingVelocityFieldTransformParametersAdaptor
00065 : public TransformParametersAdaptor<TTransform>
00066 {
00067 public:
00068 
00070   typedef TimeVaryingVelocityFieldTransformParametersAdaptor   Self;
00071   typedef TransformParametersAdaptor<TTransform>               Superclass;
00072   typedef SmartPointer<Self>                                   Pointer;
00073   typedef SmartPointer<const Self>                             ConstPointer;
00074 
00076   itkNewMacro( Self );
00077 
00079   itkTypeMacro( TimeVaryingVelocityFieldTransformParametersAdaptor, TransformParametersAdaptor );
00080 
00082   typedef TTransform                                     TransformType;
00083   typedef typename TransformType::Pointer                TransformPointer;
00084   typedef typename TransformType::ParametersType         ParametersType;
00085   typedef typename TransformType::ParametersValueType    ParametersValueType;
00086 
00087   typedef typename TransformType::TimeVaryingVelocityFieldType  TimeVaryingVelocityFieldType;
00088   typedef typename TimeVaryingVelocityFieldType::Pointer        TimeVaryingVelocityFieldPointer;
00089   typedef typename TimeVaryingVelocityFieldType::PointType      PointType;
00090   typedef typename TimeVaryingVelocityFieldType::SizeType       SizeType;
00091   typedef typename TimeVaryingVelocityFieldType::DirectionType  DirectionType;
00092   typedef typename TimeVaryingVelocityFieldType::SpacingType    SpacingType;
00093 
00095   itkStaticConstMacro( TotalDimension, unsigned int, TransformType::Dimension + 1 );
00096 
00098   void SetRequiredSize( const SizeType & );
00099 
00101   virtual const SizeType GetRequiredSize() const;
00102 
00104   void SetRequiredOrigin( const PointType & );
00105 
00107   virtual const PointType GetRequiredOrigin() const;
00108 
00110   void SetRequiredSpacing( const SpacingType & );
00111 
00113   virtual const SpacingType GetRequiredSpacing() const;
00114 
00116   void SetRequiredDirection( const DirectionType & );
00117 
00119   virtual const DirectionType GetRequiredDirection() const;
00120 
00122   virtual void AdaptTransformParameters();
00123 
00124 protected:
00125   TimeVaryingVelocityFieldTransformParametersAdaptor();
00126   ~TimeVaryingVelocityFieldTransformParametersAdaptor();
00127 
00128 private:
00129   TimeVaryingVelocityFieldTransformParametersAdaptor( const Self & ); //purposely not implemented
00130   void operator=( const Self & );             //purposely not implemented
00131 
00132 }; //class TimeVaryingVelocityFieldTransformParametersAdaptor
00133 }  // namespace itk
00134 
00135 #ifndef ITK_MANUAL_INSTANTIATION
00136 #include "itkTimeVaryingVelocityFieldTransformParametersAdaptor.hxx"
00137 #endif
00138 
00139 #endif /* __itkTimeVaryingVelocityFieldTransformParametersAdaptor_h */
00140