Mercurial > hg > soniczoomios
diff grid.mm @ 33:92dba082d957
Added trail and EVALUATION_POINT event type.
| author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
|---|---|
| date | Tue, 26 Mar 2013 18:41:42 +0000 |
| parents | ab7c86d0f3d8 |
| children | 94df2cd72d7b |
line wrap: on
line diff
--- a/grid.mm Fri Mar 08 14:54:55 2013 +0000 +++ b/grid.mm Tue Mar 26 18:41:42 2013 +0000 @@ -55,6 +55,7 @@ viewWasChanged(); + cout << "SIZEOF " << sizeof(long long); } @@ -333,12 +334,14 @@ //displayInfo(); drawPresets(); - ////////-------///////// - - ////////-------///////// - + // draw centre cross hairs drawCrossHairs(); + + + // draw the undo history trail, given viewing area + eventLogger.drawTrail(topLeft, topLeft + size); + ////////-------//////// /* ostringstream temp; @@ -380,6 +383,7 @@ if(snapped && closestPreset != NULL){ ofDrawBitmapString( closestPreset->displayTextDescription(), pixSize.x/2+10, pixSize.y/2+10 ); } + } //----------------------------------------------------------------------- @@ -431,7 +435,7 @@ } //-------------------------------------------------------------- -// would be advisable to only have one "mover" object that has permission to move the grid (?) + void Grid::move(TwoVector moveP){ // numspacing, pixelspacing stay the same
