summaryrefslogtreecommitdiff
path: root/gui/src/chainImageSet.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2017-09-13 13:36:26 +0100
committerTim Redfern <tim@getdrop.com>2017-09-13 13:36:26 +0100
commitb4972d6ba659cec3759fd87d6f0489a040e0fbf6 (patch)
tree8646589d0db594c69eb5c6d6d86f6d05d8e3043f /gui/src/chainImageSet.h
parent304c8f22dfb4e068685b2a1e1023129a7cd12eb4 (diff)
chainImageSet and threadedChainImageLoader
Diffstat (limited to 'gui/src/chainImageSet.h')
-rw-r--r--gui/src/chainImageSet.h61
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