VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeTerrainFile.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: shapeTerrainFile.h,v $ $Revision: 1.13 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef shapeTerrainFile_H_
10 #define shapeTerrainFile_H_
11 
12 #include "shape/shapeDefines.h"
13 #include "shape/shapefile.h"
14 #include <vlutil/vlFilename.h>
15 
16 class DtShapeEntry;
17 class DtShapeReader;
19 class DtShapeInitializer;
20 class DtGroup;
21 
22 //
23 // DtShapeTerrainFile reads in elevation data from a shape file
24 //
26 {
27 
28 public:
29 
30  // Constructor.
32 
33  // Destructor
34  virtual ~DtShapeTerrainFile();
35 
36  // Sets myMaxHigh and myMinHigh for each DtShapeRecord in myList
37  virtual bool load(const DtFilename& path, const DtShapeEntry* entry);
38 
39  // If the .map file is setup to read elevations from a dBASE field, this
40  // function is called by load to open the .dbf file and pull in each record.
41  virtual bool loadElevationsFromFile();
42 
43  // Sets myReader, and calls importPolys if the initializer's terrain type is
44  // set to SHAPETERRAIN_POLY.
45  virtual DtGroup* import(DtShapeReader* reader);
46 
47  // Returns false
48  virtual bool importFeatures(DtShapeVectorReader* reader);
49 
50 protected:
51 
52  // Adds the polygons from each DtShapeRecord in myList to the gdb.
53  virtual DtGroup* importPolys();
54 
55 public:
56 
57  double myMaxHigh;
58  double myMinHigh;
59 };
60 
61 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)