VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainDbFactory
shapeVectorMfRec.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: shapeVectorMfRec.h,v $ $Revision: 1.16 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtShapeVectorMetafileRecord_H_
10
#define DtShapeVectorMetafileRecord_H_
11
12
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
13
#include "
terrainDbFactory/vectorDataRec.h
"
14
#include <vlutil/vlFilename.h>
15
#include <iosfwd>
16
17
//
18
// The shape metafile record has a list of individual shape files for
19
// feature data.
20
class
DT_DLL_terrainDbFactory
DtShapeVectorMetafileRecord
:
public
DtVectorDataRecord
21
{
22
23
public
:
24
25
// default constructor.
26
DtShapeVectorMetafileRecord
();
27
28
// destructor
29
virtual
~
DtShapeVectorMetafileRecord
();
30
31
// copy constructor
32
DtShapeVectorMetafileRecord
(
const
DtShapeVectorMetafileRecord
& orig);
33
34
// assignment operator
35
DtShapeVectorMetafileRecord
&
operator=
(
const
DtShapeVectorMetafileRecord
& orig);
36
37
// Returns "shape".
38
virtual
DtString
recordTypeName
()
const
;
39
40
// Clears the vector files from the vector initializer list
41
virtual
void
resetFileLists
();
42
43
// Read self from stream.
44
virtual
bool
get
(std::istream& stream);
45
46
// identifies a token or passes it to the parent class.
47
virtual
bool
processToken
(std::istream& stream,
DtString
& token);
48
49
static
DtMetafileRecord
*
create
();
50
51
protected
:
52
53
// Write self to stream.
54
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
55
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
56
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
57
58
protected
:
59
60
static
const
DtString
theIsFeatureDataFile
;
61
static
const
DtString
theOrigin
;
62
63
static
const
DtString
theFccType
;
64
static
const
DtString
theAttribute
;
65
// Maps numerical type to the feature it represents. ie load in a shape file
66
// road.shp. Type is assigned to 240. The sedris map matches that 240 with the
67
// feature of road and it's associated attributes.
68
static
const
DtString
theSedrisMapFile
;
69
// Maps a shape feature to a color
70
static
const
DtString
theSedrisColorMapFile
;
//
71
};
72
73
#endif
74
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)