VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
terrainDbFactory
extentRec.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2000 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: extentRec.h,v $ $Revision: 1.16 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef extentRec_H_
9
#define extentRec_H_
10
11
// \file extentRec.h
12
// \brief Contains the DtExtentMetafileRecord class declaration.
13
14
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
15
#include "
terrainDbFactory/mfRec.h
"
16
#include "
terrainCS/coordSystem.h
"
17
#include "
terrainDbFactory/terrainDefines.h
"
18
19
#include <iosfwd>
20
21
//
22
// Extends from DtMetafileRecord to provide a way of specifying an extent in
23
// a metafile record (for the creation of a terrain out of that extent).
24
class
DT_DLL_terrainDbFactory
DtExtentMetafileRecord
:
public
DtMetafileRecord
25
{
26
27
public
:
28
29
DtExtentMetafileRecord
();
30
31
virtual
~
DtExtentMetafileRecord
();
32
33
// copy constructor
34
DtExtentMetafileRecord
(
const
DtExtentMetafileRecord
& orig);
35
36
// assignment operator
37
DtExtentMetafileRecord
&
operator=
(
const
DtExtentMetafileRecord
& orig);
38
39
// Returns DtConfigExtentType;
40
virtual
DtConfigCategoryType
recordCategory
()
const
;
41
42
// Read self from stream.
43
virtual
bool
get
(std::istream& stream);
44
45
// identifies a token or passes it to the base class.
46
virtual
bool
processToken
(std::istream& stream,
DtString
& token);
47
48
// identifies this record as a unique metafile record, "extent".
49
virtual
DtString
recordTypeName
()
const
;
50
51
static
DtMetafileRecord
* create();
52
53
protected
:
54
55
// Write self to stream.
56
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
57
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
58
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
59
60
virtual
CS_Type
stringToCsTypeEnum(
const
DtString
&
string
)
const
;
61
virtual
DtString
csTypeEnumToString(
CS_Type
coordsys)
const
;
62
63
protected
:
64
65
static
const
DtString
theParameterCoordinateSystem
;
66
static
const
DtString
theParameterSwCorner
;
67
static
const
DtString
theParameterNeCorner
;
68
static
const
DtString
theParameterSurfaceColor
;
69
static
const
DtString
theParameterRoughness
;
70
static
const
DtString
theParameterOrigin
;
71
static
const
DtString
theParameterLam0
;
72
static
const
DtString
theParameterPhi0
;
73
static
const
DtString
theParameterPhi1
;
74
static
const
DtString
theParameterPhi2
;
75
static
const
DtString
theZone
;
76
static
const
DtString
theTesselateX
;
77
static
const
DtString
theTesselateY
;
78
};
79
80
#endif
81
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
)