yeswecan преди 9 години
родител
ревизия
880edaca8c
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/ofxPlotter.h

+ 3 - 1
src/ofxPlotter.h

@@ -91,7 +91,9 @@ public:
         
     }
     
-    
+    float getHistoryFor(std::string index, int step) {
+        return history[index][history[index].size() - step].getF();
+    }
     
     void drawOverlay(float x, float y, float width, float height) {
         int graphCount = values.size();