17 #include "3dsmaxsdk_preinclude.h"
30 #include "Simulator.h"
32 extern TCHAR *GetString(
int id);
34 extern HINSTANCE hInstance;
36 #define iWaveOcean_CLASS_ID Class_ID(0xd9edfdd9, 0x93776fa5)
55 static HWND startFrameStatic;
56 static HWND numFramesStatic;
58 static INT_PTR CALLBACK SimulateRollupDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
59 static void UpdateStatus();
60 static void SimulateProgress(
Simulator* simulator);
61 static void SimulateDone(
Simulator* simulator);
64 static INT_PTR CALLBACK SaveDataRollupDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
65 static void UpdateSaveInfo(HWND hDlg);
71 virtual CreateMouseCallBack* GetCreateMouseCallBack();
74 virtual BOOL HasUVW();
75 virtual void SetGenUVW(BOOL sw);
76 virtual int CanConvertToType(Class_ID obtype);
77 virtual Object* ConvertToType(TimeValue t, Class_ID obtype);
78 virtual void GetCollapseTypes(Tab<Class_ID>& clist,Tab<TSTR*>& nlist);
79 virtual int IntersectRay(TimeValue t, Ray& ray,
float& at, Point3& norm);
80 virtual BOOL IsWorldSpaceObject() {
return TRUE; }
83 virtual void BeginEditParams( IObjParam *ip, ULONG flags,Animatable *prev);
84 virtual void EndEditParams( IObjParam *ip, ULONG flags,Animatable *next);
87 virtual void BuildMesh(TimeValue t);
88 virtual void InvalidateUI();
91 virtual IOResult Load(ILoad *iload);
92 virtual IOResult Save(ISave *isave);
95 virtual Class_ID ClassID() {
return iWaveOcean_CLASS_ID; }
96 virtual SClass_ID SuperClassID() {
return GEOMOBJECT_CLASS_ID; }
97 virtual void GetClassName(TSTR& s) { s = GetString(IDS_CLASS_NAME); }
98 virtual const wchar_t* GetObjectName() {
return _M(
"iWave"); }
100 virtual RefTargetHandle Clone( RemapDir& remap );
102 virtual int NumParamBlocks() {
return 1; }
103 virtual IParamBlock2* GetParamBlock(
int ) {
return pblock2; }
104 virtual IParamBlock2* GetParamBlockByID(BlockID
id) {
return (pblock2->ID() == id) ? pblock2 : NULL; }
106 void DeleteThis() {
delete this; }
109 enum { iwaveocean_params };
122 pb_collision_smoothing,
Definition: Simulator.h:15
Definition: iWaveOcean.h:38