Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

MPsi2DValue.hpp

00001 #ifndef __MPsi2DValue__
00002 #define __MPsi2DValue__
00003 
00004 
00005 
00023 #include <stdio.h>
00024 
00025 
00026 class MPsi2DValue
00027 {
00028 public:
00029 
00030 int             frontId;                        // each front may use another frontId
00031 
00032 int             x, y;
00033 float           rate;                           // mostly a kind of distance
00034 
00035 int             index;                  // used to access heap faster 
00036 
00037 public:
00038         
00039 MPsi2DValue(int ax, int ay, int front=-1, float arate=1e12){ x= ax; y= ay; frontId= front; rate= arate; index=-1; }
00040 virtual ~MPsi2DValue(){}
00041 
00042 int             getFront(){ return frontId; }
00043 
00044 float   getRate(){ return rate; }
00045 int             getX(){ return x; }
00046 int             getY(){ return y; }
00047 
00048 void setFront(int front){ frontId= front; }
00049 void    setRate(float arate){ rate= arate; }
00050 void    setX(int ax){ x= ax; }
00051 void    setY(int ay){ y= ay; }
00052 
00053 
00054 virtual void report(FILE* file){}
00055 };
00056 
00057 
00058 
00059 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com