[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Mar 28 06:36:40 CEST 2005


CVS commit by staikos: 

- add const
- re-add methods that were removed


  M +16 -1     ksthistogram.cpp   1.60
  M +5 -1      ksthistogram.h   1.33


--- kdeextragear-2/kst/kst/ksthistogram.cpp  #1.59:1.60
@@ -432,7 +432,22 @@ void KstHistogram::setRealTimeAutoBin(bo
 
 
-bool KstHistogram::realTimeAutoBin() {
+bool KstHistogram::realTimeAutoBin() const {
   return _realTimeAutoBin;
 }
 
+
+double KstHistogram::vMax() const {
+  return _inputVectors[RAWVECTOR]->max();
+}
+
+
+double KstHistogram::vMin() const {
+  return _inputVectors[RAWVECTOR]->min();
+}
+
+
+int KstHistogram::vNumSamples() const {
+  return _inputVectors[RAWVECTOR]->length();
+}
+
 // vim: ts=2 sw=2 et

--- kdeextragear-2/kst/kst/ksthistogram.h  #1.32:1.33
@@ -73,5 +73,5 @@ public:
 
   void setRealTimeAutoBin(bool autobin);
-  bool realTimeAutoBin();
+  bool realTimeAutoBin() const;
 
   KstVectorPtr vX() const { return *_bVector; }
@@ -82,4 +82,8 @@ public:
   double width() const { return _W; }
 
+  double vMax() const;
+  double vMin() const;
+  int vNumSamples() const;
+
 private:
   KstHsNormType _NormMode;




More information about the Kst mailing list