Public Member Functions | |
| QwtPlotSpectrogramImage (const QSize &size, QwtColorMap::Format format) | |
| QwtPlotSpectrogramImage (const QImage &other) | |
| void | initColorTable (const QImage &other) |
| void | setColorTable (const QwtColorTable &colorTable) |
| QwtColorTable | colorTable () const |
Definition at line 25 of file qwt_plot_spectrogram.cpp.
| QwtPlotSpectrogramImage::QwtPlotSpectrogramImage | ( | const QSize & | size, |
| QwtColorMap::Format | format | ||
| ) | [inline] |
Definition at line 29 of file qwt_plot_spectrogram.cpp.
: #if QT_VERSION < 0x040000 QImage(size, format == QwtColorMap::RGB ? 32 : 8) #else QImage(size, format == QwtColorMap::RGB ? QImage::Format_ARGB32 : QImage::Format_Indexed8 ) #endif { }
| QwtPlotSpectrogramImage::QwtPlotSpectrogramImage | ( | const QImage & | other ) | [inline] |
Definition at line 39 of file qwt_plot_spectrogram.cpp.
:
QImage(other)
{
}
| QwtColorTable QwtPlotSpectrogramImage::colorTable | ( | ) | const [inline] |
Definition at line 66 of file qwt_plot_spectrogram.cpp.
{
QwtColorTable table(numColors());
for ( int i = 0; i < numColors(); i++ )
table[i] = color(i);
return table;
}
| void QwtPlotSpectrogramImage::initColorTable | ( | const QImage & | other ) | [inline] |
Definition at line 44 of file qwt_plot_spectrogram.cpp.
References setColorTable().
{
#if QT_VERSION < 0x040000
const unsigned int numColors = other.numColors();
setNumColors(numColors);
for ( unsigned int i = 0; i < numColors; i++ )
setColor(i, other.color(i));
#else
setColorTable(other.colorTable());
#endif
}
| void QwtPlotSpectrogramImage::setColorTable | ( | const QwtColorTable & | colorTable ) | [inline] |
Definition at line 59 of file qwt_plot_spectrogram.cpp.
Referenced by initColorTable().
{
setNumColors(colorTable.size());
for ( unsigned int i = 0; i < colorTable.size(); i++ )
setColor(i, colorTable[i]);
}
1.7.2