UltraScan III
List of all members | Public Member Functions | Private Attributes
US_SpectrogramData Class Reference

Class derived from QwtRasterData to supply QwtPlotSpectrogram data. More...

#include "us_spectrodata.h"

Inheritance diagram for US_SpectrogramData:
Inheritance graph
[legend]
Collaboration diagram for US_SpectrogramData:
Collaboration graph
[legend]

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...
 

Detailed Description

Class derived from QwtRasterData to supply QwtPlotSpectrogram data.

Definition at line 33 of file us_spectrodata.h.

Constructor & Destructor Documentation

US_SpectrogramData::US_SpectrogramData ( )

SpectroGram Data constructor.

Definition at line 10 of file us_spectrodata.cpp.

US_SpectrogramData::US_SpectrogramData ( QwtDoubleRect &  )

SpectroGram Data constructor.

Member Function Documentation

QwtRasterData * US_SpectrogramData::copy ( ) const
virtual

Return a copy of SpectroGram Data.

Definition at line 23 of file us_spectrodata.cpp.

void US_SpectrogramData::initRaster ( QwtDoubleRect &  drect,
QSize &  rsiz 
)
virtual

Called to get data ranges and raster size in pixels.

Parameters
drectData rectangle (x-min,y-min,x-range,y-range)
rsizRaster size (nbr-x-per-scan,nbr-y-scans)

Definition at line 34 of file us_spectrodata.cpp.

QwtDoubleInterval US_SpectrogramData::range ( ) const
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.

Parameters
soluPointer 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.

Parameters
a_xresX resolution, the real X extent in pixels.
a_yresY resolution, the real Y extent in pixels.
a_resoResolution, the factor used in Gaussian (default=90.0).
a_zfloorFloor percent of Z-range to add below Z-minimum.
a_drectiData 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.

Parameters
a_zminZ minimum constant value.
a_zmaxZ maximum constant value.

Definition at line 68 of file us_spectrodata.cpp.

double US_SpectrogramData::value ( double  x,
double  y 
) const
virtual

Called by QwtPlot to get the Z-value at each X,Y pixel location.

Parameters
xThe real X pixel location for which to fetch Z.
yThe real Y pixel location for which to fetch Z.
Returns
The real Z value for raster location X,Y.

Definition at line 76 of file us_spectrodata.cpp.

QwtDoubleInterval US_SpectrogramData::xrange ( )

Fetch the X data range.

Returns
Interval( x-min, x-max )

Definition at line 41 of file us_spectrodata.cpp.

QwtDoubleInterval US_SpectrogramData::yrange ( )

Fetch the Y data range.

Returns
Interval( y-min, y-max )

Definition at line 47 of file us_spectrodata.cpp.

Member Data Documentation

int US_SpectrogramData::dbg_level
private

debug level value for conditional qDebug()

Definition at line 115 of file us_spectrodata.h.

QwtDoubleRect US_SpectrogramData::drecti
private

Data rectangle for x,y plot ranges.

Definition at line 94 of file us_spectrodata.h.

int US_SpectrogramData::nxpsc
private

integral number of X pixels per scan

Definition at line 112 of file us_spectrodata.h.

int US_SpectrogramData::nxypt
private

total number of X,Y points in raster

Definition at line 114 of file us_spectrodata.h.

int US_SpectrogramData::nyscn
private

integral number of Y scans

Definition at line 113 of file us_spectrodata.h.

QList< double > US_SpectrogramData::rdata
private

Raster data: z-values at each pixel.

Definition at line 93 of file us_spectrodata.h.

double US_SpectrogramData::resol
private

resolution parameter for Gaussian

Definition at line 109 of file us_spectrodata.h.

double US_SpectrogramData::xinc
private

X increment (xreso-1)/xrng.

Definition at line 99 of file us_spectrodata.h.

double US_SpectrogramData::xmax
private

X maximum.

Definition at line 97 of file us_spectrodata.h.

double US_SpectrogramData::xmin
private

X minimum.

Definition at line 96 of file us_spectrodata.h.

double US_SpectrogramData::xreso
private

number of X pixels per scan

Definition at line 107 of file us_spectrodata.h.

double US_SpectrogramData::xrng
private

X data range (xmax-xmin)

Definition at line 98 of file us_spectrodata.h.

double US_SpectrogramData::yinc
private

Y increment (yreso-1)/xrng.

Definition at line 103 of file us_spectrodata.h.

double US_SpectrogramData::ymax
private

Y maximum.

Definition at line 101 of file us_spectrodata.h.

double US_SpectrogramData::ymin
private

Y minimum.

Definition at line 100 of file us_spectrodata.h.

double US_SpectrogramData::yreso
private

number of Y scans

Definition at line 108 of file us_spectrodata.h.

double US_SpectrogramData::yrng
private

Y data range (ymax-ymin)

Definition at line 102 of file us_spectrodata.h.

double US_SpectrogramData::zfloor
private

floor percent below z minimum

Definition at line 110 of file us_spectrodata.h.

double US_SpectrogramData::zmax
private

Z maximum.

Definition at line 105 of file us_spectrodata.h.

double US_SpectrogramData::zmin
private

Z minimum.

Definition at line 104 of file us_spectrodata.h.

double US_SpectrogramData::zminr
private

Z minimum in raster w floor adjust.

Definition at line 106 of file us_spectrodata.h.


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