VR-Forces 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) 2025 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() override;
32 
33  // copy constructor
35 
36  // assignment operator
38 
39  // Returns "flt".
40  virtual DtString recordTypeName() const override;
41 
42  // Read self from stream.
43  virtual bool get(std::istream &stream) override;
44 
45  // identifies a token or passes it to the parent class.
46  virtual bool processToken(std::istream &stream, DtString &token) override;
47 
48  static DtMetafileRecord* create();
49 
50 protected:
51 
52  // Write self to stream.
53  virtual bool writeAttributes(std::ostream &stream) const override;
54  virtual bool getAttribute(const DtString attrName, DtString &value,
55  unsigned index = 0) override;
56  virtual bool setToken(const DtString &token, const DtString value) override;
57 
58 protected:
59 
60  static const DtString theParameterFile;
63  static const DtString theDatumShift;
66  static const DtString theLodDistance;
69  static const DtString theUsePath;
71 };
72 
73 #endif
Definition: fltMetafileRecord.h:22
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
static const DtString theLowLodDistance
Definition: fltMetafileRecord.h:67
static const DtString theRefEllipsoidMajor
Definition: fltMetafileRecord.h:61
static const DtString theProjectionCentralScale
Definition: fltMetafileRecord.h:64
static const DtString theRefInverseFlattening
Definition: fltMetafileRecord.h:68
static const DtString theRefEllipsoidMinor
Definition: fltMetafileRecord.h:62
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
static const DtString theNumberOfExternalLevelsToKeep
Definition: fltMetafileRecord.h:65
static const DtString theParameterFile
Definition: fltMetafileRecord.h:60
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
virtual bool setToken(const DtString &token, const DtString value) override
identifies a token and returns true if the value can be set to it, false otherwise ...
voidpf stream
Definition: ioapi.h:39
static const DtString theLodDistance
Definition: fltMetafileRecord.h:66
Definition: metafileRecord.h:28
virtual bool processToken(std::istream &stream, DtString &token) override
Identifies a token or passes it to the parent class.
This is the abstract base class for all terrain records in a metafile.
Definition: terrainMetafileRecord.h:23
static const DtString theDefaultSwitchNodeChildIndex
Definition: fltMetafileRecord.h:70
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
static const DtString theDatumShift
Definition: fltMetafileRecord.h:63
static const DtString theUsePath
Definition: fltMetafileRecord.h:69
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0) override
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter. Returns True if successful; false otherwise.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)