VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
shape
shapeInitializer.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: shapeInit.h,v $ $Revision: 1.17 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef shapeInitializer_H_
9
#define shapeInitializer_H_
10
11
// \file shapeInit.h
12
// \brief Contains the DtShapeInitializer class declaration.
13
14
#include "
shape/shapeDefines.h
"
15
#include <vlutil/vlFilename.h>
16
#include "
gdb/terrainFileInitializer.h
"
17
#include "
shape/shapeEntry.h
"
18
#include <vlutil/vlConfig.h>
19
#include <list>
20
21
22
// The DtShapeInitializer contains the data necessary to initialize the
23
// DtShapeReader shape file import class.
24
class
DT_DLL_shape
DtShapeInitializer
:
public
DtTerrainFileInitializer
25
{
26
27
public
:
28
enum
DtShapefileTerrainType
29
{
30
SHAPETERRAIN_NOTYPE
,
31
SHAPETERRAIN_ZPOLY
,
32
SHAPETERRAIN_POLY
,
33
SHAPETERRAIN_POST
34
};
35
36
typedef
std::list<DtShapeEntry>
DtShapeFileContainer
;
37
typedef
DtShapeFileContainer::iterator
DtShapeFileIter
;
38
typedef
DtShapeFileContainer::const_iterator
DtShapeFileConstIter
;
39
40
// default constructor.
41
DtShapeInitializer
();
42
43
// destructor
44
virtual
~
DtShapeInitializer
();
45
46
DtShapeInitializer
(
const
DtShapeInitializer
& original);
47
DtShapeInitializer
&
operator=
(
const
DtShapeInitializer
& original);
48
49
virtual
DtString
type
()
const
;
50
51
virtual
const
DtShapeFileContainer
& terrainFileContainer()
const
;
52
virtual
DtShapeFileContainer
& terrainFileContainer();
53
54
// add a filename to the load list
55
virtual
void
addTerrainFile(
const
DtFilename&
filename
,
const
DtString
& dataString,
float
factorToMtrs);
56
virtual
void
addTerrainFile(
const
DtFilename&
filename
,
float
elevationDelta,
float
factorToMtrs);
57
virtual
void
addTerrainFile(
const
DtFilename&
filename
,
float
factorToMtrs);
58
59
virtual
void
clearList
();
60
61
virtual
void
setIsSeaRectangleAdded(
bool
added);
62
virtual
bool
isSeaRectangleAdded()
const
;
63
64
virtual
void
setIsGroundRectangleAdded(
bool
added);
65
virtual
bool
isGroundRectangleAdded()
const
;
66
67
virtual
void
setTerrainType(
const
DtString
&typ);
68
virtual
DtShapefileTerrainType
terrainType()
const
;
69
virtual
DtString
terrainTypeString()
const
;
70
71
virtual
void
setMinimumDistance(
double
dist);
72
virtual
double
minimumDistance()
const
;
73
74
virtual
void
setThresholdForSeaLevel(
double
threshold);
75
virtual
double
thresholdForSeaLevel()
const
;
76
77
// returns the origin latitude;
78
virtual
const
double
& originLatitude()
const
;
79
virtual
void
setOriginLatitude(
const
double
& d);
80
81
// returns the origin longitude
82
virtual
const
double
& originLongitude()
const
;
83
virtual
void
setOriginLongitude(
const
double
& d);
84
85
// returns the low-color height
86
virtual
bool
isOriginSpecified()
const
;
87
virtual
void
setIsOriginSpecified(
bool
b);
88
89
protected
:
90
91
DtShapefileTerrainType
myTerrainType
;
92
bool
myIsSeaRectangleAdded
;
93
bool
myIsGroundRectangleAdded
;
94
DtShapeFileContainer
myTerrainFileContainer
;
95
96
double
myOriginLatitude
;
97
double
myOriginLongitude
;
98
double
myMinimumDistance
;
99
double
myThresholdForSeaLevel
;
100
101
bool
myIsOriginSpecified
;
102
};
103
104
#endif
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)