File: qwt3d_io_reader.h

package info (click to toggle)
qtiplot 0.9.8.9-15
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,196 kB
  • ctags: 15,690
  • sloc: cpp: 129,846; ansic: 5,781; python: 861; makefile: 56
file content (40 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef qwt3d_reader_h__2004_03_07_14_03_begin_guarded_code
#define qwt3d_reader_h__2004_03_07_14_03_begin_guarded_code

#include "qwt3d_io.h"

namespace Qwt3D
{

/*! 
Functor for reading of native files containing grid data. 
As a standart input functor associated with "mes" and "MES"
file extensions.   
*/
class QWT3D_EXPORT NativeReader : public IO::Functor
{
friend class IO;

public:		
  NativeReader();

private:
  //! Provides new NativeReader object. 
  IO::Functor* clone() const{return new NativeReader(*this);}
  //! Performs actual input
  bool operator()(Plot3D* plot, QString const& fname);
  bool operator()(QImage* plot, QString const& fname)
  {
	Q_UNUSED(plot); Q_UNUSED(fname); return false;		// Reading an image is not supported.
  }

  static const char* magicstring;
  double minz_, maxz_;
	bool collectInfo(FILE*& file, QString const& fname, unsigned& xmesh, unsigned& ymesh, 
									 double& minx, double& maxx, double& miny, double& maxy);
};


} // ns

#endif