00001 /*************************************************************************** 00002 normalize.h - description 00003 ------------------- 00004 begin : july 2nd, 2006 00005 copyright : (C) 2006 by Frédéric RODRIGO 00006 email : f.rodrigo free.fr 00007 00008 $Id: normalize.h 83 2006-11-05 20:46:42Z neoneurone $ 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * any later version. * 00017 * * 00018 ***************************************************************************/ 00019 00020 #ifndef _OPENCITY_NORMALIZE_H_ 00021 #define _OPENCITY_NORMALIZE_H_ 1 00022 00023 #include "filter.h" 00024 00025 namespace MapGen 00026 { 00027 00030 class Normalize: public Filter { 00031 public: 00032 Normalize( 00033 const float min, 00034 const float max ); 00035 ~Normalize(); 00036 00037 void apply( Map* map ); 00038 00039 private: 00040 float _min; 00041 float _max; 00042 00043 }; 00044 00045 } 00046 00047 #endif
1.4.2