zxhproj v 2.2
zxhproj
|
00001 /*========================================================================= 00002 00003 Program: ZXH Registration Software 00004 Author: Xiahai Zhuang 00005 Module: $RCSfle: zxhMetricSquareRootTransform.h $ 00006 Language: C++ 00007 Date: $Date: From 2011-02 $ 00008 Version: $Revision: 1.0, 2.0, 2.1$ 00009 00010 =========================================================================*/ 00011 00012 #ifndef zxhMetricSquareRootTransform_h 00013 #define zxhMetricSquareRootTransform_h 00014 00015 #include "zxhMetricBase.h" 00016 00025 00026 class zxhMetricSquareRootTransform : public zxhMetricBase 00027 { 00028 public: 00030 zxhMetricSquareRootTransform(void); 00032 virtual ~zxhMetricSquareRootTransform(void); 00033 00035 virtual std::string GetMetricType() {return "_SquareRootTRANSFORM_"; } ; 00036 00038 virtual zxhMetricBase* Clone(zxhMetricBase * & pRet); 00040 virtual int GetValue(zxhlfloat&fValue); 00041 00043 virtual void SetDeformationToBeSquareRoot(zxhTransformBase*p) {m_pDeformation = p;} ; 00045 virtual zxhTransformBase* GetDeformationToBeSquareRoot() {return m_pDeformation;}; 00046 00047 protected: 00049 zxhTransformBase* m_pDeformation ; 00050 }; 00051 00052 #endif //zxhMetricSquareRootTransform_h 00053