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

RevLine 
[59]1#include "CullingManager.h"
2
[2280]3
[59]4namespace GtpVisibility {
5
[2280]6
7
[59]8//-----------------------------------------------------------------------
[74]9CullingManager::CullingManager():
[2280]10mHierarchyInterface(NULL),
11mVisibilityThreshold(0),
12mNumQueryCulledNodes(0),
13mNumFrustumCulledNodes(0),
14mNumQueriesIssued(0),
[112]15mVisualizeCulledNodes(false)
[59]16{
17}
18//-----------------------------------------------------------------------
19void CullingManager::SetHierarchyInterface(HierarchyInterface *hierarchyInterface)
20{
21        mHierarchyInterface = hierarchyInterface;
22}
[74]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}
[87]38//-----------------------------------------------------------------------
39unsigned int CullingManager::GetNumQueriesIssued()
40{
41        return mNumQueriesIssued;
42}
[112]43//-----------------------------------------------------------------------
44void CullingManager::SetVisualizeCulledNodes(bool visualizeCulledNodes)
45{
46        mVisualizeCulledNodes = visualizeCulledNodes;
47}
[87]48//-----------------------------------------------------------------------
[112]49void CullingManager::InitFrame(bool visualizeCulledNodes)
[87]50{
51        mNumFrustumCulledNodes = mNumQueryCulledNodes = mNumQueriesIssued = 0;
[112]52        mVisualizeCulledNodes = visualizeCulledNodes;
[87]53}
[59]54} // namespace GtpVisibility
Note: See TracBrowser for help on using the repository browser.