source: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/CullingManager.cpp @ 2287

Revision 2287, 1.7 KB checked in by mattausch, 18 years ago (diff)

update culling manager first working version

Line 
1#include "CullingManager.h"
2
3
4namespace GtpVisibility {
5
6
7
8//-----------------------------------------------------------------------
9CullingManager::CullingManager():
10mHierarchyInterface(NULL),
11mVisibilityThreshold(0),
12mNumQueryCulledNodes(0),
13mNumFrustumCulledNodes(0),
14mNumQueriesIssued(0),
15mVisualizeCulledNodes(false)
16{
17}
18//-----------------------------------------------------------------------
19void CullingManager::SetHierarchyInterface(HierarchyInterface *hierarchyInterface)
20{
21        mHierarchyInterface = hierarchyInterface;
22}
23//-----------------------------------------------------------------------
24void CullingManager::SetVisibilityThreshold(unsigned int visibilityThreshold)
25{
26        mVisibilityThreshold = visibilityThreshold;
27}
28//-----------------------------------------------------------------------
29unsigned int CullingManager::GetNumFrustumCulledNodes()
30{
31        return mNumFrustumCulledNodes;
32}
33//-----------------------------------------------------------------------
34unsigned int CullingManager::GetNumQueryCulledNodes()
35{
36        return mNumQueryCulledNodes;
37}
38//-----------------------------------------------------------------------
39unsigned int CullingManager::GetNumQueriesIssued()
40{
41        return mNumQueriesIssued;
42}
43//-----------------------------------------------------------------------
44void CullingManager::SetVisualizeCulledNodes(bool visualizeCulledNodes)
45{
46        mVisualizeCulledNodes = visualizeCulledNodes;
47}
48//-----------------------------------------------------------------------
49void CullingManager::InitFrame(bool visualizeCulledNodes)
50{
51        mNumFrustumCulledNodes = mNumQueryCulledNodes = mNumQueriesIssued = 0;
52        mVisualizeCulledNodes = visualizeCulledNodes;
53}
54} // namespace GtpVisibility
Note: See TracBrowser for help on using the repository browser.