Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CPoleSelectMode.cpp

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-c++src
File size: 1212 byte(s)


1 #include "stdafx.h"
2 #include "CRailPlugin.h"
3 #include "CPierPlugin.h"
4 #include "CLinePlugin.h"
5 #include "CPolePlugin.h"
6 #include "CPoleSelectMode.h"
7
8 /*
9 * コンストラクタ
10 */
11 CPoleSelectMode::CPoleSelectMode():
12 C3DPluginMode(lang(PolePlugin)) // 基本クラス
13 {
14 m_Camera = &ms_RailwayModeCamera;
15 }
16
17 /*
18 * メニュー発行
19 */
20 CPopMenu *CPoleSelectMode::Dispatch(
21 CMDTYPE type, // コマンドタイプ
22 DWORD data // データ
23 ){
24 return CPluginMode::Dispatch(type, data);
25 }
26
27 /*
28 * プラグインリスト取得
29 */
30 CPluginList *CPoleSelectMode::GetPluginList(){
31 return g_PolePluginList;
32 }
33
34 /*
35 * モードを有効化
36 */
37 void CPoleSelectMode::Enter3DPlugin(){
38 ms_ModeLabel = lang(SelectPole);
39 m_Interface.SetChild(&ms_RailWindow);
40 m_PluginTree.SelectPlugin(g_Pole);
41 EnterRailway(0);
42 }
43
44 /*
45 * モーダル処理
46 */
47 void CPoleSelectMode::ModalFunc3DPlugin(){
48 void ModalFuncRailwayPluginSet();
49 ModalFuncRailwayPluginSet();
50 }
51
52 /*
53 * 入力チェック
54 */
55 void CPoleSelectMode::ScanInput3DPlugin(){
56 ScanInputRailway();
57 }
58
59 /*
60 * レンダリング
61 */
62 void CPoleSelectMode::Render3DPlugin(){
63 CRailPlugin::RenderPreview();
64 CPierPlugin::RenderPreview();
65 CLinePlugin::RenderPreview();
66 }

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