Go to the
documentation of this file.
00001 #pragma once
00002 #include "maxheap.h"
00003 #include "iparamm.h"
00004 #include "iparamm2.h"
00005 #include "Simpobj.h"
00006
00007 #pragma warning(push)
00008 #pragma warning(disable:4100)
00009
00010 class DynamHelperObject : public SimpleObject, IParamArray
00011 {
00012 public:
00013 virtual INode *GetEndNode1(){return NULL;}
00014 virtual INode *GetEndNode2(){return NULL;}
00015 virtual Point3 ApplyAtEnd1(TimeValue t){return Point3(0.0f,0.0f,0.0f);}
00016 virtual Point3 ApplyAtEnd2(TimeValue t){return Point3(0.0f,0.0f,0.0f);}
00017 virtual Point3 Force(TimeValue t,TimeValue dt){return Point3(0.0f,0.0f,0.0f);}
00018 };
00019
00020 struct FlectForces : public MaxHeapOperators
00021 {
00022 TimeValue t1,t2;
00023 Point3 FlectForce,ApplyAt;
00024 int Num;
00025 };
00026
00027 class DynamModObject : public SimpleWSMObject2
00028 {
00029 public:
00030 virtual FlectForces ForceData(TimeValue t)
00031 {
00032 FlectForces f1;
00033 f1.t1 = 0;
00034 f1.t2 = 0;
00035 f1.FlectForce = Point3(0.0f,0.0f,0.0f);
00036 f1.ApplyAt = Point3(0.0f,0.0f,0.0f);
00037 return f1;
00038 }
00039
00040 int NumParamBlocks() { return 1; }
00041 IParamBlock2* GetParamBlock(int i) { return pblock2; }
00042 IParamBlock2* GetParamBlockByID(BlockID id) { return (pblock2->ID() == id) ? pblock2 : NULL; }
00043 };
00044
00045 #pragma warning(pop)
00046