VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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.
23 {
24 
25 public:
26 
27  // default constructor.
29 
30  // destructor
31  virtual ~DtFltMetafileRecord();
32 
33  // copy constructor
35 
36  // assignment operator
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;
62  static const DtString theDatumShift;
65  static const DtString theLodDistance;
68  static const DtString theUsePath;
70 };
71 
72 #endif
Definition: fltMetafileRecord.h:22
static const DtString theLowLodDistance
Definition: fltMetafileRecord.h:66
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter. Returns True if successful; false otherwise.
static const DtString theRefEllipsoidMajor
Definition: fltMetafileRecord.h:60
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 ...
static const DtString theProjectionCentralScale
Definition: fltMetafileRecord.h:63
static const DtString theRefInverseFlattening
Definition: fltMetafileRecord.h:67
static const DtString theRefEllipsoidMinor
Definition: fltMetafileRecord.h:61
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
static const DtString theNumberOfExternalLevelsToKeep
Definition: fltMetafileRecord.h:64
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
static const DtString theParameterFile
Definition: fltMetafileRecord.h:59
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
static const DtString theLodDistance
Definition: fltMetafileRecord.h:65
Definition: metafileRecord.h:28
This is the abstract base class for all terrain records in a metafile.
Definition: terrainMetafileRecord.h:23
static const DtString theDefaultSwitchNodeChildIndex
Definition: fltMetafileRecord.h:69
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
static const DtString theDatumShift
Definition: fltMetafileRecord.h:62
static const DtString theUsePath
Definition: fltMetafileRecord.h:68

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)