source: trunk/VUT/GtpVisibility/include/CoherentHierarchicalCullingManager.h @ 155

Revision 155, 1.5 KB checked in by mattausch, 19 years ago (diff)

added node traversal interface

RevLine 
[59]1#ifndef _CoherentHierarchicalCullingManager_H__
2#define _CoherentHierarchicalCullingManager_H__
3
4#include "CullingManager.h"
5#include "HierarchyInterface.h"
6
7
8namespace GtpVisibility
9{
10
11/** Renders the scene with the coherent hierarchical culling algorithm.
12*/
13class CoherentHierarchicalCullingManager : public CullingManager
14{
15public:
[142]16        CoherentHierarchicalCullingManager();
[155]17        /** Constructor taking the assumed visibility into account, i.e., the estimation
18                for how many frames the current visibility is considered to be valid
19        */
20        CoherentHierarchicalCullingManager(const unsigned int assumedVisibility);
21
[59]22        void RenderScene();
[155]23        /** Sets assumed visibility (i.e., an estimation for
24                how many frames the visibility is considered to be valid).
[146]25                @param assumedVisibility indicates for how many frames the
26                same visibility is be assumed.
27                if 0, the visibility is tested deterministically for each frame.
[142]28        */
[146]29        void SetAssumedVisibility(unsigned int assumedVisibility);
30
[142]31protected:
[147]32        /** Decides if node is considered to be visible depeding on the
[142]33                assumed visibility factor.
[147]34                @returns if node is considered to be visible
[142]35        */
[147]36        bool DecideVisible(HierarchyNode *node) const;
[146]37
38        unsigned int mAssumedVisibility;
[155]39       
40        /** Skip query for this node.
41        */
42        void SkipQuery(HierarchyNode *node);
43
44
[146]45        /** Threshold for rand function to return positive result with respect to
46                mAssumedVisibility.
47        */
[147]48        int mThreshold;
[59]49};
50
51} // namespace GtpVisibility
52
53#endif // CoherentHierarchicalCullingManager_H
Note: See TracBrowser for help on using the repository browser.