VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainInterface
gdbTerrainImplementation.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#ifndef gdbTerrainImplementation_h
12
#define gdbTerrainImplementation_h
13
14
#include "
terrainInterface/terrainInterfaceDefines.h
"
15
#include "
terrainInterface/terrainImplementation.h
"
16
#include <
geometry/intersectionRecord.h
>
17
#include "
terrainInterface/terrainCapabilities.h
"
18
#include "
geometry/surface.h
"
19
#include "
gdb/gdbNode.h
"
20
#include "
gdb/group.h
"
21
#include "
gdb/triInd.h
"
22
23
class
DtTdbManager
;
24
class
DtTerrainImplementationDescriptor;
25
namespace
makArchives
26
{
27
class
DtGenericTerrainRecord;
28
}
29
33
class
DT_DLL_terrainInterface
DtGdbTerrainImplementation
:
34
public
DtTerrainImplementation
35
{
36
public
:
37
DtGdbTerrainImplementation
(
DtConsoleCommandManager
* cmdMgr);
38
39
virtual
~
DtGdbTerrainImplementation
();
40
41
static
DtTerrainImplementation
* create(
DtConsoleCommandManager
* cmdMgr);
42
43
virtual
bool
loadTerrain
(
const
makArchives::DtGenericTerrainRecord
& record,
44
MAKVRinTerra::DtFeatureLoader
&,
45
const
TerrainSettings
& settings =
TerrainSettings
());
46
47
virtual
const
Coordinate_System
*
coordinateSystem
()
const
;
48
51
virtual
bool
chordIntersect
(
const
DtChord
& chord,
52
DtChordIntersectionRecord
& record,
53
DtIntersectionRecord::DtIntersectionType
irtFlag =
DtIntersectionRecord::INT_ALL_DATA
,
54
bool
* dataAvailable = 0,
bool
overrideBlockingAssert =
false
)
const
;
55
58
virtual
bool
allIntersectsAlongChord
(
const
DtChord
& chord,
59
DtChordIntersectRecordList
& intList,
60
DtIntersectionRecord::DtIntersectionType
irtFlag =
DtIntersectionRecord::INT_ALL_DATA
,
61
bool
* dataAvailable = 0,
bool
overrideBlockingAssert =
false
)
const
;
62
65
virtual
bool
sphereIntersect
(
const
DtSphere
& sphere,
DtSphereIntersectionRecord
& record,
66
DtIntersectionRecord::DtIntersectionType
irtFlag =
DtIntersectionRecord::INT_ALL_DATA
,
67
bool
* dataAvailable = 0,
bool
overrideBlockingAssert =
false
)
const
;
68
69
virtual
const
DtTerrainCapabilities
*
terrainCapabilities
()
const
;
70
71
virtual
void
processTrianglesInArea
(
DtTriangleCallbackFcn
func,
DtTriangleCallbackFinalizeFcn
finalize,
DtTerrainProcessPolygonsBox
& box,
void
* usr)
const
;
72
virtual
void
consumeNode(
DtGdbNode
* gdbNode,
DtTerrainProcessPolygonsBox
& box,
DtTriangleCallbackFcn
func,
void
* usr)
const
;
73
protected
:
74
DtTdbManager
*
myTdbManager
;
75
DtTerrainCapabilities
myCapabilities
;
76
};
77
78
#endif
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
)