Revision 2117,
1007 bytes
checked in by mattausch, 17 years ago
(diff) |
implemented bit pvs (warnin: only worjs for preprocessing)
|
Line | |
---|
1 | #ifndef __PVSDEFINITIONS_H
|
---|
2 | #define __PVSDEFINITIONS_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include <math.h>
|
---|
6 |
|
---|
7 | ////////////
|
---|
8 | //-- typedefs
|
---|
9 |
|
---|
10 | #ifdef USE_HASH_PVS
|
---|
11 |
|
---|
12 | #include "HashPvs.h"
|
---|
13 |
|
---|
14 | #define PVS_TYPE 0
|
---|
15 |
|
---|
16 | namespace GtpVisibilityPreprocessor {
|
---|
17 | typedef HashPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
18 | typedef HashPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
19 | }
|
---|
20 |
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | #ifdef USE_VERBOSE_PVS
|
---|
24 |
|
---|
25 | #include "Pvs.h"
|
---|
26 |
|
---|
27 | #define PVS_TYPE 1
|
---|
28 |
|
---|
29 | namespace GtpVisibilityPreprocessor {
|
---|
30 | typedef VerbosePvs<Intersectable *, PvsData> DefaultPvs;
|
---|
31 | typedef PvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
32 | }
|
---|
33 | #endif
|
---|
34 |
|
---|
35 |
|
---|
36 | #ifdef USE_BIT_PVS
|
---|
37 |
|
---|
38 | #include "BitVectorPvs.h"
|
---|
39 |
|
---|
40 | #define PVS_TYPE 2
|
---|
41 |
|
---|
42 | namespace GtpVisibilityPreprocessor {
|
---|
43 | typedef BitVectorPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
44 | typedef BitVectorPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
45 | }
|
---|
46 |
|
---|
47 | #endif
|
---|
48 |
|
---|
49 | namespace GtpVisibilityPreprocessor {
|
---|
50 |
|
---|
51 | typedef PvsEntry<Intersectable *, PvsData> ObjectPvsEntry;
|
---|
52 |
|
---|
53 | }
|
---|
54 |
|
---|
55 |
|
---|
56 | #endif
|
---|
57 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.