![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: 3DViewMfRec.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ** Created: 11/25/07 JAT, Updated: 00008 *******************************************************************************/ 00009 #ifndef ThreeDViewMfRec_H_ 00010 #define ThreeDViewMfRec_H_ 00011 00012 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00013 #include "terrainDbFactory/terrainMfRec.h" 00014 00015 // The Dt3DViewMetafileRecord record specifies the terrain file(s) to load by 3DVRForces. 00016 class DT_DLL_terrainDbFactory Dt3DViewMetafileRecord : public DtMetafileRecord 00017 { 00018 00019 public: 00020 00022 Dt3DViewMetafileRecord(); 00023 00025 virtual ~Dt3DViewMetafileRecord(); 00026 00028 Dt3DViewMetafileRecord(const Dt3DViewMetafileRecord& orig); 00029 00031 Dt3DViewMetafileRecord& operator=(const Dt3DViewMetafileRecord& orig); 00032 00034 virtual DtString recordTypeName() const; 00035 00037 virtual DtConfigCategoryType recordCategory() const; 00038 00040 virtual const DtFilename& filename() const; 00041 00043 virtual void setFilename(const DtFilename & name); 00044 00046 virtual bool get(std::istream& stream); 00047 00049 virtual bool processToken(std::istream& stream, DtString& token); 00050 00051 static DtMetafileRecord* create(); 00052 00053 protected: 00054 00055 // Write self to stream. 00056 virtual bool writeAttributes(std::ostream& stream) const; 00057 virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0); 00058 virtual bool setToken(const DtString& token, const DtString value); 00059 00060 protected: 00061 00062 static const DtString theParameterFile; 00063 DtFilename myFile; 00064 00065 }; 00066 00067 #endif 00068