VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)