VR-Forces 5.0.3 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
terrainDbFactory
fltMetafileRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: fltMfRec.h,v $ $Revision: 1.17 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef fltMetafileRecord_H_
9
#define fltMetafileRecord_H_
10
11
// \file fltMfRec.h
12
// \brief Contains the DtFltMetafileRecord class declaration.
13
14
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
15
#include "
terrainDbFactory/terrainMetafileRecord.h
"
16
#include <iosfwd>
17
18
//
19
// DtFltMetafileRecord represents the parameters that can be specified in a
20
// DtFltMetafileRecord, usually in a .map file, which is used to specify how and
21
// what OpenFlight files to import into a terrain.
22
class
DT_DLL_terrainDbFactory
DtFltMetafileRecord
:
public
DtTerrainMetafileRecord
23
{
24
25
public
:
26
27
// default constructor.
28
DtFltMetafileRecord
();
29
30
// destructor
31
virtual
~
DtFltMetafileRecord
();
32
33
// copy constructor
34
DtFltMetafileRecord
(
const
DtFltMetafileRecord
& orig);
35
36
// assignment operator
37
DtFltMetafileRecord
&
operator=
(
const
DtFltMetafileRecord
& orig);
38
39
// Returns "flt".
40
virtual
DtString
recordTypeName
()
const
;
41
42
// Read self from stream.
43
virtual
bool
get
(std::istream&
stream
);
44
45
// identifies a token or passes it to the parent class.
46
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
47
48
static
DtMetafileRecord
* create();
49
50
protected
:
51
52
// Write self to stream.
53
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
54
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
55
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
56
57
protected
:
58
59
static
const
DtString
theParameterFile
;
60
static
const
DtString
theRefEllipsoidMajor
;
61
static
const
DtString
theRefEllipsoidMinor
;
62
static
const
DtString
theDatumShift
;
63
static
const
DtString
theProjectionCentralScale
;
64
static
const
DtString
theNumberOfExternalLevelsToKeep
;
65
static
const
DtString
theLodDistance
;
66
static
const
DtString
theLowLodDistance
;
67
static
const
DtString
theRefInverseFlattening
;
68
static
const
DtString
theUsePath
;
69
static
const
DtString
theDefaultSwitchNodeChildIndex
;
70
};
71
72
#endif
DtFltMetafileRecord
Definition:
fltMetafileRecord.h:22
terrainDbFactoryDefines.h
DtFltMetafileRecord::theLowLodDistance
static const DtString theLowLodDistance
Definition:
fltMetafileRecord.h:66
DtTerrainMetafileRecord::getAttribute
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record's attribute, returns its value in the 'value' parameter. Returns True if successful; false otherwise.
DtFltMetafileRecord::theRefEllipsoidMajor
static const DtString theRefEllipsoidMajor
Definition:
fltMetafileRecord.h:60
DtTerrainMetafileRecord::setToken
virtual bool setToken(const DtString &token, const DtString value)
identifies a token and returns true if the value can be set to it, false otherwise ...
DtFltMetafileRecord::theProjectionCentralScale
static const DtString theProjectionCentralScale
Definition:
fltMetafileRecord.h:63
DtFltMetafileRecord::theRefInverseFlattening
static const DtString theRefInverseFlattening
Definition:
fltMetafileRecord.h:67
DtFltMetafileRecord::theRefEllipsoidMinor
static const DtString theRefEllipsoidMinor
Definition:
fltMetafileRecord.h:61
DtMetafileRecord::recordTypeName
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
DtTerrainMetafileRecord::writeAttributes
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
DtFltMetafileRecord::theNumberOfExternalLevelsToKeep
static const DtString theNumberOfExternalLevelsToKeep
Definition:
fltMetafileRecord.h:64
DtTerrainMetafileRecord::processToken
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
DtFltMetafileRecord::theParameterFile
static const DtString theParameterFile
Definition:
fltMetafileRecord.h:59
terrainMetafileRecord.h
DT_DLL_terrainDbFactory
#define DT_DLL_terrainDbFactory
Definition:
terrainDbFactoryDefines.h:23
stream
voidpf stream
Definition:
ioapi.h:39
DtFltMetafileRecord::theLodDistance
static const DtString theLodDistance
Definition:
fltMetafileRecord.h:65
DtMetafileRecord
Definition:
metafileRecord.h:28
DtTerrainMetafileRecord
This is the abstract base class for all terrain records in a metafile.
Definition:
terrainMetafileRecord.h:23
DtString
DtFltMetafileRecord::theDefaultSwitchNodeChildIndex
static const DtString theDefaultSwitchNodeChildIndex
Definition:
fltMetafileRecord.h:69
DtTerrainMetafileRecord::operator=
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
DtFltMetafileRecord::theDatumShift
static const DtString theDatumShift
Definition:
fltMetafileRecord.h:62
DtFltMetafileRecord::theUsePath
static const DtString theUsePath
Definition:
fltMetafileRecord.h:68
Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)