arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

NrroImage.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     6-20-03
00005 //                   ________    ____   ___ 
00006 //                  |        \  /    | /  /
00007 //                  +---+     \/     |/  /
00008 //                  +--+|  |\    /|     < 
00009 //                  |  ||  | \  / |  |\  \ 
00010 //                  |      |  \/  |  | \  \ 
00011 //                   \_____|      |__|  \__\
00012 //                       Copyright  2003 
00013 //                      Joe Michael Kniss
00014 //                   <<< jmk@cs.utah.edu >>>
00015 //               "All Your Base are Belong to Us"
00016 //-------------------------------------------------------------------------
00017 
00018 /// NrroImage.h
00019 ///  simianUI
00020 
00021 
00022 #ifndef __SIMIAN_NRRO_CANVAS_IMAGE_DOT_H
00023 #define __SIMIAN_NRRO_CANVAS_IMAGE_DOT_H
00024 
00025 #include <qimage.h>
00026 #include "CanvasImage.h"
00027 #include <nrro/nrro.h>
00028 
00029 //////////////////////////////////////////////////////////////////////////
00030 /// Factory Nrro -> QImage, quite automatic
00031 QImage *genNrroQImage(const NrroSP n, const gutz::vec2d minmax = gutz::vec2d(AIR_NAN,AIR_NAN));
00032 
00033 //////////////////////////////////////////////////////////////////////////
00034 /// a object for putting a Nrro on a canvas
00035 class NrroCanvasImg : public CanvasImage {
00036 public:
00037    NrroCanvasImg(QCanvas *canvas);
00038    virtual ~NrroCanvasImg() {}
00039 
00040    /// loads the nrro as an image, keeps it 
00041    /// for later reference
00042    virtual void   setNrro(const NrroSP n, 
00043                           const gutz::vec2d minmaxVal = gutz::vec2d(AIR_NAN,AIR_NAN));
00044    virtual NrroSP getNrro() { return _n; }
00045 
00046 protected:
00047    NrroSP _n;
00048 
00049 };
00050 
00051 
00052 #endif
00053 
00054 

Send questions, comments, and bug reports to:
jmk