![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: fltMfRec.h,v $ $Revision: 1.17 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef fltMfRec_H_ 00009 #define fltMfRec_H_ 00010 00011 // \file fltMfRec.h 00012 // \brief Contains the DtFltMetafileRecord class declaration. 00013 00014 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00015 #include "terrainDbFactory/terrainMfRec.h" 00016 #include <iosfwd> 00017 00018 // 00019 // DtFltMetafileRecord represents the parameters that can be specified in a 00020 // DtFltMetafileRecord, usually in a .map file, which is used to specify how and 00021 // what OpenFlight files to import into a terrain. 00022 class DT_DLL_terrainDbFactory DtFltMetafileRecord : public DtTerrainMetafileRecord 00023 { 00024 00025 public: 00026 00027 // default constructor. 00028 DtFltMetafileRecord(); 00029 00030 // destructor 00031 virtual ~DtFltMetafileRecord(); 00032 00033 // copy constructor 00034 DtFltMetafileRecord(const DtFltMetafileRecord& orig); 00035 00036 // assignment operator 00037 DtFltMetafileRecord& operator=(const DtFltMetafileRecord& orig); 00038 00039 // Returns "flt". 00040 virtual DtString recordTypeName() const; 00041 00042 // Read self from stream. 00043 virtual bool get(std::istream& stream); 00044 00045 // identifies a token or passes it to the parent class. 00046 virtual bool processToken(std::istream& stream, DtString& token); 00047 00048 static DtMetafileRecord* create(); 00049 00050 protected: 00051 00052 // Write self to stream. 00053 virtual bool writeAttributes(std::ostream& stream) const; 00054 virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0); 00055 virtual bool setToken(const DtString& token, const DtString value); 00056 00057 protected: 00058 00059 static const DtString theParameterFile; 00060 static const DtString theRefEllipsoidMajor; 00061 static const DtString theRefEllipsoidMinor; 00062 static const DtString theDatumShift; 00063 static const DtString theProjectionCentralScale; 00064 static const DtString theNumberOfExternalLevelsToKeep; 00065 static const DtString theLodDistance; 00066 static const DtString theLowLodDistance; 00067 static const DtString theRefInverseFlattening; 00068 static const DtString theUsePath; 00069 static const DtString theDefaultSwitchNodeChildIndex; 00070 }; 00071 00072 #endif