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