VR-Forces 4.6.1 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
terrainDbFactory
shapeMetafileRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: shapeMfRec.h,v $ $Revision: 1.15 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtShapeMetafileRecord_H_
10
#define DtShapeMetafileRecord_H_
11
12
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
13
#include "
terrainDbFactory/terrainMetafileRecord.h
"
14
15
#include <vlutil/vlFilename.h>
16
17
#include <iosfwd>
18
19
// class DtShapeMetafileRecord:
20
//
21
// The shape metafile record has a list of individual shape files for terrain
22
23
class
DT_DLL_terrainDbFactory
DtShapeMetafileRecord
:
public
DtTerrainMetafileRecord
24
{
25
26
public
:
27
28
// default constructor.
29
DtShapeMetafileRecord
();
30
31
// destructor
32
virtual
~
DtShapeMetafileRecord
();
33
34
// copy constructor
35
DtShapeMetafileRecord
(
const
DtShapeMetafileRecord
& orig);
36
37
// assignment operator
38
DtShapeMetafileRecord
&
operator=
(
const
DtShapeMetafileRecord
& orig);
39
40
// Returns "shape".
41
virtual
DtString
recordTypeName
()
const
;
42
43
// Clears out the list of files associated to this record
44
virtual
void
resetFileLists
();
45
46
// Read self from stream.
47
virtual
bool
get
(std::istream&
stream
);
48
49
// identifies a token or passes it to the parent class.
50
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
51
52
static
DtMetafileRecord
* create();
53
54
protected
:
55
56
// Write self to stream.
57
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
58
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
59
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
60
61
protected
:
62
63
static
const
DtString
theIsTerrainType
;
64
static
const
DtString
theIsElevationFactorToMeters
;
65
static
const
DtString
theIsElevationField
;
66
static
const
DtString
theIsElevationValue
;
67
static
const
DtString
theIsSeaRectangleAdded
;
68
static
const
DtString
theIsGroundRectangleAdded
;
69
static
const
DtString
theIsTerrainFile
;
70
static
const
DtString
theOrigin
;
71
static
const
DtString
theDistance
;
72
static
const
DtString
theIsElevationInData
;
73
static
const
DtString
theThreshold
;
74
75
};
76
77
#endif
78
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)