?? contourvalues.h
字號:
// ContourValues.h: interface for the CContourValues class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(__CONTOURVALUES_H_INCLUDE)
#define __CONTOURVALUES_H_INCLUDE
#if _MSC_VER > 1000
#pragma once
#endif
/*=============等值線值的輔助管理類=============================*/
//
//該類輔助CContour類,用于編輯和管理所要追蹤的等值線值
//
/*==============================================================*/
typedef CList<float,float> CValueList;
class CContourValues
{
public:
CContourValues();
~CContourValues();
CContourValues& operator=(const CContourValues& rhs);
public:
void AddValue(float newValue);
void DeleteValue(float oldValue);
void RemoveAllValues();
void ReplaceValue(float oldValue, float newValue);
void GenerateValues(int numContours, float rangeStart, float rangeEnd);
int GetNumberOfValues();
float GetValue(int i);
void SetValue(int i, float newValue);
CValueList& GetValueList(){ return m_Values; }
#ifdef _DEBUG
void TraceOutValueList();
#endif
private:
CValueList m_Values; //要追蹤的值
private:
CContourValues(const CContourValues&); // Not implemented.
};
inline int CContourValues::GetNumberOfValues()
{
return m_Values.GetCount();
}
inline void CContourValues::RemoveAllValues()
{
m_Values.RemoveAll();
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -