CircleFillMeter.H

00001 // //////////////////////////////////////////////////////////////////// //
00002 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2005   //
00003 // by the University of Southern California (USC) and the iLab at USC.  //
00004 // See http://iLab.usc.edu for information about this project.          //
00005 // //////////////////////////////////////////////////////////////////// //
00006 // Major portions of the iLab Neuromorphic Vision Toolkit are protected //
00007 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency //
00008 // in Visual Environments, and Applications'' by Christof Koch and      //
00009 // Laurent Itti, California Institute of Technology, 2001 (patent       //
00010 // pending; application number 09/912,225 filed July 23, 2001; see      //
00011 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status).     //
00012 // //////////////////////////////////////////////////////////////////// //
00013 // This file is part of the iLab Neuromorphic Vision C++ Toolkit.       //
00014 //                                                                      //
00015 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can   //
00016 // redistribute it and/or modify it under the terms of the GNU General  //
00017 // Public License as published by the Free Software Foundation; either  //
00018 // version 2 of the License, or (at your option) any later version.     //
00019 //                                                                      //
00020 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope  //
00021 // that it will be useful, but WITHOUT ANY WARRANTY; without even the   //
00022 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //
00023 // PURPOSE.  See the GNU General Public License for more details.       //
00024 //                                                                      //
00025 // You should have received a copy of the GNU General Public License    //
00026 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write   //
00027 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,   //
00028 // Boston, MA 02111-1307 USA.                                           //
00029 // //////////////////////////////////////////////////////////////////// //
00030 //
00031 
00032 #include "Image/Image.H"
00033 #include "Image/DrawOps.H"
00034 
00035 //Assuming -100 - 100 CircleFill
00036 class CircleFillMeter
00037 {
00038 public:
00039   CircleFillMeter(int width, int height, int max);
00040   Image<PixRGB<byte> > render(short val);
00041   int getWidth()  { return itsWidth; };
00042   int getHeight() { return itsHeight; };
00043 
00044 private:
00045   int itsWidth, itsHeight;
00046   short itsCurrentValue;
00047   short itsMaxRadius;
00048   int itsMaxValue;
00049 };
00050 
00051 
00052 
Generated on Sun May 8 08:40:39 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3