Class derived from QwtRasterData to supply QwtPlotSpectrogram data. More...
#include "us_spectrodata.h"
Public Member Functions | |
US_SpectrogramData () | |
SpectroGram Data constructor. More... | |
US_SpectrogramData (QwtDoubleRect &) | |
SpectroGram Data constructor. More... | |
virtual QwtRasterData * | copy () const |
Return a copy of SpectroGram Data. More... | |
virtual QwtDoubleInterval | range () const |
Return the Z range (minimum,maximum pair) More... | |
virtual void | initRaster (QwtDoubleRect &, QSize &) |
Called to get data ranges and raster size in pixels. More... | |
QwtDoubleInterval | xrange () |
Fetch the X data range. More... | |
QwtDoubleInterval | yrange () |
Fetch the Y data range. More... | |
void | setRastRanges (double, double, double, double, QwtDoubleRect) |
Sets up ranges and controls for the raster data to come. More... | |
void | setZRange (double, double) |
Set constant Z range for manual scale. More... | |
virtual double | value (double, double) const |
Called by QwtPlot to get the Z-value at each X,Y pixel location. More... | |
void | setRaster (QList< S_Solute > *) |
Sets up the internal raster, based on a set of Solute points. More... | |
Private Attributes | |
QList< double > | rdata |
Raster data: z-values at each pixel. More... | |
QwtDoubleRect | drecti |
Data rectangle for x,y plot ranges. More... | |
double | xmin |
X minimum. More... | |
double | xmax |
X maximum. More... | |
double | xrng |
X data range (xmax-xmin) More... | |
double | xinc |
X increment (xreso-1)/xrng. More... | |
double | ymin |
Y minimum. More... | |
double | ymax |
Y maximum. More... | |
double | yrng |
Y data range (ymax-ymin) More... | |
double | yinc |
Y increment (yreso-1)/xrng. More... | |
double | zmin |
Z minimum. More... | |
double | zmax |
Z maximum. More... | |
double | zminr |
Z minimum in raster w floor adjust. More... | |
double | xreso |
number of X pixels per scan More... | |
double | yreso |
number of Y scans More... | |
double | resol |
resolution parameter for Gaussian More... | |
double | zfloor |
floor percent below z minimum More... | |
int | nxpsc |
integral number of X pixels per scan More... | |
int | nyscn |
integral number of Y scans More... | |
int | nxypt |
total number of X,Y points in raster More... | |
int | dbg_level |
debug level value for conditional qDebug() More... | |
Class derived from QwtRasterData to supply QwtPlotSpectrogram data.
Definition at line 33 of file us_spectrodata.h.
US_SpectrogramData::US_SpectrogramData | ( | ) |
SpectroGram Data constructor.
Definition at line 10 of file us_spectrodata.cpp.
US_SpectrogramData::US_SpectrogramData | ( | QwtDoubleRect & | ) |
SpectroGram Data constructor.
|
virtual |
Return a copy of SpectroGram Data.
Definition at line 23 of file us_spectrodata.cpp.
|
virtual |
Called to get data ranges and raster size in pixels.
drect | Data rectangle (x-min,y-min,x-range,y-range) |
rsiz | Raster size (nbr-x-per-scan,nbr-y-scans) |
Definition at line 34 of file us_spectrodata.cpp.
|
virtual |
Return the Z range (minimum,maximum pair)
Definition at line 28 of file us_spectrodata.cpp.
void US_SpectrogramData::setRaster | ( | QList< S_Solute > * | solu | ) |
Sets up the internal raster, based on a set of Solute points.
solu | Pointer to list of solution points for the current distribution. |
Definition at line 117 of file us_spectrodata.cpp.
void US_SpectrogramData::setRastRanges | ( | double | a_xres, |
double | a_yres, | ||
double | a_reso, | ||
double | a_zfloor, | ||
QwtDoubleRect | a_drecti | ||
) |
Sets up ranges and controls for the raster data to come.
a_xres | X resolution, the real X extent in pixels. |
a_yres | Y resolution, the real Y extent in pixels. |
a_reso | Resolution, the factor used in Gaussian (default=90.0). |
a_zfloor | Floor percent of Z-range to add below Z-minimum. |
a_drecti | Data plot value ranges |
Definition at line 53 of file us_spectrodata.cpp.
void US_SpectrogramData::setZRange | ( | double | a_zmin, |
double | a_zmax | ||
) |
Set constant Z range for manual scale.
a_zmin | Z minimum constant value. |
a_zmax | Z maximum constant value. |
Definition at line 68 of file us_spectrodata.cpp.
|
virtual |
Called by QwtPlot to get the Z-value at each X,Y pixel location.
x | The real X pixel location for which to fetch Z. |
y | The real Y pixel location for which to fetch Z. |
Definition at line 76 of file us_spectrodata.cpp.
QwtDoubleInterval US_SpectrogramData::xrange | ( | ) |
Fetch the X data range.
Definition at line 41 of file us_spectrodata.cpp.
QwtDoubleInterval US_SpectrogramData::yrange | ( | ) |
Fetch the Y data range.
Definition at line 47 of file us_spectrodata.cpp.
|
private |
debug level value for conditional qDebug()
Definition at line 115 of file us_spectrodata.h.
|
private |
Data rectangle for x,y plot ranges.
Definition at line 94 of file us_spectrodata.h.
|
private |
integral number of X pixels per scan
Definition at line 112 of file us_spectrodata.h.
|
private |
total number of X,Y points in raster
Definition at line 114 of file us_spectrodata.h.
|
private |
integral number of Y scans
Definition at line 113 of file us_spectrodata.h.
|
private |
Raster data: z-values at each pixel.
Definition at line 93 of file us_spectrodata.h.
|
private |
resolution parameter for Gaussian
Definition at line 109 of file us_spectrodata.h.
|
private |
X increment (xreso-1)/xrng.
Definition at line 99 of file us_spectrodata.h.
|
private |
X maximum.
Definition at line 97 of file us_spectrodata.h.
|
private |
X minimum.
Definition at line 96 of file us_spectrodata.h.
|
private |
number of X pixels per scan
Definition at line 107 of file us_spectrodata.h.
|
private |
X data range (xmax-xmin)
Definition at line 98 of file us_spectrodata.h.
|
private |
Y increment (yreso-1)/xrng.
Definition at line 103 of file us_spectrodata.h.
|
private |
Y maximum.
Definition at line 101 of file us_spectrodata.h.
|
private |
Y minimum.
Definition at line 100 of file us_spectrodata.h.
|
private |
number of Y scans
Definition at line 108 of file us_spectrodata.h.
|
private |
Y data range (ymax-ymin)
Definition at line 102 of file us_spectrodata.h.
|
private |
floor percent below z minimum
Definition at line 110 of file us_spectrodata.h.
|
private |
Z maximum.
Definition at line 105 of file us_spectrodata.h.
|
private |
Z minimum.
Definition at line 104 of file us_spectrodata.h.
|
private |
Z minimum in raster w floor adjust.
Definition at line 106 of file us_spectrodata.h.