summaryrefslogtreecommitdiff
path: root/src/Stitch.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r--src/Stitch.cxx30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index 0cfa4b5..ca63ed3 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -27,17 +27,39 @@
#include "Stitch.H"
Stitch::Stitch() {
-
-
+ for (int i=0; i<MAX_PICS; i++) {
+ gipf[i] = NULL;
+ }
}
Stitch::~Stitch() {
+ for (int i=0; i<MAX_PICS; i++) {
+ if (gipf[i]) {
+ delete(gipf[i]);
+ } else {
+ break;
+ }
+ }
+}
-}
+int
+Stitch::load_image(char *file) {
+ for (int i=0; i<MAX_PICS; i++) {
+ if (gipf[i] == NULL) {
+ gipf[i] = new GipfelWidget(0, 0, 800, 600);
+ gipf[i]->load_image(file);
+ break;
+ }
+ }
+
+}
int
-Stitch::resample(Fl_Stitch_Display *
+Stitch::resample(DataImage *img,
+ double view_start, double view_end,
+ double nick_start, double nick_end) {
+
}