#ifndef SVGLAYER_H #define SVGLAYER_H #include "ofxSVGTiny.h" class layer { public: layer(){}; layer(string _f) {load(_f);}; virtual ~layer(){}; virtual void load(string _f){}; virtual void draw(float a,int cx,int cy,float colShift){}; virtual void draw(float a,unsigned char* controllers,int cx,int cy,bool transparentBlack=false,float colShift=0.0f){ draw(a,cx,cy,colShift);}; bool getLoaded() {return isLoaded;}; protected: bool isLoaded; private: }; class svglayer: public layer { public: svglayer(); svglayer(string _f); virtual ~svglayer(); void load(string _f); void draw(float a,int cx,int cy,float colShift); void draw(float a,unsigned char* controllers,int cx,int cy,bool transparentBlack=false,float colShift=0.0f); void getCentre(int cx,int cy); protected: private: ofxSVGTiny svg; vector fills; vector strokes; float xo,yo; }; class imglayer: public layer { public: imglayer(); imglayer(string _f); virtual ~imglayer(); void load(string _f); void draw(float a,int cx,int cy,float colShift); void draw(float a,unsigned char* controllers,int cx,int cy,bool transparentBlack,float colShift); protected: private: ofImage img; }; #endif // SVGLAYER_H