![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: gdbProcessingMetafileRecord.h,v $ $Revision: 1.13 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef gdbProcessingMetafileRecord_H_ 00009 #define gdbProcessingMetafileRecord_H_ 00010 00011 // 00012 // \file gdbProcessingMfRecord.h 00013 // \brief Contains the DtGdbProcessingMetafileRecord class description. 00014 // 00015 00016 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00017 #include "terrainDbFactory/mfRec.h" 00018 #include <iosfwd> 00019 #include "gdb/terrainDatabaseToolConfiguration.h" 00020 00021 // The DtGdbProcessingMetafileRecord is a metafile record that allows users 00022 // to specify in a .map file what post-processing to perform, and how, after 00023 // loading a gdb file or importing data into gdb format. This is different from 00024 // the other metafile records in that it does not deal with loading/importing at 00025 // all, but rather specifies post-processing options, performed after load/import 00026 // are complete. 00027 class DT_DLL_terrainDbFactory DtGdbProcessingMetafileRecord : public DtMetafileRecord 00028 { 00029 00030 public: 00031 00032 // default constructor. 00033 DtGdbProcessingMetafileRecord(); 00034 00035 // destructor 00036 virtual ~DtGdbProcessingMetafileRecord(); 00037 00038 // copy constructor 00039 DtGdbProcessingMetafileRecord(const DtGdbProcessingMetafileRecord& orig); 00040 00041 // assignment operator 00042 DtGdbProcessingMetafileRecord& operator=(const DtGdbProcessingMetafileRecord& orig); 00043 00044 // Returns DtConfigTerrainProcessType 00045 virtual DtConfigCategoryType recordCategory() const; 00046 00047 // Returns the type name for the particular record. 00048 // In this case, "gdbProcessing" 00049 virtual DtString recordTypeName() const; 00050 00051 virtual DtTerrainDatabaseToolConfiguration terrainDbConfig() const; 00052 virtual void setTerrainDbConfig( 00053 const DtTerrainDatabaseToolConfiguration& newTerrainDbConfig); 00054 00055 // Read self from stream. 00056 virtual bool get(std::istream& stream); 00057 00058 // identifies a token or passes it to the parent class. 00059 virtual bool processToken(std::istream& stream, DtString& token); 00060 00061 static DtMetafileRecord* create(); 00062 00063 protected: 00064 // Write self to stream. 00065 virtual bool writeAttributes(std::ostream& stream) const; 00066 virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0); 00067 virtual bool setToken(const DtString& token, const DtString value); 00068 00069 protected: 00070 00071 static const DtString theEnableSpatialSubdivision; 00072 static const DtString theSsXresolution; 00073 static const DtString theSsYresolution; 00074 static const DtString theSsZresolution; 00075 static const DtString theBalanceTerrain; 00076 static const DtString theLeafingFactor; 00077 static const DtString theBranchingFactor; 00078 static const DtString theReduceTerrain; 00079 static const DtString theReductionTolerance; 00080 static const DtString theCollapseCoordinateSystemNodes; 00081 static const DtString theConvertToGeocentric; 00082 static const DtString theClipVectorData; 00083 static const DtString thePlanarizeVectorData; 00084 static const DtString thePlanarizeTolerance; 00085 static const DtString thePlanarizeExcessiveEdgeCount; 00086 00087 DtTerrainDatabaseToolConfiguration myTerrainDbToolConfiguration; 00088 }; 00089 00090 #endif 00091