zxhproj v 2.2
zxhproj
|
00001 /*========================================================================= 00002 00003 Program: ZXH Registration Software 00004 Author: Xiahai Zhuang 00005 Module: $RCSfle: zxhMetricCC.h $ 00006 Language: C++ 00007 Date: $Date: From 2004-01 $ 00008 Version: $Revision: 1.0, 2.0 $ 00009 00010 =========================================================================*/ 00011 00012 #ifndef zxhMetricCC_h 00013 #define zxhMetricCC_h 00014 00015 #include "zxhMetricBase.h" 00016 00024 00025 class zxhMetricCC : 00026 public zxhMetricBase 00027 { 00028 public: 00030 zxhMetricCC(void); 00032 virtual ~zxhMetricCC(void); 00033 00035 virtual std::string GetMetricType() {return "_CC_"; } ; 00036 00038 virtual zxhMetricBase* Clone(zxhMetricBase * & pRet); 00040 virtual int GetValue(zxhlfloat&fValue); 00042 virtual void SetMetricToSquareCC() {m_bIsCC=true;}; 00044 virtual void SetMetricToMinusSSD() {m_bIsCC=false;}; 00046 virtual bool IsSquareCCMetric() {return m_bIsCC;}; 00047 00048 protected: 00050 bool m_bIsCC ; 00051 00052 }; 00053 00054 #endif //zxhMetricCC_h 00055