#ifndef __OBJECTPVS_H #define __OBJECTPVS_H #include "common.h" #include "PvsDefinitions.h" // namespace GtpVisibilityPreprocessor { class KdNode; class BspNode; class Ray; class Intersectable; class ViewCell; class ObjectPvs: public DefaultPvs { public: /** Counts object int the pvs. Different to method "GetSize", not only the raw container size is returned, but the individual contributions of the entries are summed up. */ float EvalPvsCost() const; friend std::ostream &operator<<(std::ostream &s, const ObjectPvs &p) { ObjectPvsIterator pit = p.GetIterator(); while (pit.HasMoreEntries()) { Intersectable *obj = pit.Next(); std::cout << obj << " "; } return s; } }; } #endif