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