Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CPier.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 1519 byte(s)


1 #ifndef CPIER_H_INCLUDED
2 #define CPIER_H_INCLUDED
3
4 class CPierPlugin;
5
6 /*
7 * 橋脚インスタンス
8 */
9 class CPier{
10 private:
11 static CPier **ms_Root; // 接続ルート
12 static float ms_MinDist; // 最小検出距離
13 static CPier *ms_Detect; // 検出情報
14 int m_Selected; // 選択フラグ
15 bool m_Valid; // 建設有効フラグ
16 float m_SurfaceAlt; // 地形検出高度
17 float m_PierArea; // 橋脚部長さ
18 VEC3 m_SurfaceHit; // 地表投影座標
19 CObject m_JointObject; // ジョイント部オブジェクト
20 CObject m_HeadObject; // ヘッド部オブジェクト
21 CObject m_BaseObject; // 基礎部オブジェクト
22 VEC3 m_PierBegin; // 橋脚部開始座標
23 VEC3 m_PierEnd; // 橋脚部終了座標
24 VEC3 m_PierRight; // 橋脚部 right
25 VEC3 m_PierUp; // 橋脚部 up
26 VEC3 m_PierDir; // 橋脚部 dir
27 CPierPlugin *m_PierPlugin; // 橋脚プラグイン
28 CPier *m_Next; // リスト次
29 public:
30 static void SetRoot(CPier **r){ ms_Root = r; }
31 static void ResetDetect(){ ms_MinDist = -1.0f; }
32 static bool IsDetected(){ return ms_MinDist>=0.0f; }
33 static CPier *GetDetect(){ return ms_Detect; }
34 CPier();
35 CPier(VEC3, VEC3, VEC3, float, CPierPlugin *);
36 ~CPier();
37 void SetMesh();
38 bool Init(float *);
39 void Delete();
40 CPier *Next(){ return m_Next; }
41 CPier **NextAdr(){ return &m_Next; }
42 bool Confirm();
43 int GetSelectFlag(){ return m_Selected; }
44 void AddSelectFlag(int s){ m_Selected |= s; }
45 void ScanInput(int, VEC3 &, VEC3 &);
46 void Dump(int prev = 4);
47 void Render();
48 char *Read(char *);
49 void Save(FILE *);
50 };
51
52 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26