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

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

removed dependency on ogre in gtpvisibility

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
19
20//-----------------------------------------------------------------------
21void CullingManager::SetHierarchyInterface(HierarchyInterface *hierarchyInterface)
22{
23        mHierarchyInterface = hierarchyInterface;
24}
25//-----------------------------------------------------------------------
26void CullingManager::SetVisibilityThreshold(unsigned int visibilityThreshold)
27{
28        mVisibilityThreshold = visibilityThreshold;
29}
30//-----------------------------------------------------------------------
31unsigned int CullingManager::GetNumFrustumCulledNodes()
32{
33        return mNumFrustumCulledNodes;
34}
35//-----------------------------------------------------------------------
36unsigned int CullingManager::GetNumQueryCulledNodes()
37{
38        return mNumQueryCulledNodes;
39}
40//-----------------------------------------------------------------------
41unsigned int CullingManager::GetNumQueriesIssued()
42{
43        return mNumQueriesIssued;
44}
45//-----------------------------------------------------------------------
46void CullingManager::SetVisualizeCulledNodes(bool visualizeCulledNodes)
47{
48        mVisualizeCulledNodes = visualizeCulledNodes;
49}
50//-----------------------------------------------------------------------
51void CullingManager::InitFrame(bool visualizeCulledNodes)
52{
53        mNumFrustumCulledNodes = mNumQueryCulledNodes = mNumQueriesIssued = 0;
54        mVisualizeCulledNodes = visualizeCulledNodes;
55}
56} // namespace GtpVisibility
Note: See TracBrowser for help on using the repository browser.