VR-Forces 5.0.2 Developer's Guide
 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
Definition: shapeVectorReader.h:29
Definition: group.h:28
virtual bool load(const DtFilename &path, const DtShapeEntry *entry)
double myMinHigh
Definition: shapeTerrainFile.h:58
double myMaxHigh
Definition: shapeTerrainFile.h:57
Definition: shapeTerrainFile.h:25
Definition: shapeReader.h:30
Definition: shapeInitializer.h:24
virtual bool importFeatures(DtShapeVectorReader *db)=0
#define DT_DLL_shape
Definition: shapeDefines.h:23
Definition: shapeEntry.h:33
Definition: shapefile.h:40

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)