#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 switcherPanel: public ofxPanel{ public: switcherPanel(int x,int y){ setup("switcher","",x,y); add(network.set("network",false)); add(svg.set("svg",true)); add(text.set("text",false)); } ofParameter network; ofParameter svg; ofParameter text; }; 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)), switcher(620,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; textPanel textinput; //======================================= //output switcherPanel switcher; ofxPONKSenderPanel madlaser; };