From 0e436679aa8c09a08e20849f204c969eb2d875b8 Mon Sep 17 00:00:00 2001 From: Comment Date: Wed, 26 Feb 2014 10:57:16 +0000 Subject: initial commit --- basedProject/src/ofApp.h | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 basedProject/src/ofApp.h (limited to 'basedProject/src/ofApp.h') diff --git a/basedProject/src/ofApp.h b/basedProject/src/ofApp.h new file mode 100644 index 0000000..7090ab6 --- /dev/null +++ b/basedProject/src/ofApp.h @@ -0,0 +1,60 @@ +/* +projection calibration interface +tjr dec 2011 + +1- ideal KB interface to move around & calibrate camera +2- automatically save settings, key to reset + +logically + -rotate cam frame of reference + -move cam xyz WRT frame of reference + -don't do lookat + +speed interface detects each key on-off & applies key acceleration +have to track how many frames each key has been pressed for + +1- this is a case for a class +2- can key presses overlap? +3- class deals with keys in pairs as you can't move something simultaneously in 2 dirs +*/ + +#pragma once + +#define CALIBRATE 1 +#define DISPLAY 2 +#define GRAB 3 +#define NOTHING 4 + + +#include "ofMain.h" +#include "ofEvents.h" +#include "ofxXmlSettings.h" +//#include "ofx3DModelLoader.h" + +#include "mapUtils.h" +#include "viewpoint.h" + + +class ofApp : public ofBaseApp{ + + public: + ~ofApp(); + void setup(); + void update(); + void draw(); + void exit(); + + void loadSettings(string filename); + void saveSettings(string filename); + void keyPressed (int key); + void keyReleased(int key); + + ofxXmlSettings XML; + + vector views; + int activeView; + bool fullscreen; + + ofImage xhair; + +}; -- cgit v1.2.3