#pragma once #include "ofMain.h" #include "ofxSvg.h" #include "lineSegmenter.h" #include "ofxClipper.h" #include "ofxSyphon.h" class ofApp : public ofBaseApp{ public: void setup(); void update(); void updateOutput(ofEventArgs & args); void draw(); void drawOutput(ofEventArgs & args); void exit(); void outputKeyPressed(ofKeyEventArgs & args); void keyPressed(ofKeyEventArgs &keyargs); 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 mouseEntered(int x, int y); void mouseExited(int x, int y); void windowResized(int w, int h); void outputWindowResized(ofResizeEventArgs &resizeargs); void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); vector segmenters; vector mask; int numsegments; float coverage; int mode; ofx::Clipper clipper; ofxSyphonServer mainOutputSyphonServer; };