source: trunk/VUT/GtpVisibility/src/CullingManager.cpp @ 112

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