VR-Forces 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) 2025 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() override;
35 
36  // Sets myMaxHigh and myMinHigh for each DtShapeRecord in myList
37  virtual bool load(const DtFilename &path,
38  const DtShapeEntry *entry) override;
39 
40  // If the .map file is setup to read elevations from a dBASE field, this
41  // function is called by load to open the .dbf file and pull in each record.
42  virtual bool loadElevationsFromFile();
43 
44  // Sets myReader, and calls importPolys if the initializer's terrain type is
45  // set to SHAPETERRAIN_POLY.
46  virtual DtGroup *import(DtShapeReader *reader) override;
47 
48  // Returns false
49  virtual bool importFeatures(DtShapeVectorReader *reader) override;
50 
51 protected:
52 
53  // Adds the polygons from each DtShapeRecord in myList to the gdb.
54  virtual DtGroup* importPolys();
55 
56 public:
57 
58  double myMaxHigh;
59  double myMinHigh;
60 };
61 
62 #endif
Definition: shapeVectorReader.h:29
Definition: group.h:28
virtual bool load(const DtFilename &path, const DtShapeEntry *entry)
double myMinHigh
Definition: shapeTerrainFile.h:59
double myMaxHigh
Definition: shapeTerrainFile.h:58
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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)