ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkDisplacementFieldTransformParametersAdaptor_h 00019 #define __itkDisplacementFieldTransformParametersAdaptor_h 00020 00021 #include "itkTransformParametersAdaptor.h" 00022 00023 namespace itk 00024 { 00063 template<class TTransform> 00064 class ITK_EXPORT DisplacementFieldTransformParametersAdaptor 00065 : public TransformParametersAdaptor<TTransform> 00066 { 00067 public: 00068 00070 typedef DisplacementFieldTransformParametersAdaptor Self; 00071 typedef TransformParametersAdaptor<TTransform> Superclass; 00072 typedef SmartPointer<Self> Pointer; 00073 typedef SmartPointer<const Self> ConstPointer; 00074 00076 itkNewMacro( Self ); 00077 00079 itkTypeMacro( DisplacementFieldTransformParametersAdaptor, 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::DisplacementFieldType DisplacementFieldType; 00088 typedef typename DisplacementFieldType::PointType PointType; 00089 typedef typename DisplacementFieldType::SizeType SizeType; 00090 typedef typename DisplacementFieldType::DirectionType DirectionType; 00091 typedef typename DisplacementFieldType::SpacingType SpacingType; 00092 00094 itkStaticConstMacro( SpaceDimension, unsigned int, TransformType::Dimension ); 00095 00097 void SetRequiredSize( const SizeType & ); 00098 00100 virtual const SizeType GetRequiredSize() const; 00101 00103 void SetRequiredOrigin( const PointType & ); 00104 00106 virtual const PointType GetRequiredOrigin() const; 00107 00109 void SetRequiredSpacing( const SpacingType & ); 00110 00112 virtual const SpacingType GetRequiredSpacing() const; 00113 00115 void SetRequiredDirection( const DirectionType & ); 00116 00118 virtual const DirectionType GetRequiredDirection() const; 00119 00121 virtual void AdaptTransformParameters(); 00122 00123 protected: 00124 DisplacementFieldTransformParametersAdaptor(); 00125 ~DisplacementFieldTransformParametersAdaptor(); 00126 00127 private: 00128 DisplacementFieldTransformParametersAdaptor( const Self & ); //purposely not implemented 00129 void operator=( const Self & ); //purposely not implemented 00130 00131 }; //class DisplacementFieldTransformParametersAdaptor 00132 } // namespace itk 00133 00134 #ifndef ITK_MANUAL_INSTANTIATION 00135 #include "itkDisplacementFieldTransformParametersAdaptor.hxx" 00136 #endif 00137 00138 #endif /* __itkDisplacementFieldTransformParametersAdaptor_h */ 00139