Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

pcggui.cpp File Reference

#include "pcggui.h"
#include <map>

Include dependency graph for pcggui.cpp:

Include dependency graph

Go to the source code of this file.

Classes

class  pcgguiClassDesc
class  NullView

Defines

#define pcggui_CLASS_ID   Class_ID(0x67910a43, 0xc56b6dbc)
#define SKIN_INTERFACE   0x00010000
#define SKIN_CLASS_ID   Class_ID(9815843,87654)
#define PHYSIQUE_CLASS_ID   Class_ID(PHYSIQUE_CLASS_ID_A, PHYSIQUE_CLASS_ID_B)

Typedefs

typedef signed int sint32
typedef std::map< INode *,
uint
TInodePtrInt

Functions

ClassDesc2 * GetpcgguiDesc ()
BOOL CALLBACK pcgguiDlgProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)

Variables

pcggui thepcggui
FILE * file
pcgguiClassDesc pcgguiDesc


Define Documentation

#define pcggui_CLASS_ID   Class_ID(0x67910a43, 0xc56b6dbc)
 

Definition at line 17 of file pcggui.cpp.

#define PHYSIQUE_CLASS_ID   Class_ID(PHYSIQUE_CLASS_ID_A, PHYSIQUE_CLASS_ID_B)
 

Definition at line 24 of file pcggui.cpp.

#define SKIN_CLASS_ID   Class_ID(9815843,87654)
 

Definition at line 23 of file pcggui.cpp.

Referenced by pcggui::ConvertSkin().

#define SKIN_INTERFACE   0x00010000
 

Definition at line 22 of file pcggui.cpp.

Referenced by pcggui::ConvertSkin().


Typedef Documentation

typedef signed int sint32
 

Definition at line 26 of file pcggui.cpp.

typedef std::map<INode*, uint> TInodePtrInt
 

Definition at line 27 of file pcggui.cpp.


Function Documentation

ClassDesc2* GetpcgguiDesc  ) 
 

Definition at line 48 of file pcggui.cpp.

00048 { return &pcgguiDesc; }

BOOL CALLBACK pcgguiDlgProc HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam
[static]
 

Definition at line 53 of file pcggui.cpp.

References pcggui::Analyze(), pcggui::CovertScene(), pcggui::Destroy(), pcggui::ExportAll(), IDC_BUTTON_ANALYZE, IDC_BUTTON_CONVERT, IDC_BUTTON_EXPORT, IDC_BUTTON_LOAD, IDC_BUTTON_LOAD_ANALYZER, IDC_BUTTON_RENDER, IDC_BUTTON_SAVE, IDC_BUTTON_SAVE_ANALYZER, IDC_REFERENCE_MODEL, pcggui::Init(), pcggui::ip, pcggui::LoadAll(), pcggui::LoadAnalyzer(), pcggui::Render(), pcggui::SaveAll(), pcggui::SaveAnalyzer(), pcggui::SetReferenceModelMode(), and thepcggui.

Referenced by pcggui::BeginEditParams().

00055 {
00056         switch (msg) {
00057                 case WM_INITDIALOG:
00058                         thepcggui.Init(hWnd);
00059                         break;
00060 
00061                 case WM_DESTROY:
00062                         thepcggui.Destroy(hWnd);
00063                         break;
00064 
00065                 case WM_COMMAND:
00066                         switch(LOWORD(wParam)) { //switch on ID
00067                                 case IDC_BUTTON_CONVERT: // A specific button's ID.
00068                                         thepcggui.CovertScene();
00069                                         break;
00070 
00071                                 case IDC_REFERENCE_MODEL:
00072                                         thepcggui.SetReferenceModelMode(IsDlgButtonChecked(hWnd, IDC_REFERENCE_MODEL));
00073                                         break;
00074 
00075                                 case IDC_BUTTON_EXPORT:
00076                                         thepcggui.ExportAll();
00077                                         break;
00078 
00079                                 case IDC_BUTTON_SAVE:
00080                                         thepcggui.SaveAll();
00081                                         break;
00082 
00083                                 case IDC_BUTTON_LOAD:
00084                                         thepcggui.LoadAll();
00085                                         break;
00086 
00087                                 case IDC_BUTTON_SAVE_ANALYZER:
00088                                         thepcggui.SaveAnalyzer();
00089                                         break;
00090 
00091                                 case IDC_BUTTON_LOAD_ANALYZER:
00092                                         thepcggui.LoadAnalyzer();
00093                                         break;
00094 
00095                                 case IDC_BUTTON_ANALYZE:
00096                                         thepcggui.Analyze();
00097                                         break;
00098 
00099                                 case IDC_BUTTON_RENDER:
00100                                         thepcggui.Render();
00101                                         break;
00102 
00103                                 default:
00104                                         break;
00105                         };
00106                         break;
00107 
00108 
00109                 case WM_LBUTTONDOWN:
00110                 case WM_LBUTTONUP:
00111                 case WM_MOUSEMOVE:
00112                         thepcggui.ip->RollupMouseMessage(hWnd,msg,wParam,lParam); 
00113                         break;
00114 
00115                 default:
00116                         return FALSE;
00117         }
00118         return TRUE;
00119 }

Here is the call graph for this function:


Variable Documentation

FILE* file [static]
 

Definition at line 20 of file pcggui.cpp.

Referenced by pcggui::BeginEditParams(), pcggui::Destroy(), pcggui::EndEditParams(), and pcggui::Init().

pcgguiClassDesc pcgguiDesc [static]
 

Definition at line 47 of file pcggui.cpp.

pcggui thepcggui [static]
 

Definition at line 19 of file pcggui.cpp.

Referenced by pcggui::CovertScene(), and pcgguiDlgProc().


Generated on Tue Apr 17 09:39:22 2007 for PCG Library by  doxygen 1.3.9.1