source: GTP/trunk/Lib/Vis/Preprocessing/src/ObjectPvs.h @ 2575

Revision 2575, 801 bytes checked in by bittner, 16 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
10namespace GtpVisibilityPreprocessor {
11
12class KdNode;
13class BspNode;
14class Ray;
15class Intersectable;
16class ViewCell;
17
18
19class ObjectPvs: public DefaultPvs
20{
21public:
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.