summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-24 20:09:24 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-24 20:09:24 +0200
commitc58cf1232ea3134671d632dcba651fbf11eb0155 (patch)
tree04f2f250c70036359f5d92bfc779d26902d3ec58 /src
parent8483acb33c613e596bb8ffc8ab5677ff5a168a7b (diff)
add DataImage class stub
Diffstat (limited to 'src')
-rw-r--r--src/DataImage.H37
-rw-r--r--src/DataImage.cxx41
2 files changed, 78 insertions, 0 deletions
diff --git a/src/DataImage.H b/src/DataImage.H
new file mode 100644
index 0000000..abeb4f5
--- /dev/null
+++ b/src/DataImage.H
@@ -0,0 +1,37 @@
+//
+// Copyright 2006 by Johannes Hofmann
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Library General Public
+// License as published by the Free Software Foundation; either
+// version 2 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Library General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+// USA.
+//
+
+#ifndef DATAIMAGE_H
+#define DATAIMAGE_H
+
+
+
+class DataImage : Fl_Widget {
+ private:
+
+
+ public:
+ DataImage(int w, int h);
+
+ ~DataImage();
+
+ int set_pixel(nt x, int y, char r, char g, char b);
+};
+
+#endif
diff --git a/src/DataImage.cxx b/src/DataImage.cxx
new file mode 100644
index 0000000..83881ff
--- /dev/null
+++ b/src/DataImage.cxx
@@ -0,0 +1,41 @@
+//
+// DataImage routines.
+//
+// Copyright 2006 by Johannes Hofmann
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Library General Public
+// License as published by the Free Software Foundation; either
+// version 2 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Library General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+// USA.
+//
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <math.h>
+
+#include "DataImage.H"
+
+DataImage::DataImage() {
+
+
+}
+
+DataImage::~DataImage() {
+
+}
+
+
+int
+DataImage::set_pixel(int x, int y, char r, char g, char b) {
+}