Line | |
---|
1 | #ifndef __PVSDEFINITIONS_H
|
---|
2 | #define __PVSDEFINITIONS_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include <math.h>
|
---|
6 |
|
---|
7 | ////////////
|
---|
8 | //-- typedefs
|
---|
9 | //$$ 19.1. 2008 test for speed
|
---|
10 | //#define USE_BIT_PVS
|
---|
11 | //#define USE_HASH_PVS
|
---|
12 |
|
---|
13 |
|
---|
14 | #ifdef USE_HASH_PVS
|
---|
15 |
|
---|
16 | //#include "HashPvs2.h"
|
---|
17 | #include "HashPvs.h"
|
---|
18 |
|
---|
19 | #define PVS_TYPE 0
|
---|
20 |
|
---|
21 | namespace GtpVisibilityPreprocessor {
|
---|
22 | typedef HashPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
23 | typedef HashPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
24 | }
|
---|
25 | #else
|
---|
26 | #ifdef USE_BIT_PVS
|
---|
27 |
|
---|
28 | #include "BitVectorPvs.h"
|
---|
29 |
|
---|
30 | #define PVS_TYPE 2
|
---|
31 |
|
---|
32 | namespace GtpVisibilityPreprocessor {
|
---|
33 | typedef BitVectorPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
34 | typedef BitVectorPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
35 | }
|
---|
36 |
|
---|
37 | #else // USE_VERBOSE_PVS
|
---|
38 | #include "Pvs.h"
|
---|
39 |
|
---|
40 | #define PVS_TYPE 1
|
---|
41 |
|
---|
42 | namespace GtpVisibilityPreprocessor {
|
---|
43 | typedef VerbosePvs<Intersectable *, PvsData> DefaultPvs;
|
---|
44 | typedef PvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
45 | }
|
---|
46 | #endif
|
---|
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.