www.pudn.com > DrawVector.rar > Data.h


#ifndef _H_DATA_H_ 
#define _H_DATA_H_ 
 
typedef struct PointStruct 
{ 
	float x; 
	float y; 
	float z; 
}PointStruct; 
 
typedef struct LayerStruct 
{ 
	char m_Name[21]; 
	BOOL b_Display; 
	int reserved; 
}LayerStruct; 
 
typedef struct ScreenStruct 
{ 
	float blc;  //ÏÔʾ±ÈÀý 
	float sx;   //ÆÁÄ»×óϽǺá×ø±ê 
	float sy;   //          ×Ý 
}ScreenStruct; 
 
class CGraphPara 
{ 
protected: 
	int n_ColorNumbAll; 
	int n_LayerNumbAll; 
	int n_ColorNumb; 
	int n_LayerNumb; 
	long * m_ColorList; 
	LayerStruct* m_LayerList; 
	BOOL b_Delete; 
public: 
	CGraphPara() 
	{ 
		n_ColorNumb=500; 
		n_LayerNumb=100; 
		m_ColorList=new long[n_ColorNumb]; 
		m_LayerList=new LayerStruct[n_LayerNumb]; 
		n_ColorNumb=4; 
		n_LayerNumb=1; 
		m_ColorList[0]=RGB(0,0,0); 
		m_ColorList[1]=RGB(255,0,0); 
		m_ColorList[2]=RGB(0,255,0); 
		m_ColorList[3]=RGB(0,0,255); 
		m_LayerList[0].b_Display=1; 
		 
	} 
   ~CGraphPara() 
   { 
	   delete m_LayerList; 
	   delete m_ColorList; 
   } 
public: 
	COLORREF GetColor(int n); 
	BOOL GetDisplayStatue(int n); 
}; 
//CGraphPara m_GraphPara; 
//CGraphPara *p_GraphPara; 
 
#endif