Implementation of the abstract QwtRasterData Class,.
More...
#include <rasterdata.h>
|
| RasterData (int data_array_xsize, int data_array_ysize) |
| constructor: only sets array size; background value, axis and data range are set to default values and need to be changed by their functions More...
|
|
virtual QwtRasterData * | copy () const |
|
virtual QwtDoubleInterval | range () const |
| implemented method of abstract QwtRasterData, reads min and max data value More...
|
|
virtual double | value (double x, double y) const |
| implemented method of abstract QwtRasterData, More...
|
|
void | set_data_range (double data_array_min, double data_array_max) |
| sets min and max occuring value in data array More...
|
|
void | set_axis (double xaxis_min, double yaxis_min, double xaxis_max, double yaxis_max) |
| sets min and max axis values for the painting area (BoundingRect) in axis scale coordinates (not pixels!), defines the axis scales
|
|
void | set_data (double **array) |
| sets data array to be displayed @**array pointer to 2d array, call by reference!
|
|
void | reset_pixel_counter () |
| resets pixel counter, required to check for the plot size in pixels
|
|
int | get_pixels_x () |
| reads pixel counter (x) , required to check for the plot size (x) in pixels
|
|
int | get_pixels_y () |
| reads pixel counter (y) , required to check for the plot size (y) in pixels
|
|
void | set_background_value (double background_value) |
| sets value for background areas, required to fill rightmost area (bug workaround)
|
|
void | read_stuff () |
| function for debugging, reads class members
|
|
|
double ** | data_array_ |
|
int | data_array_xsize_ |
|
int | data_array_ysize_ |
|
double | data_array_min_ |
|
double | data_array_max_ |
|
double | xaxis_min_ |
|
double | yaxis_min_ |
|
double | xaxis_max_ |
|
double | yaxis_max_ |
|
double | axis2index_x_ |
|
double | axis2index_y_ |
|
double | background_value_ |
|
Implementation of the abstract QwtRasterData Class,.
- unfortunately QwtRasterData is not designed for plots, where each data is mapped to exactly one pixel
- some dirty hacks were neccessary to implement the desired behaviour
RasterData::RasterData |
( |
int |
data_array_xsize, |
|
|
int |
data_array_ysize |
|
) |
| |
|
inline |
constructor: only sets array size; background value, axis and data range are set to default values and need to be changed by their functions
- Parameters
-
data_array_xsize | width of data array |
data_array_ysize | height of data array |
virtual QwtDoubleInterval RasterData::range |
( |
| ) |
const |
|
inlinevirtual |
implemented method of abstract QwtRasterData, reads min and max data value
- Returns
- QwtDoubleInterval min and max value as QwtDoubleInterval
void RasterData::set_data_range |
( |
double |
data_array_min, |
|
|
double |
data_array_max |
|
) |
| |
|
inline |
sets min and max occuring value in data array
- Parameters
-
data_array_min | minimum data value in 2D array |
data_array_max | maximum data value in 2D array |
virtual double RasterData::value |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
|
inlinevirtual |
implemented method of abstract QwtRasterData,
- Returns
- value from 2D array to build the displayed picture from it
The documentation for this class was generated from the following file: