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
shapeEntry.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: shapeEntry.h,v $ $Revision: 1.11 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef shapeEntry_H_
9
#define shapeEntry_H_
10
11
// \file shapeEntry.h
12
// \brief Contains the DtShapeEntry class declaration and other related definitions/declarations.
13
14
#include "
shape/shapeDefines.h
"
15
#include <vlutil/vlFilename.h>
16
#include <vlutil/vlString.h>
17
18
19
enum
DtShapefileEntryType
20
{
21
SHAPEFILE_NOTYPE
,
22
SHAPEFILE_FEATURE
,
23
SHAPEFILE_ELEVATIONFIELD
,
24
SHAPEFILE_ELEVATIONDELTA
,
25
SHAPEFILE_ELEVATIONINDATA
26
};
27
28
29
//
30
// The DtShapeEntry class is responsible for holding all the data necessary for
31
// the shape vector importer to import the specified shape file as a set of vector
32
// features.
33
class
DT_DLL_shape
DtShapeEntry
34
{
35
36
public
:
37
38
// default constructor.
39
DtShapeEntry
();
40
DtShapeEntry
(
const
DtFilename&
filename
,
const
DtString
& dataString,
float
factorToMtrs);
41
DtShapeEntry
(
const
DtFilename& filename,
float
elevationDelta,
float
factorToMtrs);
42
DtShapeEntry
(
const
DtFilename& filename,
float
factorToMtrs);
43
DtShapeEntry
(
const
DtFilename& filename,
int
fccCode);
44
45
// Copy constructor
46
DtShapeEntry
(
const
DtShapeEntry
& original);
47
48
// Assignment operator
49
DtShapeEntry
& operator=(
const
DtShapeEntry
& original);
50
51
52
// destructor
53
virtual
~
DtShapeEntry
();
54
55
virtual
void
setType(
DtShapefileEntryType
newType);
56
virtual
DtShapefileEntryType
type()
const
;
57
58
// add a filename to the load list
59
virtual
void
setFile(
const
DtFilename& filename);
60
virtual
DtFilename& file();
61
virtual
const
DtFilename& file()
const
;
62
63
virtual
void
setDataString(
const
DtString
& dataString);
64
virtual
DtString
& dataString();
65
virtual
const
DtString
& dataString()
const
;
66
67
virtual
void
setElevationDelta(
float
stp);
68
virtual
double
elevationDelta()
const
;
69
70
virtual
void
setFactorToMtrs(
float
factor);
71
virtual
float
factorToMtrs()
const
;
72
73
virtual
void
setFccCode(
int
fccCod);
74
virtual
int
fccCode()
const
;
75
76
virtual
void
setPath(
const
DtFilename&);
77
virtual
const
DtFilename& path()
const
;
78
79
// Indicates whether or not we should load all attributes
80
// found in .dbf file. Default is false (only load those
81
// attributes we specifically ask for through a
82
// DtVectorDataInitializer object).
84
virtual
void
setLoadAllAttributes(
bool
yesNo);
85
virtual
bool
loadAllAttributes()
const
;
87
88
// Indicates whether or not attributes from the sedris map files
89
// should be loaded when loading this shape file. If yes, the map file
90
// (specified in setDfadSedrisFile()) will be used to initialize the
91
// shape attributes based on the FCC code.
92
// Default is true.
94
virtual
void
setLoadSedrisMapAttributes(
bool
yesNo);
95
virtual
bool
loadSedrisMapAttributes()
const
;
97
98
protected
:
99
DtFilename
myFilename
;
100
DtFilename
myPath
;
101
DtShapefileEntryType
myType
;
102
DtString
myDataString
;
103
double
myElevationDelta
;
104
float
myFactorToMtrs
;
105
int
myFccCode
;
106
bool
myLoadAllAttributes
;
107
bool
myLoadSedrisMapAttributes
;
108
};
109
110
#endif
111
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
)