From c58cf1232ea3134671d632dcba651fbf11eb0155 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 24 Jun 2006 20:09:24 +0200 Subject: add DataImage class stub --- src/DataImage.H | 37 +++++++++++++++++++++++++++++++++++++ src/DataImage.cxx | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 src/DataImage.H create mode 100644 src/DataImage.cxx 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 +#include +#include +#include + +#include "DataImage.H" + +DataImage::DataImage() { + + +} + +DataImage::~DataImage() { + +} + + +int +DataImage::set_pixel(int x, int y, char r, char g, char b) { +} -- cgit v1.2.3