diff options
Diffstat (limited to 'gui/src/chainImageSet.h')
| -rw-r--r-- | gui/src/chainImageSet.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gui/src/chainImageSet.h b/gui/src/chainImageSet.h new file mode 100644 index 0000000..87b1d11 --- /dev/null +++ b/gui/src/chainImageSet.h @@ -0,0 +1,61 @@ +#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 <chainImage> images; + + float currentDefaultImageRatio; + + std::list<chainImage>::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<chainImage> > loadingImages; + + threadedChainImageLoader loader; +};
\ No newline at end of file |
