VR-Forces 4.7 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
terrainDescriptorRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: terrainDescriptorRec.h,v $ $Revision: 1.1 $ $State: Exp $
7
** Created: 3/24/06 MEM, Updated: 4/24/06
8
*******************************************************************************/
9
#ifndef terrainDescriptorRecord_H_
10
#define terrainDescriptorRecord_H_
11
12
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
13
#include "
terrainDbFactory/metafileRecord.h
"
14
15
16
// The DtTerrainDescriptor record specifies the gdb file to load and whether the
17
// gdb has been altered since it was created.
18
class
DT_DLL_terrainDbFactory
DtTerrainDescriptorRecord
:
public
DtMetafileRecord
19
{
20
21
public
:
22
23
// default constructor.
24
DtTerrainDescriptorRecord
();
25
26
// destructor
27
virtual
~
DtTerrainDescriptorRecord
();
28
29
// copy constructor
30
DtTerrainDescriptorRecord
(
const
DtTerrainDescriptorRecord
& orig);
31
32
// assignment operator
33
DtTerrainDescriptorRecord
&
operator=
(
const
DtTerrainDescriptorRecord
& orig);
34
35
// Returns "mtd".
36
virtual
DtString
recordTypeName
()
const
;
37
38
// Returns DtConfigTerrainDescriptorType
39
virtual
DtConfigCategoryType
recordCategory
()
const
;
40
41
// Returns filename of database
42
virtual
const
DtFilename&
filename
()
const
;
43
virtual
void
setFilename(
const
DtFilename & name);
44
45
// If true the terrain has been altered--soil types changed, color changed....
46
// from the configuration used to initially build it.
47
virtual
bool
terrainAltered()
const
;
48
virtual
void
setTerrainAltered(
bool
altered);
49
50
virtual
bool
loadMtdFile(
const
DtFilename& name);
51
52
// Read self from stream.
53
virtual
bool
get
(std::istream&
stream
);
54
55
// identifies a token or passes it to the parent class.
56
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
57
58
static
DtMetafileRecord
* create();
59
60
protected
:
61
// Write self to stream
62
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
63
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
64
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
65
protected
:
66
67
static
const
DtString
theParameterFile
;
68
static
const
DtString
theTerrainHasBeenAltered
;
69
70
bool
myTerrainHasBeenAltered
;
71
DtFilename
myFile
;
72
73
};
74
75
#endif
76
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)