QwtRasterData(3)
π QwtRasterData π
okay bestie, welcome to the QwtRasterData page from the Qwt User's Guide β¨ this one's from the Qwt library, and she's an abstract queen π
β¨ NAME β¨
QwtRasterData β that's her. that's the name. no further notes, she needs no introduction π
πΈ SYNOPSIS πΈ
#include <qwt_raster_data.h>
Inherited by</purl> QwtPlotSpectrogram::PrivateData::DummyData π«Ά
π Public Types π
enum ConrecAttributeβ and the values are, exactly:
enum ConrecAttribute { IgnoreAllVerticesOnLevel = 1, IgnoreOutOfRange = 2 }
typedef QMap< double, QPolygonF > ContourLinesβ a whole typedef, slay π
π¦ Public Member Functions π¦
no cap, here's the full roster, nothing skipped:
QwtRasterData ()
QwtRasterData (const QwtDoubleRect &)
virtual ~QwtRasterData ()
QwtDoubleRect boundingRect () const
virtual ContourLines contourLines (const QwtDoubleRect &rect, const QSize &raster, const QList< double > &levels, int flags) const
virtual QwtRasterData * copy () const =0
virtual void discardRaster ()
virtual void initRaster (const QwtDoubleRect &, const QSize &raster)
virtual QwtDoubleInterval range () const =0
virtual QSize rasterHint (const QwtDoubleRect &) const
virtual void setBoundingRect (const QwtDoubleRect &)
virtual double value (double x, double y) const =0
notice all those =0 at the end?? that's the abstract-interface energy, you cannot instantiate this girl directly, she's a blueprint and a vibe π
π Detailed Description π
QwtRasterData defines an interface to any type of raster data. literally any. she's flexible like that π
QwtRasterData is an abstract interface, that is used by QwtPlotRasterItem to find the values at the pixels of its raster.
Often a raster item is used to display values from a matrix. Then the derived raster data class needs to implement some sort of resampling, that maps the raster of the matrix into the requested raster of the raster item ( depending on resolution and scales of the canvas ). iykyk π§
π Constructor & Destructor Documentation π
QwtRasterData::QwtRasterData (const QwtDoubleRect &boundingRect)
Constructor π
Parameters:
boundingRectβ Bounding rectangle
See also: setBoundingRect()
π Member Function Documentation π
QwtDoubleRect QwtRasterData::boundingRect () const
Returns:
- Bounding rectangle
See also: boundingRect() β yes bestie, she references herself, iconic behavior π
QwtRasterData::ContourLines QwtRasterData::contourLines (const QwtDoubleRect &rect, const QSize &raster, const QList< double > &levels, int flags) const [virtual]
Calculate contour lines β¨
An adaption of CONREC, a simple contouring algorithm.
http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/
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.
See also: initRaster(), value()
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.
Parameters:
rectβ Area of the rasterrasterβ Number of horizontal and vertical pixels
See also: initRaster(), value()
virtual QwtDoubleInterval QwtRasterData::range () const [pure virtual]
Returns:
- the range of the values
pure virtual, so if you're inheriting from her, this one is mandatory, no skipping bestie π
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) π
Parameters:
rectβ In most implementations the resolution of the data doesn't depend on the requested rectangle.
Returns:
- Resolution, as number of horizontal and vertical pixels
void QwtRasterData::setBoundingRect (const QwtDoubleRect &boundingRect) [virtual]
Set the bounding rect ( == area, un plot coordinates )
Parameters:
boundingRectβ Bounding rectangle
See also: boundingRect()
virtual double QwtRasterData::value (double x, double y) const [pure virtual]
Returns:
- the value at a raster position
Parameters:
xβ X value in plot coordinatesyβ Y value in plot coordinates
another pure virtual β she's asking you, the derived class, to do the actual work. main character energy, honestly π
β Author β
Generated automatically by Doxygen for Qwt User's Guide from the source code.
and that's the whole page, bestie, every flag, every signature, every see-also, not a single crumb left behind π«Ά
Version 5.2.3 β dated Tue Nov 20 2012 β from the Qwt User's Guide. mwah, go build something gorgeous with it πβ¨π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms