diff options
| author | Tim Redfern <tim@getdrop.com> | 2017-08-29 18:34:26 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2017-08-29 18:34:26 +0100 |
| commit | 603d1a2a94a1263a85c353997eb3276d120d0822 (patch) | |
| tree | 00dba1c2b08ed6396c51e1b0fef559dc56fe70a8 /gui/src/chainImage.h | |
| parent | 6311b9970035b7688ee12393f62934884bfb122b (diff) | |
adding load save
Diffstat (limited to 'gui/src/chainImage.h')
| -rw-r--r-- | gui/src/chainImage.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/src/chainImage.h b/gui/src/chainImage.h index f5d89f2..ac78bd3 100644 --- a/gui/src/chainImage.h +++ b/gui/src/chainImage.h @@ -47,13 +47,18 @@ class chainImageSet{ public: chainImageSet(){ currentDefaultImageRatio=0.3; + filename=""; } void drawGui(); bool add(std::string filename,glm::vec2 pos); - void keyPressed(int key); + 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); + + saveJson(std::string filename); + loadJson(std::string filename); + std::list <chainImage> images; float currentDefaultImageRatio; @@ -62,4 +67,6 @@ class chainImageSet{ ofPoint dragPoint; float dragScale; float dragRotate; + + std::string filename; };
\ No newline at end of file |
