VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
shape
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
;
18
class
DtShapeVectorReader
;
19
class
DtShapeInitializer
;
20
class
DtGroup
;
21
22
//
23
// DtShapeTerrainFile reads in elevation data from a shape file
24
//
25
class
DT_DLL_shape
DtShapeTerrainFile
:
public
DtShapefile
26
{
27
28
public
:
29
30
// Constructor.
31
DtShapeTerrainFile
(
const
DtShapeInitializer
* i);
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
DtShapeVectorReader
Definition:
shapeVectorReader.h:29
DtGroup
Definition:
group.h:28
DtShapefile::load
virtual bool load(const DtFilename &path, const DtShapeEntry *entry)
DtShapeTerrainFile::myMinHigh
double myMinHigh
Definition:
shapeTerrainFile.h:58
DtShapeTerrainFile::myMaxHigh
double myMaxHigh
Definition:
shapeTerrainFile.h:57
DtShapeTerrainFile
Definition:
shapeTerrainFile.h:25
DtShapeReader
Definition:
shapeReader.h:30
DtShapeInitializer
Definition:
shapeInitializer.h:24
shapefile.h
shapeDefines.h
DtShapefile::importFeatures
virtual bool importFeatures(DtShapeVectorReader *db)=0
DT_DLL_shape
#define DT_DLL_shape
Definition:
shapeDefines.h:23
DtShapeEntry
Definition:
shapeEntry.h:33
DtShapefile
Definition:
shapefile.h:40
Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)