VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
terrainDatabaseUtilities.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 terrainDatabaseUtilities_H_
9 #define terrainDatabaseUtilities_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;
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,
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.
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)
49  DtTerrainDatabase& mergeTarget,
50  bool connectEdges = true);
51 #endif
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
Definition: chordIntersectionRecord.h:23
DtIntersectRecordType
Definition: gdbNode.h:74
#define DT_DLL_gdb
Definition: gdbDefines.h:25
DT_DLL_gdb bool mergeFeatureData(DtTerrainDatabase &sourceData, DtTerrainDatabase &mergeTarget, bool connectEdges=true)
DT_DLL_gdb DtChord createVerticleChord(const DtVector &location, const DtVector &downDirection, double chordHalfLength)
Definition: vectorNetworkRecord.h:24
DT_DLL_gdb bool intersectTerrain(DtTerrainDatabase &terrainDatabase, const DtVector &localLocation, DtChordIntersectionRecord &record, DtGdbNode::DtIntersectRecordType irtFlag, DtVectorNetworkRecord *vectorRecord, DtVectorNetworkIntersectionRecord *vectorIntersectionRecord)
Definition: vectorNetworkIntersectionRecord.h:25
Definition: terrainDatabase.h:148
Definition: point.h:34

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)