[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Jan 5 21:14:47 CET 2005


CVS commit by staikos: 

needed part of previous commit.  Oops.  Made interpolate() const and edit the
data collection header.


  M +1 -1      kstdatacollection.h   1.25
  M +1 -1      kstvector.cpp   1.90
  M +1 -1      kstvector.h   1.59


--- kdeextragear-2/kst/kst/kstdatacollection.h  #1.24:1.25
@@ -52,5 +52,5 @@ namespace KST {
   /** Save a vector to a file */
   extern int vectorToFile(KstVectorPtr v, QFile *f);
-  extern int vectorsToFile(const KstVectorList& l, QFile *f);
+  extern int vectorsToFile(const KstVectorList& l, QFile *f, bool interpolate);
 
   extern void addVectorToList(KstVectorPtr v);

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.89:1.90
@@ -97,5 +97,5 @@ KstVector::~KstVector() {
 /** Return v[i], i is sample number, interpolated to have ns_i total
     samples in vector */
-double KstVector::interpolate(int in_i, int ns_i) {
+double KstVector::interpolate(int in_i, int ns_i) const {
   double fj, fdj;
   int j;

--- kdeextragear-2/kst/kst/kstvector.h  #1.58:1.59
@@ -57,5 +57,5 @@ class KstVector : public KstObject {
     
     /** Return V[i], interpolated/decimated to have ns_i total samples */
-    double interpolate(int i, int ns_i);
+    double interpolate(int i, int ns_i) const;
 
     /** Return V[i] uninterpolated */




More information about the Kst mailing list