summaryrefslogtreecommitdiff
path: root/nextus/src/ofApp.h
blob: a549ff21272b4d34dd8e75856874e48238086db4 (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
59
60
61
62
63
64
65
66
67
#pragma once

#include "ofMain.h"


#include "ofxGui.h"
#include "ofxXmlSettings.h"
#include "ofxSVG.h"
#include "ofxClipper.h"
#include "ofxMidi.h"	
#include "ofxPONK.h"

#include "lineTransformer.h"
#include "lineSegmenter.h"
#include "vectorPlugin.h"

class ofApp: public ofBaseApp, public ofxMidiListener {

	public:

		ofApp() : 
			networkinput("network",DISPLAYSIZE,ofPoint(5,5)),
			svginput("svg",DISPLAYSIZE,ofPoint(210,5)),
			textinput("text",DISPLAYSIZE,ofPoint(415,5)) {}

		void setup();
		void update();
		void draw();
		void exit();

		void keyPressed(ofKeyEventArgs &keyargs);
		void keyReleased(ofKeyEventArgs & args);
		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 mouseEntered(int x, int y);
		void mouseExited(int x, int y);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);

		void newMidiMessage(ofxMidiMessage& eventArgs);

		//======================================= //MIDI

		ofxMidiIn midiIn;
		ofxMidiMessage midiMessage;
		
		//======================================= //saving settings

		ofxXmlSettings XML;

		void default_settings();
		void save_settings();
		void load_settings();

		//======================================= //inputs

		defaultPanel networkinput;
		svgPanel svginput;
		defaultPanel textinput;

		//======================================= //output

		ofxPONKSenderPanel madlaser;

};