summaryrefslogtreecommitdiff
path: root/src/Stitch.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 11:49:32 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 11:49:32 +0200
commit7d900b4ede22215413e4a0ddd1675c650ba3225f (patch)
tree6e39f45e68578ebc33e42b920c2370cefd954a3e /src/Stitch.cxx
parent8b9902ac6e239bd36681a2997ee1bdfa4239a5d8 (diff)
implement various helper methods
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) {
+
}