Logo Search packages:      
Sourcecode: pcp-gui version File versions

QwtPlotRasterItem Class Reference

#include <qwt_plot_rasteritem.h>

Inheritance diagram for QwtPlotRasterItem:

QwtPlotItem QwtPlotSpectrogram

List of all members.


Detailed Description

A class, which displays raster data.

Raster data is a grid of pixel values, that can be represented as a QImage. It is used for many types of information like spectrograms, cartograms, geographical maps ...

Often a plot has several types of raster data organized in layers. ( f.e a geographical map, with weather statistics ). Using setAlpha() raster items can be stacked easily.

QwtPlotRasterItem is only implemented for images of the following formats: QImage::Format_Indexed8, QImage::Format_ARGB32.

See also:
QwtPlotSpectrogram

Definition at line 36 of file qwt_plot_rasteritem.h.


Public Types

enum  CachePolicy { NoCache, PaintCache, ScreenCache }
enum  ItemAttribute { Legend = 1, AutoScale = 2 }
enum  RttiValues {
  Rtti_PlotItem = 0, Rtti_PlotGrid, Rtti_PlotMarker, Rtti_PlotCurve,
  Rtti_PlotHistogram, Rtti_PlotSpectrogram, Rtti_PlotSVG, Rtti_PlotUserItem = 1000
}

Public Member Functions

int alpha () const
void attach (QwtPlot *plot)
virtual QwtDoubleRect boundingRect () const
CachePolicy cachePolicy () const
void detach ()
virtual void draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const
 Draw the raster data.
void hide ()
void invalidateCache ()
QwtDoubleRect invTransform (const QwtScaleMap &, const QwtScaleMap &, const QRect &) const
bool isVisible () const
virtual void itemChanged ()
virtual QWidget * legendItem () const
 Allocate the widget that represents the item on the legend.
QRect paintRect (const QwtScaleMap &, const QwtScaleMap &) const
 Calculate the bounding paint rect of 2 maps.
QwtPlotplot () const
 Return attached plot.
 QwtPlotRasterItem (const QwtText &title)
 Constructor.
 QwtPlotRasterItem (const QString &title=QString::null)
 Constructor.
virtual QSize rasterHint (const QwtDoubleRect &) const
 Returns the recommended raster for a given rect.
virtual int rtti () const
QwtDoubleRect scaleRect (const QwtScaleMap &, const QwtScaleMap &) const
 Calculate the bounding scale rect of 2 maps.
void setAlpha (int alpha)
 Set an alpha value for the raster data.
void setAxis (int xAxis, int yAxis)
void setCachePolicy (CachePolicy)
void setItemAttribute (ItemAttribute, bool on=true)
void setTitle (const QwtText &title)
void setTitle (const QString &title)
virtual void setVisible (bool)
void setXAxis (int axis)
void setYAxis (int axis)
void setZ (double z)
 Set the z value.
void show ()
bool testItemAttribute (ItemAttribute) const
const QwtTexttitle () const
QRect transform (const QwtScaleMap &, const QwtScaleMap &, const QwtDoubleRect &) const
virtual void updateLegend (QwtLegend *) const
 Update the widget that represents the item on the legend.
virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &)
 Update the item to changes of the axes scale division.
int xAxis () const
 Return xAxis.
int yAxis () const
 Return yAxis.
double z () const
virtual ~QwtPlotRasterItem ()
 Destructor.

Protected Member Functions

virtual QImage renderImage (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QwtDoubleRect &area) const =0

Private Member Functions

void init ()
QwtPlotRasterItemoperator= (const QwtPlotRasterItem &)
 QwtPlotRasterItem (const QwtPlotRasterItem &)

Private Attributes

PrivateData * d_data

Classes

class  PrivateData

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index