#include "ofMain.h" #include "ofxJSON.h" #include "chainImage.h" #include "threadedChainImageLoader.h" class chainImageSet{ public: chainImageSet(){ currentDefaultImageRatio=0.3; filename=""; outputSize=ofPoint(1024,576); decayFactor=.999; additive=false; intensity=1.0f; fitFactor=0.9f; dragScale=0.0f; dragRotate=0.0f; dragPoint=ofPoint(0,0); } chainImageSet(const chainImageSet& mom){ chainImageSet(); } void drawGui(int x,int y,bool is_selected); void drawOutput(); void updateOutput(); bool add(std::string filename,glm::vec2 pos); void keyPressed(ofKeyEventArgs &keyargs); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); bool saveJson(std::string filename); bool loadJson(std::string filename); ofPoint outputSize; std::list images; float currentDefaultImageRatio; std::list::iterator selected; ofPoint clickPoint; ofPoint dragPoint; float dragScale; float dragRotate; float fitFactor; std::string filename; chainImage *currentImage; float decayFactor; bool additive; float intensity; std::vector < std::unique_ptr > loadingImages; threadedChainImageLoader loader; };