comparison bayesianArraySrc/DynamicVector.cpp @ 50:93d21c20cfbc

Added Markers and the ability to switch to these points in the file when playing
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Thu, 14 Jun 2012 20:04:49 +0100
parents eb43b2a007ea
children e359b9bad811
comparison
equal deleted inserted replaced
49:8df911733fdc 50:93d21c20cfbc
7 * 7 *
8 */ 8 */
9 9
10 10
11 #include "DynamicVector.h" 11 #include "DynamicVector.h"
12
13 bool printOutput = false;
12 14
13 DynamicVector::DynamicVector(){ 15 DynamicVector::DynamicVector(){
14 length = 0; 16 length = 0;
15 arraySize = 0; 17 arraySize = 0;
16 maximumValue = 0; 18 maximumValue = 0;
379 } 381 }
380 382
381 //some lines where the bounaries are 383 //some lines where the bounaries are
382 ofLine(window.x + minScreenIndex, window.y + screenHeight, window.x + minScreenIndex, window.y + screenHeight/2); 384 ofLine(window.x + minScreenIndex, window.y + screenHeight, window.x + minScreenIndex, window.y + screenHeight/2);
383 ofLine(window.x + maxScreenIndex, window.y + screenHeight, window.x + maxScreenIndex, window.y + screenHeight/2); 385 ofLine(window.x + maxScreenIndex, window.y + screenHeight, window.x + maxScreenIndex, window.y + screenHeight/2);
384 string infoString = "max "+ofToString(maxVal); 386
385 infoString += "\n offset "+ofToString(offset); 387 /*
386 ofDrawBitmapString(infoString, window.x + window.width/2, window.y + 15); 388 string infoString = "max "+ofToString(maxVal);
387 389 infoString += "\n offset "+ofToString(offset);
390 ofDrawBitmapString(infoString, window.x + window.width/2, window.y + 15);
391 */
388 // ofDrawBitmapString(ofToString(stepSize, 2)+" "+ofToString(maxScreenIndex - minScreenIndex, 0), 20, 600); 392 // ofDrawBitmapString(ofToString(stepSize, 2)+" "+ofToString(maxScreenIndex - minScreenIndex, 0), 20, 600);
389 393
390 } 394 }