VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)