1 /***************************************************************************
2 						normalize.h  -  description
3 							-------------------
4 	begin                : july 2nd, 2006
5 	copyright            : (C) 2006 by Fr�d�ric RODRIGO
6 	email                : f.rodrigo free.fr
7 
8 	$Id: normalize.h 373 2008-10-11 21:32:54Z neoneurone $
9  ***************************************************************************/
10 
11 /***************************************************************************
12  *                                                                         *
13  *   This program is free software; you can redistribute it and/or modify  *
14  *   it under the terms of the GNU General Public License as published by  *
15  *   the Free Software Foundation; either version 2 of the License, or     *
16  *   any later version.                                                    *
17  *                                                                         *
18  ***************************************************************************/
19 
20 #ifndef _OPENCITY_NORMALIZE_H_
21 #define _OPENCITY_NORMALIZE_H_ 1
22 
23 #include "filter.h"
24 
25 namespace MapGen
26 {
27 
28 
29 //========================================================================
30 /** Linear re-range of the map
31 */
32 class Normalize: public Filter {
33 public:
34 	Normalize(
35 		const float min,
36 		const float max );
37 	~Normalize();
38 
39 	void apply( Map* map );
40 
41 private:
42 	float	_min;
43 	float	_max;
44 
45 };
46 
47 
48 }
49 
50 #endif
51