VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainInterface
terrainPassThroughLayer.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 "
terrainInterface/terrainInterfaceDefines.h
"
14
#include "
terrainInterface/terrainImplementation.h
"
15
22
class
DT_DLL_terrainInterface
DtTerrainPassThroughLayer
:
public
DtTerrainImplementation
23
{
24
private
:
26
27
DtTerrainPassThroughLayer
();
28
DtTerrainPassThroughLayer
(
const
DtTerrainPassThroughLayer
& orig);
29
DtTerrainPassThroughLayer
&
operator=
(
const
DtTerrainPassThroughLayer
& orig);
31
public
:
34
DtTerrainPassThroughLayer
(
DtTerrainImplementation
* terrainImplementation,
35
DtConsoleCommandManager
* cmdMgr);
36
virtual
~
DtTerrainPassThroughLayer
();
37
38
virtual
bool
loadTerrain
(
const
makArchives::DtGenericTerrainRecord
& rec,
39
MAKVRinTerra::DtFeatureLoader
&,
40
const
std::map<std::string, std::string>& settings =
41
(std::map<std::string, std::string>()));
42
43
virtual
const
Coordinate_System
*
coordinateSystem
()
const
;
44
45
virtual
void
preloadTerrainAreas
(
46
const
DtTerrainPagingGeometryList
& preloadGeometry);
47
50
virtual
bool
chordIntersect
(
const
DtChord
& chord,
51
DtChordIntersectionRecord
& record,
52
DtIntersectionRecord::DtIntersectionType
irtFlag =
53
DtIntersectionRecord::INT_ALL_DATA
,
54
bool
* dataAvailable = 0,
bool
overrideBlockingAssert =
false
)
const
;
55
59
virtual
bool
allIntersectsAlongChord
(
const
DtChord
& chord,
60
DtChordIntersectRecordList
& intList,
61
DtIntersectionRecord::DtIntersectionType
irtFlag =
62
DtIntersectionRecord::INT_ALL_DATA
,
63
bool
* dataAvailable = 0,
bool
overrideBlockingAssert =
false
)
const
;
64
67
virtual
bool
sphereIntersect
(
const
DtSphere
& sphere,
68
DtSphereIntersectionRecord
& record,
69
DtIntersectionRecord::DtIntersectionType
irtFlag =
70
DtIntersectionRecord::INT_ALL_DATA
,
71
bool
* dataAvailable = 0,
bool
overrideBlockingAssert =
false
)
const
;
72
73
virtual
const
DtTerrainCapabilities
*
terrainCapabilities
()
const
;
74
75
virtual
void
setIntersectDataLoadExpireTime
(
const
double
& expireTime);
76
77
virtual
void
expireDataLoadRequestsBeforeTime
(
const
double
& currentTime);
78
79
struct
DtCreatorParam
80
{
81
DtTerrainImplementation
*
terrainImplementation
;
82
DtConsoleCommandManager
*
commandManager
;
83
};
84
85
protected
:
86
DtTerrainImplementation
*
myTerrainImplementation
;
87
};
88
89
typedef
DtStringKeyFactoryWithParam<DtTerrainPassThroughLayer, DtTerrainPassThroughLayer::DtCreatorParam>
90
DtTerrainPassThroughLayerFactory
;
91
typedef
DtTerrainPassThroughLayerFactory::DtCreatorFcn
DtTerrainPassThroughLayerCreatorFcn
;
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)