소스 검색

Added history

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();