vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
4
#include <
vrecko/SP_ObjectInterface.h
>
5
#include <
vrecko/Ability.h
>
6
7
#include <
vreckoAP/HUD/HUDDisplay.h
>
8
9
using namespace
vrecko;
10
11
namespace
APSpacePartitioning {
12
13
14
#define SP_OBJECT_INTERFACE_ID__PS_VG 30
15
16
17
class
PointShellVSVoxel_Object
:
public
SP_ObjectInterface
,
public
Ability
{
18
public
:
19
PointShellVSVoxel_Object
();
20
~
PointShellVSVoxel_Object
();
21
22
virtual
void
preInitialize(
void
);
23
24
// true - testing mode, false - not testing mode
25
bool
bTestComputation
;
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;
38
APHUD::HUDDisplay
*
hud
;
39
int
objectID
;
40
bool
hudInitialized
;
41
};
42
43
}
44
45
46
47
48
#endif
49
include
vreckoAP
SpacePartitioning
PointShellVSVoxel_Object.h
Generated on Tue Feb 19 2013 10:23:45 for vrecko by
1.8.3.1