|
| | QwtPlotSpectrogram (const QString &title=QString()) |
| | Sets the following item attributes:
|
| |
|
virtual | ~QwtPlotSpectrogram () |
| | Destructor.
|
| |
| void | setDisplayMode (DisplayMode, bool on=true) |
| | The display mode controls how the raster data will be represented.
|
| |
| bool | testDisplayMode (DisplayMode) const |
| | The display mode controls how the raster data will be represented.
|
| |
| void | setData (QwtRasterData *data) |
| | Set the data to be displayed.
|
| |
| const QwtRasterData * | data () const |
| |
| QwtRasterData * | data () |
| |
| void | setColorMap (QwtColorMap *) |
| | Change the color map.
|
| |
| const QwtColorMap * | colorMap () const |
| |
| void | setColorTableSize (int numColors) |
| | Limit the number of colors being used by the color map.
|
| |
| int | colorTableSize () const |
| |
| virtual QwtInterval | interval (Qt::Axis) const QWT_OVERRIDE |
| |
| virtual QRectF | pixelHint (const QRectF &) const QWT_OVERRIDE |
| | Pixel hint.
|
| |
| void | setDefaultContourPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign the default pen for the contour lines.
|
| |
| void | setDefaultContourPen (const QPen &) |
| | Set the default pen for the contour lines.
|
| |
| QPen | defaultContourPen () const |
| |
| virtual QPen | contourPen (double level) const |
| | Calculate the pen for a contour line.
|
| |
| void | setConrecFlag (QwtRasterData::ConrecFlag, bool on) |
| | Modify an attribute of the CONREC algorithm, used to calculate the contour lines.
|
| |
| bool | testConrecFlag (QwtRasterData::ConrecFlag) const |
| | Test an attribute of the CONREC algorithm, used to calculate the contour lines.
|
| |
| void | setContourLevels (const QList< double > &) |
| | Set the levels of the contour lines.
|
| |
| QList< double > | contourLevels () const |
| |
| virtual int | rtti () const QWT_OVERRIDE |
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE |
| | Draw the spectrogram.
|
| |
|
| QwtPlotRasterItem (const QString &title=QString()) |
| | Constructor.
|
| |
|
| QwtPlotRasterItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotRasterItem () |
| | Destructor.
|
| |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| | Specify an attribute how to draw the raster item.
|
| |
| bool | testPaintAttribute (PaintAttribute) const |
| |
| void | setAlpha (int alpha) |
| | Set an alpha value for the raster data.
|
| |
| int | alpha () const |
| |
| void | setCachePolicy (CachePolicy) |
| | Change the cache policy.
|
| |
| CachePolicy | cachePolicy () const |
| |
| void | invalidateCache () |
| | Invalidate the paint cache.
|
| |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| |
|
| QwtPlotItem () |
| | Constructor.
|
| |
| | QwtPlotItem (const QString &title) |
| | Constructor.
|
| |
| | QwtPlotItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotItem () |
| | Destroy the QwtPlotItem.
|
| |
| void | attach (QwtPlot *plot) |
| | Attach the item to a plot.
|
| |
| void | detach () |
| | This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
|
| |
|
QwtPlot * | plot () const |
| | Return attached plot.
|
| |
| void | setTitle (const QString &title) |
| | Set a new title.
|
| |
| void | setTitle (const QwtText &title) |
| | Set a new title.
|
| |
| const QwtText & | title () const |
| |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| | Toggle an item attribute.
|
| |
| bool | testItemAttribute (ItemAttribute) const |
| | Test an item attribute.
|
| |
| void | setItemInterest (ItemInterest, bool on=true) |
| | Toggle an item interest.
|
| |
| bool | testItemInterest (ItemInterest) const |
| | Test an item interest.
|
| |
| void | setRenderHint (RenderHint, bool on=true) |
| | Toggle an render hint.
|
| |
| bool | testRenderHint (RenderHint) const |
| | Test a render hint.
|
| |
| void | setRenderThreadCount (uint numThreads) |
| | On multi core systems rendering of certain plot item ( f.e QwtPlotRasterItem ) can be done in parallel in several threads.
|
| |
| uint | renderThreadCount () const |
| |
| void | setLegendIconSize (const QSize &) |
| | Set the size of the legend icon.
|
| |
| QSize | legendIconSize () const |
| |
| double | z () const |
| | Plot items are painted in increasing z-order.
|
| |
| void | setZ (double z) |
| | Set the z value.
|
| |
|
void | show () |
| | Show the item.
|
| |
|
void | hide () |
| | Hide the item.
|
| |
| virtual void | setVisible (bool) |
| | Show/Hide the item.
|
| |
| bool | isVisible () const |
| |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| | Set X and Y axis.
|
| |
| void | setXAxis (QwtAxisId) |
| | Set the X axis.
|
| |
|
QwtAxisId | xAxis () const |
| | Return xAxis.
|
| |
| void | setYAxis (QwtAxisId) |
| | Set the Y axis.
|
| |
|
QwtAxisId | yAxis () const |
| | Return yAxis.
|
| |
| virtual void | itemChanged () |
| | Update the legend and call QwtPlot::autoRefresh() for the parent plot.
|
| |
| virtual void | legendChanged () |
| | Update the legend of the parent plot.
|
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| | Calculate a hint for the canvas margin.
|
| |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) |
| | Update the item to changes of the axes scale division.
|
| |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| | Update the item to changes of the legend info.
|
| |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding scale rectangle of 2 maps.
|
| |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding paint rectangle of 2 maps.
|
| |
| virtual QList< QwtLegendData > | legendData () const |
| | Return all information, that is needed to represent the item on the legend.
|
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const |
| |
|
| virtual QImage | renderImage (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &area, const QSize &imageSize) const QWT_OVERRIDE |
| | Render an image from data and color map.
|
| |
| virtual QSize | contourRasterSize (const QRectF &, const QRect &) const |
| | Return the raster to be used by the CONREC contour algorithm.
|
| |
| virtual QwtRasterData::ContourLines | renderContourLines (const QRectF &rect, const QSize &raster) const |
| | Calculate contour lines.
|
| |
| virtual void | drawContourLines (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtRasterData::ContourLines &) const |
| | Paint the contour lines.
|
| |
| void | renderTile (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &tile, QImage *) const |
| | Render a tile of an image.
|
| |
| virtual QwtScaleMap | imageMap (Qt::Orientation, const QwtScaleMap &map, const QRectF &area, const QSize &imageSize, double pixelSize) const |
| | Calculate a scale map for painting to an image.
|
| |
| QwtGraphic | defaultIcon (const QBrush &, const QSizeF &) const |
| | Return a default icon from a brush.
|
| |
A plot item, which displays a spectrogram.
A spectrogram displays 3-dimensional data, where the 3rd dimension ( the intensity ) is displayed using colors. The colors are calculated from the values using a color map.
On multi-core systems the performance of the image composition can often be improved by dividing the area into tiles - each of them rendered in a different thread ( see QwtPlotItem::setRenderThreadCount() ).
In ContourMode contour lines are painted for the contour levels.
- See also
- QwtRasterData, QwtColorMap, QwtPlotItem::setRenderThreadCount()