VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vantageTerrainImplementation
activePageTracker.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrvCore/DtDe.h
>
14
15
#include <tbb/spin_rw_mutex.h>
16
17
#include <
vantageTerrainImplementation/vantageTerrainImplementationDefines.h
>
18
#include <
vantageTerrainImplementation/vantageTerrainImplementationUtil.h
>
19
20
#include <
terrainInterface/terrainPagingGeometry.h
>
21
22
class
DtTerrainSourceTracker
;
23
class
btIDebugDraw
;
24
29
class
DT_DLL_vantageTerrainImplementation
DtActivePageTracker
30
{
31
private
:
33
34
DtActivePageTracker
(
const
DtActivePageTracker
&);
35
DtActivePageTracker
& operator=(
const
DtActivePageTracker
&);
37
38
public
:
40
DtActivePageTracker
();
41
43
virtual
~
DtActivePageTracker
();
44
46
virtual
void
setDebugDrawer(
btIDebugDraw
* drawer);
47
51
virtual
void
drawDebugInfo()
const
;
52
56
virtual
void
setWorldPagedOut(
bool
v);
57
66
virtual
void
pageInData(
DtPagingMetaDataPtr
metaData,
67
DtTerrainPagingGeometryPtr
geometry);
68
73
virtual
bool
dataAvailable(
DtPagingMetaDataPtr
metaData,
74
DtTerrainPagingGeometryPtr
geometry);
75
82
84
virtual
void
addTerrainSourceTracker(
85
DtTerrainSourceTracker
* terrainSourceTracker);
86
87
virtual
void
removeTerrainSourceTracker(
88
DtTerrainSourceTracker
* terrainSourceTracker);
89
93
virtual
void
addIntersectChord(
const
DtChord
& intersectChord);
94
98
virtual
void
addIntersectSphere(
const
DtSphere
& intersectSphere);
99
101
virtual
bool
canPageOutData(
unsigned
int
intersectId = 0);
102
107
virtual
unsigned
int
pageOutData(
const
int
priority,
108
unsigned
int
numTrianglesToPageOut,
unsigned
int
intersectId);
109
110
virtual
void
setIntersectDataLoadExpireTime(
const
double
& expireTime);
111
112
protected
:
113
116
bool
myWorldPagedOut
;
117
119
btIDebugDraw
*
myDebugDrawer
;
120
123
DtTerrainSourceTrackerList
myTerrainSourceTrackers
;
124
126
127
std::list<DtChord>
myIntersectChords
;
128
std::list<DtSphere>
myIntersectSpheres
;
130
131
double
myIntersectDataLoadExpireTime
;
132
133
mutable
tbb::spin_rw_mutex
myMutex
;
134
};
135
136
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)