[Kst] [Bug 108025] Matrix and image reworking

Rick Chern rchern at interchange.ubc.ca
Mon Jul 11 20:00:50 CEST 2005


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=108025         




------- Additional Comments From rchern interchange ubc ca  2005-07-11 20:00 -------
Suggested functions version 2:

isValidMatrix as before, and:
fieldList(); // all fields of all types
vectorList();
matrixList();
scalarList();
stringList(); 

and:

// read the specified sub-range of the matrix, flat-packed in z
// xStart - starting x *frame*
// yStart - starting y *frame*
// xNumSteps - number of *frames* to read in x direction; 
               -1 to read 1 *sample* from xStart
// yNumSteps - number of *frames* to read in y direction;
               -1 to read 1 *sample* from yStart 
// Will skip according to the parameter, but it may not
// be implemented.  If it returns -9999, use the non-skip version instead. 
// The suggested scaling and translation is returned in
// xMin, yMin, xStepSize, and yStepSize
// Returns the number of *samples* read
virtual int readMatrix(double *z, const QString& matrix, int xStart, int yStart, int xNumSteps, int yNumSteps, int skip, double* xMin, double* yMin, double* xStepSize, double* yStepSize); 

// read the specified sub-range of the matrix, flat-packed in z
// xStart - starting x *frame*
// yStart - starting y *frame*
// xNumSteps - number of *frames* to read in x direction; 
               -1 to read 1 *sample* from xStart
// yNumSteps - number of *frames* to read in y direction;
               -1 to read 1 *sample* from yStart 
// The suggested scaling and translation is returned in
// xMin, yMin, xStepSize, and yStepSize
// Returns the number of *samples* read
virtual int readMatrix(double *z, const QString& matrix, int xStart, int yStart, int xNumSteps, int yNumSteps, double* xMin, double* yMin, double* xStepSize, double* yStepSize);


More information about the Kst mailing list