summaryrefslogtreecommitdiff
path: root/src/testApp.h
blob: c8adb7f7bc7a33eff2ac54d048ef8ebad0ad28e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
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

#include "ofMain.h"
#include "ofx3DModelLoader.h"

#include "viewpoint.h"

class testApp : public ofBaseApp{

	public:
		void setup();
		void update();
		void draw();

		void keyPressed  (int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);
		void gotMessage(ofMessage msg);

		ofx3DModelLoader bottle;
		ofx3DModelLoader board;

		ofVideoPlayer texture;

		viewpoint* views;
        int activeView; //receives keypresses

        int mode;

};