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

Revision 2575, 801 bytes checked in by bittner, 17 years ago (diff)

big merge: preparation for havran ray caster, check if everything works

RevLine 
[2116]1#ifndef __OBJECTPVS_H
2#define __OBJECTPVS_H
3
4#include "common.h"
5#include "PvsDefinitions.h"
[2575]6#include "Intersectable.h"
[2116]7
[2176]8//
[2116]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        */
[2123]26        float EvalPvsCost() const;
[2116]27
[2176]28        friend std::ostream &operator<<(std::ostream &s, const ObjectPvs &p)
[2116]29        {
30                ObjectPvsIterator pit = p.GetIterator();
31
32                while (pit.HasMoreEntries())
33                {               
[2117]34                        Intersectable *obj = pit.Next();
[2176]35                        std::cout << obj << " ";
[2116]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.