vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PointShellVSVoxel_Object.h
Go to the documentation of this file.
1 #ifndef POINTSHELL_VS_VOXEL_OBJECT_H
2 #define POINTSHELL_VS_VOXEL_OBJECT_H
3 
5 #include <vrecko/Ability.h>
6 
8 
9 using namespace vrecko;
10 
11 namespace APSpacePartitioning {
12 
13 
14 #define SP_OBJECT_INTERFACE_ID__PS_VG 30
15 
16 
18 public:
21 
22  virtual void preInitialize(void);
23 
24  // true - testing mode, false - not testing mode
26  //__int64 freq;
27  bool setTestComputation(bool state){
28  bTestComputation = state;
29  logger.debugLog("PS vs Voxel test mode set to: %s",bTestComputation?"true":"false");
30  return bTestComputation;
31  };
32  bool getCollisions(CollisionParams * params, COLLISION_POINTS_VECTOR ** colPoints, unsigned long obj1ID, unsigned long obj2ID,float time);
33 
34 protected:
35  bool getObjectTransformation(EnvironmentObject *pObj, CollisionParams *params, osg::Matrix *outMat);
36 
37  LARGE_INTEGER collisiontime1, collisiontime2, looptime1, looptime2, fr;
39  int objectID;
41 };
42 
43 }
44 
45 
46 
47 
48 #endif
49