VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtImageHeaderParser.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtImageHeaderParser.h,v $ $Revision: 1.6 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtImageHeaderParser_H_
00014 #define DtImageHeaderParser_H_
00015 
00016 #include <vrvCore/vrvCore.h>
00017 #include <vrvCore/DtHeaderParser.h>
00018 
00019 namespace makVrv
00020 {
00024    class DT_DLL_VRVCORE DtImageHeaderParser : public DtHeaderParser
00025    {
00026 
00027    public:
00028 
00030       DtImageHeaderParser(DtDe& de, const std::string& filePath);
00031 
00033       virtual ~DtImageHeaderParser();
00034 
00037       void setTerrainPatch(const std::string& patch);
00038       const std::string& terrainPatch() const;
00039 
00041       virtual bool isValid();
00042 
00043       static void convertCorner(char* token, double& x, double& y, double& z);
00044       static void parseInformation(const std::string& info,
00045          double& sw_x, double& sw_y, double& sw_z, double& ne_x, double& ne_y, double& ne_z, int& blendMode, int& wrapMode);
00046 
00047    protected:
00048 
00053       void addTerrainPatchRecord(const std::string& filename);
00054 
00055    protected:
00056       DtDe& myDe;
00057       std::string myTerrainPatch;
00058 
00059    };
00060 
00063    class DT_DLL_VRVCORE DtImageHeaderParserCreator : public DtHeaderParserCreator
00064    {
00065 
00066    public:     
00067 
00069       DtImageHeaderParserCreator();
00070 
00072       virtual ~DtImageHeaderParserCreator();
00073 
00075       virtual DtHeaderParser* create(DtDe& de, const std::string& filePath) const;
00076 
00077    };
00078 }
00079 
00080 #endif
00081 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)