![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: asciiMfRec.h,v $ $Revision: 1.13 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef asciiMfRec_H_ 00009 #define asciiMfRec_H_ 00010 00011 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00012 #include "terrainDbFactory/terrainMfRec.h" 00013 #include <vlutil/vlFilename.h> 00014 #include <iosfwd> 00015 00016 00017 // 00018 // The ascii metafile record has a list of individual ascii files, and also a 00019 // post spacing parameter, used to control the resolution of the map. 00020 class DT_DLL_terrainDbFactory DtAsciiMetafileRecord : public DtTerrainMetafileRecord 00021 { 00022 00023 public: 00024 00025 // default constructor. 00026 DtAsciiMetafileRecord(); 00027 00028 // destructor 00029 virtual ~DtAsciiMetafileRecord(); 00030 00031 // copy constructor 00032 DtAsciiMetafileRecord(const DtAsciiMetafileRecord& orig); 00033 00034 // assignment operator 00035 DtAsciiMetafileRecord& operator=(const DtAsciiMetafileRecord& orig); 00036 00037 // Returns "ascii". 00038 virtual DtString recordTypeName() const; 00039 00040 // Read self from stream. 00041 virtual bool get(std::istream& stream); 00042 00043 // reads in the next value from the stream and associates it with 00044 // the token. 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 theParameterPostSpacing; 00059 static const DtString theIsTriangulated; 00060 static const DtString theIsProjected; 00061 static const DtString theTriangles; 00062 static const DtString theVertices; 00063 static const DtString theOrigin; 00064 static const DtString theMinMaxLatitude; 00065 static const DtString theMinMaxLongitude; 00066 static const DtString theIsSeaRectangleAdded; 00067 static const DtString theFilename; 00068 static const DtString theThreshold; 00069 static const DtString theFilesConfiguration; 00070 static const DtString theHasSoilTypes; 00071 static const DtString theIndexFromZero; 00072 }; 00073 00074 #endif 00075