[Kst] [Bug 108025] Matrix and image reworking

Rick Chern rchern at interchange.ubc.ca
Wed Jul 6 02:05:31 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-06 02:05 -------
Proposed new functions for KstDataSource:

// returns the list of matrices this datasource contains
virtual QStringList matrixList();

// whether or not the matrix name is a valid name of a matrix
virtual bool isValidMatrix(const QString& matrix);

// read the specified sub-range of the matrix, flat-packed in z
// the suggested scaling and translation is returned in 
// xMin, yMin, xStepSize, and yStepSize
virtual int readMatrix(double *z, const QString& matrix, int xStart, int yStart, int xNumSteps, int yNumSteps, double& xMin, double& yMin, double& xStepSize, double& yStepSize);

The list of matrices is separate from the list of field names, but the datasource may choose to support all, no, or some vector fields as matrices.

There is no concept of frames for matrices.

For live data in conjunction with the "read to end" option, the matrix dimensions xMin, yMin, may change on every read.


More information about the Kst mailing list