www.pudn.com > DEM_TDS.rar > ViewPort.h, change:2007-06-03,size:2164b


// ViewPort.h: interface for the ViewPort class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_VIEWPORT_H__0F5314FA_48ED_403E_B8CF_3CF32E2E004F__INCLUDED_) 
#define AFX_VIEWPORT_H__0F5314FA_48ED_403E_B8CF_3CF32E2E004F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#define PI 3.14159265 
class FlyList 
{ 
	public: 
	double nexteyex; 
	double nexteyey; 
	FlyList(); 
	newFlyList(double x,double y); 
}; 
 
typedef CTypedPtrList<CList<FlyList*,FlyList*>,FlyList*> CFoldPointList; 
typedef CTypedPtrList<CList<FlyList,FlyList>,FlyList> CFlyPList; 
typedef CArray<double,double> CDoubleArray; 
 
class ViewPort   
{ 
	double CalculateDistance(double x1,double y1,double x2,double y2); 
	void ZG(CDoubleArray *A,CDoubleArray *B,CDoubleArray *C,CDoubleArray *G,int &LOGI); 
	void SPLine4(CDoubleArray *X,CDoubleArray *Y,double &XI,double&YI,CDoubleArray *A,CDoubleArray *B,CDoubleArray *C,CDoubleArray *G,int &LOGI,int MD); 
	void SPLine(CFoldPointList *pList,CFoldPointList *pDestList,int SM,int Continue=0); 
public:	 
	void DeleteFlyList(); 
	bool SetFlyList(); 
	CFoldPointList setflylist; 
	void SmoothFlyList(); 
	FlyList *list; 
	int number; 
	FlyList *smoothflylist; 
 	int smoothlistnumber; 
	FlyList* flylist; 
	int listnumber; 
	bool smooth; 
  	double flyheight; 
	bool autoeyez; 
	void SetViewPort(int number); 
	void AutoFly(); 
	int flyeyenumber; 
	int dirctionx,dirctiony; 
	bool firstfly; 
	void BuildFlyList(); 
	bool Flying(double nexteyex,double nexteyey); 
	double speed; 
	void ReFlesh(); 
	void SetCenterPoint(); 
	void SetEl(); 
	void MoveHorizon(int dirction,double ForwardStep=1.0,double HorizonStep=1.0); 
	void MoveForward(int dirction,double ForwardStep=1.0,double HorizonStep=1.0); 
	void MoveHigh(int dirction,double HighStep=1.0,bool autofly=false); 
	void ProcessKeyEvent(UINT   nChar,bool autofly); 
	GLdouble eyex,eyey,eyez; 
	GLdouble centerx,centery,centerz; 
	GLdouble Az,El,fosi; 
	GLdouble AzRotateStep,ElRotateStep; 
	ViewPort(); 
	virtual ~ViewPort(); 
 
}; 
 
#endif // !defined(AFX_VIEWPORT_H__0F5314FA_48ED_403E_B8CF_3CF32E2E004F__INCLUDED_)