www.pudn.com > 在CListCtrl中显示动态生成的位图.rar > RendererLegend.h


// RendererLegend.h: interface for the CRendererLegend class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_RENDERERLEGEND_H__58311B3C_AF00_4E02_91AF_B6E0A76E1CFA__INCLUDED_) 
#define AFX_RENDERERLEGEND_H__58311B3C_AF00_4E02_91AF_B6E0A76E1CFA__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include  
class CRendererLegend   
{ 
public: 
	void SetFieldName(CString fieldName); 
	void SetLayerName(CString lyrName); 
	void AddValue(double val,COLORREF clr); 
	int GetBreakCount(); 
private: 
	//字段名字 
	CString m_fieldName; 
	//图层名字 
	CString m_layerName; 
	//value数组 
	CArray m_valueAry; 
	//颜色 
	CArray m_clrAry; 
	// 
public: 
	CString GetFieldName(); 
	CString GetLayerName(); 
	COLORREF GetColorAt(int index); 
	double GetValueAt(int index); 
	CRendererLegend(); 
	virtual ~CRendererLegend(); 
 
}; 
 
#endif // !defined(AFX_RENDERERLEGEND_H__58311B3C_AF00_4E02_91AF_B6E0A76E1CFA__INCLUDED_)