[Kst] branches/work/kst/portto4/kst/src/libkst

George Staikos staikos at kde.org
Tue May 29 19:25:45 CEST 2007


SVN commit 669554 by staikos:

repair the api


 M  +3 -3      kstmatrix.cpp  
 M  +3 -3      kstmatrix.h  


--- branches/work/kst/portto4/kst/src/libkst/kstmatrix.cpp #669553:669554
@@ -92,7 +92,7 @@
 }
     
 
-double KstMatrix::value(double x, double y, bool* ok) {
+double KstMatrix::value(double x, double y, bool* ok) const {
   int x_index = (int)floor((x - _minX) / (double)_stepX);
   int y_index = (int)floor((y - _minY) / (double)_stepY);
 
@@ -100,7 +100,7 @@
 }
     
 
-double KstMatrix::valueRaw(int x, int y, bool* ok) {
+double KstMatrix::valueRaw(int x, int y, bool* ok) const {
   int index = zIndex(x,y);
   if ((index < 0) || !finite(_z[index]) || KST_ISNAN(_z[index])) {
     if (ok) {
@@ -115,7 +115,7 @@
 }
 
 
-int KstMatrix::zIndex(int x, int y) {
+int KstMatrix::zIndex(int x, int y) const {
   if (x >= _nX || x < 0 || y >= _nY || y < 0) {
     return -1;
   }
--- branches/work/kst/portto4/kst/src/libkst/kstmatrix.h #669553:669554
@@ -47,7 +47,7 @@
 
     // return the z value of the rectangle in which the specified point lies
     // ok is false if the point is out of bounds
-    double value(double x, double y, bool *ok = 0L);
+    double value(double x, double y, bool *ok = 0L) const;
     
     // set the z value of the rectangle in which the specified point lies
     // return false if the point is out of bounds
@@ -55,7 +55,7 @@
 
     // return the value of the specified rectangle 
     // ok is false if the rectangle does not exist
-    double valueRaw(int x, int y, bool *ok = 0L);
+    double valueRaw(int x, int y, bool *ok = 0L) const;
     
     // set the value of the specified rectangle
     // return false if the rectangle does not exist
@@ -161,7 +161,7 @@
     virtual bool resizeZ(int sz, bool reinit = true);
 
     // returns -1 if (x,y) is out of bounds
-    int zIndex(int x, int y);
+    int zIndex(int x, int y) const;
 
     KstObject::UpdateType internalUpdate(KstObject::UpdateType providerUpdateType);
 };


More information about the Kst mailing list