![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtGeoTiffHeaderParser.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtGeoTiffHeaderParser_H_ 00014 #define DtGeoTiffHeaderParser_H_ 00015 00016 #include <vrvCore/vrvCore.h> 00017 #include <vrvCore/DtImageHeaderParser.h> 00018 00019 namespace makVrv 00020 { 00023 class DT_DLL_VRVCORE DtGeoTiffHeaderParser : public DtImageHeaderParser 00024 { 00025 00026 public: 00027 00029 DtGeoTiffHeaderParser(DtDe& de, const std::string& filePath); 00030 00032 virtual ~DtGeoTiffHeaderParser(); 00033 00035 virtual bool isValid(); 00036 00038 virtual bool geotiffExtent(const char* filename,double *sw_x, double *sw_y, 00039 double *ne_x, double *ne_y); 00040 00041 protected: 00042 typedef const char* (*CSVFileCallbackFP)(const char*); 00043 00045 static const char* csvFileCallback(const char*); 00046 00048 static std::string theCsvFilePath; 00049 }; 00050 00053 class DT_DLL_VRVCORE DtGeoTiffHeaderParserCreator : public DtHeaderParserCreator 00054 { 00055 00056 public: 00057 00059 DtGeoTiffHeaderParserCreator(); 00060 00062 virtual ~DtGeoTiffHeaderParserCreator(); 00063 00065 virtual DtHeaderParser* create(DtDe& de, const std::string& filePath) const; 00066 00067 }; 00068 } 00069 00070 #endif 00071