VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtImageHeaderParser.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtImageHeaderParser.h,v $ $Revision: 1.6 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtImageHeaderParser_H_
14 #define DtImageHeaderParser_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtHeaderParser.h>
18 
19 namespace makVrv
20 {
25  {
26 
27  public:
28 
30  DtImageHeaderParser(DtDe& de, const std::string& filePath);
31 
33  virtual ~DtImageHeaderParser();
34 
37  void setTerrainPatch(const std::string& patch);
38  const std::string& terrainPatch() const;
39 
41  virtual bool isValid();
42 
43  static void convertCorner(char* token, double& x, double& y, double& z);
44  static void parseInformation(const std::string& info,
45  double& sw_x, double& sw_y, double& sw_z, double& ne_x, double& ne_y, double& ne_z, int& blendMode, int& wrapMode);
46 
47  protected:
48 
53  void addTerrainPatchRecord(const std::string& filename);
54 
55  protected:
57  std::string myTerrainPatch;
58 
59  };
60 
64  {
65 
66  public:
67 
70 
72  virtual ~DtImageHeaderParserCreator();
73 
75  virtual DtHeaderParser* create(DtDe& de, const std::string& filePath) const;
76 
77  };
78 }
79 
80 #endif
81 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)