qwt_raster_data.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
10 #ifndef QWT_RASTER_DATA_H
11 #define QWT_RASTER_DATA_H 1
12 
13 #include "qwt_global.h"
14 #include "qwt_interval.h"
15 #include <qmap.h>
16 #include <qlist.h>
17 #include <qpolygon.h>
18 
19 class QwtScaleMap;
20 
41 {
42 public:
44  typedef QMap<double, QPolygonF> ContourLines;
45 
52  enum Attribute
53  {
69  WithoutGaps = 0x01
70  };
71 
73  typedef QFlags<Attribute> Attributes;
74 
77  {
79  IgnoreAllVerticesOnLevel = 0x01,
80 
82  IgnoreOutOfRange = 0x02
83  };
84 
86  typedef QFlags<ConrecFlag> ConrecFlags;
87 
88  QwtRasterData();
89  virtual ~QwtRasterData();
90 
91  void setAttribute( Attribute, bool on = true );
92  bool testAttribute( Attribute ) const;
93 
98  virtual QwtInterval interval( Qt::Axis ) const = 0;
99 
100  virtual QRectF pixelHint( const QRectF & ) const;
101 
102  virtual void initRaster( const QRectF &, const QSize& raster );
103  virtual void discardRaster();
104 
110  virtual double value( double x, double y ) const = 0;
111 
112  virtual ContourLines contourLines( const QRectF &rect,
113  const QSize &raster, const QList<double> &levels,
114  ConrecFlags ) const;
115 
116  class Contour3DPoint;
117  class ContourPlane;
118 
119 private:
120  Q_DISABLE_COPY(QwtRasterData)
121 
122  class PrivateData;
123  PrivateData *d_data;
124 };
125 
126 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtRasterData::ConrecFlags )
127 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtRasterData::Attributes )
128 
129 #endif
A class representing an interval.
Definition: qwt_interval.h:26
#define QWT_EXPORT
Definition: qwt_global.h:38
Attribute
Raster data attributes.
ConrecFlag
Flags to modify the contour algorithm.
QMap< double, QPolygonF > ContourLines
Contour lines.
T value
A scale map.
Definition: qwt_scale_map.h:30
QFlags< ConrecFlag > ConrecFlags
Flags to modify the contour algorithm.
QwtRasterData defines an interface to any type of raster data.
QFlags< Attribute > Attributes
Raster data Attributes.


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17