Revision 2575,
801 bytes
checked in by bittner, 17 years ago
(diff) |
big merge: preparation for havran ray caster, check if everything works
|
Line | |
---|
1 | #ifndef __OBJECTPVS_H
|
---|
2 | #define __OBJECTPVS_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "PvsDefinitions.h"
|
---|
6 | #include "Intersectable.h"
|
---|
7 |
|
---|
8 | //
|
---|
9 |
|
---|
10 | namespace GtpVisibilityPreprocessor {
|
---|
11 |
|
---|
12 | class KdNode;
|
---|
13 | class BspNode;
|
---|
14 | class Ray;
|
---|
15 | class Intersectable;
|
---|
16 | class ViewCell;
|
---|
17 |
|
---|
18 |
|
---|
19 | class ObjectPvs: public DefaultPvs
|
---|
20 | {
|
---|
21 | public:
|
---|
22 | /** Counts object int the pvs. Different to method "GetSize", not
|
---|
23 | only the raw container size is returned,
|
---|
24 | but the individual contributions of the entries are summed up.
|
---|
25 | */
|
---|
26 | float EvalPvsCost() const;
|
---|
27 |
|
---|
28 | friend std::ostream &operator<<(std::ostream &s, const ObjectPvs &p)
|
---|
29 | {
|
---|
30 | ObjectPvsIterator pit = p.GetIterator();
|
---|
31 |
|
---|
32 | while (pit.HasMoreEntries())
|
---|
33 | {
|
---|
34 | Intersectable *obj = pit.Next();
|
---|
35 | std::cout << obj << " ";
|
---|
36 | }
|
---|
37 |
|
---|
38 | return s;
|
---|
39 | }
|
---|
40 | };
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 | }
|
---|
45 |
|
---|
46 | #endif
|
---|
47 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.