VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
terrainDbUtilities.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: terrainDbUtilities.h,v $ $Revision: 1.5 $ $State: Exp $
7
******************************************************************************/
8
#ifndef terrainDbUtilities_H_
9
#define terrainDbUtilities_H_
10
11
//
12
// \file terrainDbUtilities.h
13
// \brief Contains functions related to the DtTerrainDatabase or operations performed
14
// on it that, while related, are not part of its interface.
15
//
16
17
#include "
gdb/gdbDefines.h
"
18
#include "
gdb/gdbNode.h
"
19
20
class
DtTerrainDatabase
;
21
class
DtPoint
;
22
class
DtChordIntersectionRecord
;
23
class
DtVectorNetworkRecord
;
24
class
DtVectorNetworkIntersectionRecord
;
25
26
27
// Intersect the specified terrain database, at the specified location, and return
28
// the intersection results, if any, in the specified chord intersection record.
29
// If the vector network parameters are present, then the associated intersection
30
// will be performed as well, and appropriate results returned if any.
31
// \return A boolean indicating whether or not any intersection occured, as configured.
32
DT_DLL_gdb
bool
intersectTerrain
(
DtTerrainDatabase
& terrainDatabase,
33
const
DtVector
& localLocation,
DtChordIntersectionRecord
& record,
34
DtGdbNode::DtIntersectRecordType
irtFlag,
35
DtVectorNetworkRecord
* vectorRecord,
36
DtVectorNetworkIntersectionRecord
* vectorIntersectionRecord);
37
38
// \return A chord at the specified location, of the specified half-length,
39
// in the direction of gravity.
40
DT_DLL_gdb
DtChord
createVerticleChord
(
const
DtVector
& location,
41
const
DtVector
& downDirection,
double
chordHalfLength);
42
43
// Merges the feature data from sourceData into the mergeTarget terrain
44
// database. Coordinate systems are converted as necessary.
45
// \note sourceData may be altered if a coordinate system transform is
46
// necessary for the merge. If connectEdges is false the shape edges
47
// will be left alone (unconnected)
48
DT_DLL_gdb
bool
mergeFeatureData
(
DtTerrainDatabase
& sourceData,
49
DtTerrainDatabase
& mergeTarget,
50
bool
connectEdges =
true
);
51
#endif
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
)