![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: dfadReader.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef dfadReader_H_ 00009 #define dfadReader_H_ 00010 00011 00012 // 00013 // \file dfadReader.h 00014 // \brief The file contains the DtDfadReader class declaration. 00015 00016 #include "dted/dtedDefines.h" 00017 #include "gdb/vectorDataReader.h" 00018 #include "dted/dfad_data.h" 00019 #include <vlutil/vlFilename.h> 00020 00021 00022 class DtTerrainDatabase; 00023 class DtVectorDataInitializer; 00024 class DtDfadInitializer; 00025 00026 00027 // This class is responsible for importing DFAD data into our internal vector network format. 00028 class DT_DLL_dted DtDfadReader : public DtVectorDataReader 00029 { 00030 public: 00031 // constructor 00032 DtDfadReader(); 00033 00034 // destructor 00035 virtual ~DtDfadReader(); 00036 00037 // Imports DFAD data into the specified terrain database, using the specified 00038 // path and initialization parameters. 00039 // \return A boolean indicating success or failure in importing the DFAD data. 00040 virtual bool importVectorData(const DtFilename& path, 00041 DtTerrainDatabase* terrain, 00042 DtVectorDataInitializer* myInit); 00043 00044 virtual DtString dataType(); 00045 00046 static DtVectorDataReader* create(); 00047 00048 protected: 00049 00050 virtual bool read(DtFilename myFilename, DtDfadData &data); 00051 }; 00052 00053 inline DtString DtDfadReader::dataType() 00054 { 00055 return "dfad"; 00056 } 00057 00058 #endif