yeswecan 9 лет назад
Родитель
Сommit
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) {
     void drawOverlay(float x, float y, float width, float height) {
         int graphCount = values.size();
         int graphCount = values.size();