Eneboo - Documentación para desarrolladores
|
QwtRasterData defines an interface to any type of raster data. Más...
#include <qwt_raster_data.h>
Clases | |
class | Contour3DPoint |
class | ContourPlane |
Tipos públicos | |
enum | ConrecAttribute { IgnoreAllVerticesOnLevel = 1, IgnoreOutOfRange = 2 } |
typedef QMap< double, QwtArray < QwtDoublePoint > > | ContourLines |
Métodos públicos | |
QwtRasterData () | |
QwtRasterData (const QwtDoubleRect &) | |
virtual | ~QwtRasterData () |
virtual QwtRasterData * | copy () const =0 |
Clone the data. | |
virtual void | setBoundingRect (const QwtDoubleRect &) |
QwtDoubleRect | boundingRect () const |
virtual QSize | rasterHint (const QwtDoubleRect &) const |
Find the raster of the data for an area. | |
virtual void | initRaster (const QwtDoubleRect &, const QSize &raster) |
Initialize a raster. | |
virtual void | discardRaster () |
Discard a raster. | |
virtual double | value (double x, double y) const =0 |
virtual QwtDoubleInterval | range () const =0 |
virtual ContourLines | contourLines (const QwtDoubleRect &rect, const QSize &raster, const QValueList< double > &levels, int flags) const |
QwtRasterData defines an interface to any type of raster data.
typedef QMap<double, QwtArray<QwtDoublePoint> > QwtRasterData::ContourLines |
QwtRasterData::QwtRasterData | ( | ) |
QwtRasterData::QwtRasterData | ( | const QwtDoubleRect & | boundingRect | ) |
QwtRasterData::~QwtRasterData | ( | ) | [virtual] |
QwtDoubleRect QwtRasterData::boundingRect | ( | ) | const |
QwtRasterData::ContourLines QwtRasterData::contourLines | ( | const QwtDoubleRect & | rect, |
const QSize & | raster, | ||
const QValueList< double > & | levels, | ||
int | flags | ||
) | const [virtual] |
Calculate contour lines
An adaption of CONREC, a simple contouring algorithm. http://astronomy.swin.edu.au/~pbourke/projection/conrec
virtual QwtRasterData* QwtRasterData::copy | ( | ) | const [pure virtual] |
Clone the data.
Implementado en QwtPlotSpectrogram::PrivateData::DummyData.
void QwtRasterData::discardRaster | ( | ) | [virtual] |
Discard a raster.
After the composition of an image QwtPlotSpectrogram calls discardRaster().
The default implementation does nothing, but if data has been loaded in initRaster(), it could deleted now.
void QwtRasterData::initRaster | ( | const QwtDoubleRect & | , |
const QSize & | raster | ||
) | [virtual] |
Initialize a raster.
Before the composition of an image QwtPlotSpectrogram calls initRaster, announcing the area and its resolution that will be requested.
The default implementation does nothing, but for data sets that are stored in files, it might be good idea to reimplement initRaster, where the data is resampled and loaded into memory.
rect | Area of the raster |
raster | Number of horizontal and vertical pixels |
virtual QwtDoubleInterval QwtRasterData::range | ( | ) | const [pure virtual] |
Implementado en QwtPlotSpectrogram::PrivateData::DummyData.
QSize QwtRasterData::rasterHint | ( | const QwtDoubleRect & | ) | const [virtual] |
Find the raster of the data for an area.
The resolution is the number of horizontal and vertical pixels that the data can return for an area. An invalid resolution indicates that the data can return values for any detail level.
The resolution will limit the size of the image that is rendered from the data. F.e. this might be important when printing a spectrogram to a A0 printer with 600 dpi.
The default implementation returns an invalid resolution (size)
rect | In most implementations the resolution of the data doesn't depend on the requested rectangle. |
void QwtRasterData::setBoundingRect | ( | const QwtDoubleRect & | boundingRect | ) | [virtual] |
virtual double QwtRasterData::value | ( | double | x, |
double | y | ||
) | const [pure virtual] |
Implementado en QwtPlotSpectrogram::PrivateData::DummyData.