source:
GTP/trunk/Lib/Vis/Preprocessing/src/PvsDefinitions.h
@
2635
Revision 2635, 1.1 KB checked in by bittner, 17 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[2116] | 1 | #ifndef __PVSDEFINITIONS_H |
2 | #define __PVSDEFINITIONS_H | |
3 | ||
4 | #include "common.h" | |
5 | #include <math.h> | |
6 | ||
7 | //////////// | |
8 | //-- typedefs | |
[2617] | 9 | //$$ 19.1. 2008 test for speed |
[2625] | 10 | //#define USE_BIT_PVS |
[2635] | 11 | //#define USE_HASH_PVS |
[2116] | 12 | |
[2616] | 13 | |
[2116] | 14 | #ifdef USE_HASH_PVS |
15 | ||
[2176] | 16 | //#include "HashPvs2.h" |
[2122] | 17 | #include "HashPvs.h" |
[2116] | 18 | |
[2122] | 19 | #define PVS_TYPE 0 |
[2116] | 20 | |
[2122] | 21 | namespace GtpVisibilityPreprocessor { |
22 | typedef HashPvs<Intersectable *, PvsData> DefaultPvs; | |
23 | typedef HashPvsIterator<Intersectable *, PvsData> ObjectPvsIterator; | |
24 | } | |
25 | #else | |
26 | #ifdef USE_BIT_PVS | |
[2116] | 27 | |
[2122] | 28 | #include "BitVectorPvs.h" |
[2116] | 29 | |
[2122] | 30 | #define PVS_TYPE 2 |
[2117] | 31 | |
[2122] | 32 | namespace GtpVisibilityPreprocessor { |
33 | typedef BitVectorPvs<Intersectable *, PvsData> DefaultPvs; | |
34 | typedef BitVectorPvsIterator<Intersectable *, PvsData> ObjectPvsIterator; | |
35 | } | |
[2116] | 36 | |
[2530] | 37 | #else // USE_VERBOSE_PVS |
[2122] | 38 | #include "Pvs.h" |
[2116] | 39 | |
[2122] | 40 | #define PVS_TYPE 1 |
[2117] | 41 | |
[2122] | 42 | namespace GtpVisibilityPreprocessor { |
43 | typedef VerbosePvs<Intersectable *, PvsData> DefaultPvs; | |
44 | typedef PvsIterator<Intersectable *, PvsData> ObjectPvsIterator; | |
45 | } | |
46 | #endif | |
[2117] | 47 | #endif |
48 | ||
49 | namespace GtpVisibilityPreprocessor { | |
50 | ||
[2116] | 51 | typedef PvsEntry<Intersectable *, PvsData> ObjectPvsEntry; |
52 | ||
53 | } | |
54 | ||
55 | ||
56 | #endif | |
57 |
Note: See TracBrowser
for help on using the repository browser.