VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
ascii
asciiInit.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: asciiInit.h,v $ $Revision: 1.10 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef asciiInit_H_
9
#define asciiInit_H_
10
11
// \file asciiInit.h
12
// \brief Contains the DtAsciiInitializer class declaration.
13
14
#include "
ascii/asciiDefines.h
"
15
#include "
gdb/terrainFileInitializer.h
"
16
#include "
geometry/gdbColor.h
"
17
#include <vlutil/vlConfig.h>
18
#include <vlutil/vlFilename.h>
19
#include <vector>
20
21
//
22
// The ascii metafile record has a container of individual ascii files, and also a
23
// post spacing parameter, used to control the resolution of the map.
24
class
DT_DLL_ascii
DtAsciiInitializer
:
public
DtTerrainFileInitializer
25
{
26
27
public
:
28
29
// default constructor.
30
DtAsciiInitializer
();
31
32
// destructor
33
virtual
~
DtAsciiInitializer
();
34
35
// copy constructor
36
DtAsciiInitializer
(
const
DtAsciiInitializer
& orig);
37
38
// assignment operator
39
DtAsciiInitializer
&
operator=
(
const
DtAsciiInitializer
& orig);
40
41
virtual
DtString
type
()
const
;
42
43
// get/set post spacing.
44
virtual
int
postSpacing()
const
;
45
virtual
void
setPostSpacing(
int
i);
46
47
// Returns a flag specifying whether or not to project the database
48
virtual
bool
isProjected()
const
;
49
virtual
void
setIsProjected(
bool
b);
50
51
// Returns a flag specifying whether there is or not info about
52
// triangles in the files
53
virtual
bool
isTriangulated()
const
;
54
virtual
void
setIsTriangulated(
bool
b);
55
56
// returns the origin latitude;
57
virtual
const
double
& originLatitude()
const
;
58
virtual
void
setOriginLatitude(
const
double
& d);
59
60
// returns the origin longitude
61
virtual
const
double
& originLongitude()
const
;
62
virtual
void
setOriginLongitude(
const
double
& d);
63
64
// returns the low-color height
65
virtual
bool
isOriginSpecified()
const
;
66
virtual
void
setIsOriginSpecified(
bool
b);
67
68
// returns the max (boundary) latitude
69
virtual
const
double
& maxLatitude()
const
;
70
virtual
void
setMaxLatitude(
const
double
& d);
71
72
// returns the min (boundary) latitude
73
virtual
const
double
& minLatitude()
const
;
74
virtual
void
setMinLatitude(
const
double
& d);
75
76
// returns the max (boundary) longitude
77
virtual
const
double
& maxLongitude()
const
;
78
virtual
void
setMaxLongitude(
const
double
& d);
79
80
// returns the min (boundary) longitude
81
virtual
const
double
& minLongitude()
const
;
82
virtual
void
setMinLongitude(
const
double
& d);
83
84
// returns the flag specifying whether or not a sea rectangle is added
85
virtual
bool
isSeaRectangleAdded()
const
;
86
virtual
void
setIsSeaRectangleAdded(
bool
b);
87
88
virtual
void
setThresholdForSeaLevel(
double
threshold);
89
virtual
double
thresholdForSeaLevel()
const
;
90
91
virtual
void
setSkipForVertex(
int
i,
int
times);
92
virtual
int
skipForVertex(
int
i)
const
;
93
94
virtual
void
setSkipForTriangle(
int
i,
int
times);
95
virtual
int
skipForTriangle(
int
i)
const
;
96
97
virtual
void
setHasSoilTypes(
bool
b);
98
virtual
bool
hasSoilTypes()
const
;
99
100
virtual
void
setIndexFromZero(
bool
b);
101
virtual
bool
indexFromZero()
const
;
102
103
protected
:
104
105
int
myPostSpacing
;
106
bool
myIsProjected
;
107
bool
myIsTriangulated
;
108
109
double
myOriginLatitude
;
110
double
myOriginLongitude
;
111
bool
myIsOriginSpecified
;
112
double
myMaxLatitude
;
113
double
myMinLatitude
;
114
double
myMaxLongitude
;
115
double
myMinLongitude
;
116
bool
myIsSeaRectangleAdded
;
117
double
myThresholdForSeaLevel
;
118
bool
myHasSoilTypes
;
119
bool
myIndexFromZero
;
120
121
std::vector<int>
mySkipsForVertex
;
122
std::vector<int>
mySkipsForTriangle
;
123
124
};
125
126
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)