diff options
| -rw-r--r-- | gui/.DS_Store | bin | 8196 -> 8196 bytes | |||
| -rw-r--r-- | gui/src/chainImageSet.cpp | 14 | ||||
| -rw-r--r-- | gui/src/chainImageSet.h | 2 | ||||
| -rw-r--r-- | gui/src/ofApp.cpp | 6 | ||||
| -rw-r--r-- | imgtest/.DS_Store | bin | 6148 -> 6148 bytes |
5 files changed, 19 insertions, 3 deletions
diff --git a/gui/.DS_Store b/gui/.DS_Store Binary files differindex 2dd3893..1a71078 100644 --- a/gui/.DS_Store +++ b/gui/.DS_Store diff --git a/gui/src/chainImageSet.cpp b/gui/src/chainImageSet.cpp index d3d363f..461df7e 100644 --- a/gui/src/chainImageSet.cpp +++ b/gui/src/chainImageSet.cpp @@ -25,6 +25,15 @@ void chainImageSet::drawOutput(){ glLoadIdentity(); glOrtho(-ofGetWidth()/2, ofGetWidth()/2, ofGetHeight()/2, -ofGetHeight()/2, 0.0f, 5000.0f); */ + + /* + //we can set the clipping but why is it squashed in X & Y? + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + float near=1.0f; + float far=10000.0f; + glFrustum(-1.0, 1.0, -1.0, 1.0, near, far); + */ glMatrixMode ( GL_MODELVIEW ); glLoadIdentity ( ); /* is not what we want @@ -39,6 +48,8 @@ void chainImageSet::drawOutput(){ */ glScalef(ZOOM_FUDGE_FACTOR,ZOOM_FUDGE_FACTOR,ZOOM_FUDGE_FACTOR); //easy way to limit camera cutoff + + //printf("drawing rotation %f for transition %f\n",(*currentImage)->getRotation(),(*currentImage)->transition); float rot=(*currentImage)->getRotation(); @@ -514,7 +525,8 @@ void chainImageSet::mousePressed(int x, int y, int button){ (*currentImage)->updateOutput(decayFactor); } } - else clickPoint=ofPoint(x,y); + //else + clickPoint=ofPoint(x,y); } //-------------------------------------------------------------- diff --git a/gui/src/chainImageSet.h b/gui/src/chainImageSet.h index 58734be..cc7550a 100644 --- a/gui/src/chainImageSet.h +++ b/gui/src/chainImageSet.h @@ -4,7 +4,7 @@ #include "threadedChainImageLoader.h" #include "threadedSystemDialogs.h" -#define ZOOM_FUDGE_FACTOR 5 +#define ZOOM_FUDGE_FACTOR 1 class chainImageSet{ diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 08a77a8..706ff14 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -264,7 +264,9 @@ void ofApp::newMidiMessage(ofxMidiMessage& msg) { //sets[i].zoomMultiplier=1.0f+(((float)msg.value-64)/64.0f); doesn't work }; - printf("Val %i, zoomMultiplier: %f \n",msg.value,sets[0].fitFactor); + sets[selected_set].zoomMultiplier=1.0f+(((float)msg.value-64)/64.0f); + + printf("Val %i, zoomMultiplier: %f \n",sets[selected_set].zoomMultiplier); } if (msg.channel==1&&msg.control==65+offet){ //top button 1 @@ -341,6 +343,7 @@ void ofApp::mouseDragged(int x, int y, int button){ void ofApp::guiMouseDragged(ofMouseEventArgs &args){ sets[selected_set].mouseDragged(args.x,args.y,args.button); + //ofLog()<<">>DRAGGED "<<args.x<<" "<<args.y; } //-------------------------------------------------------------- @@ -348,6 +351,7 @@ void ofApp::mousePressed(int x, int y, int button){ } void ofApp::guiMousePressed(ofMouseEventArgs &args){ + //ofLog()<<">>PRESSED "<<args.x<<" "<<args.y; if (commandPressed){ if (args.y<200){ sets[0].mousePressed(args.x,args.y,OF_MOUSE_BUTTON_4); diff --git a/imgtest/.DS_Store b/imgtest/.DS_Store Binary files differindex dbfa0dd..ed80e65 100644 --- a/imgtest/.DS_Store +++ b/imgtest/.DS_Store |
