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
shapeExporter.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: shapeExporter.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
9
10
#ifndef SHAPEEXPORTER_H
11
#define SHAPEEXPORTER_H
12
13
#include <vlutil/vlString.h>
14
#include "
shape/shapeDefines.h
"
15
16
class
DtTerrainDatabase
;
17
18
// \file shapeExporter.h
19
// \brief Contains the DtShapeExporter class declaration and other related definitions/declarations.
20
21
// the DtShapeExporter calss is just a convenient container for the code that
22
// writes a DtTerrainDatabase to a shape file. Currently it only writes the
23
// polygons to a 3D shape file.
24
class
DT_DLL_shape
DtShapeExporter
25
{
26
public
:
27
DtShapeExporter
();
28
virtual
~
DtShapeExporter
();
29
30
// writes four files using the filename prefix. the resulting shape file
31
// includes all polygons that satisfy isGround and not isCulturalFeature
32
// it calls writePrj() followed by writeShpShx() followed by writeDbf().
33
virtual
void
exportPolygons(
const
char
* filename,
DtTerrainDatabase
* tdb);
34
35
protected
:
36
// write a projection file. The exporter does all of its work in geodetic
37
// so this file is WGS84 GEOGCS with the units as DEGREES
38
virtual
void
writePrj();
39
40
// writes both the main shp file and the index file
41
virtual
void
writeShpShx();
42
43
// writes out a Dbf file for the attributes. currently only a ID attribute
44
// is written.
45
virtual
void
writeDbf();
46
47
48
protected
:
49
// these members are used as temporary storage during the output process.
50
DtString
myFilename
;
51
DtTerrainDatabase
*
myTdb
;
52
int
myNumPolys
;
53
};
54
55
#endif
56
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)