04:12 04/12/2000 -- A modifier ******************* Classe Coord#v1.00* ******************* - x1 , x2 - y1 , y2 Constructeurs / destructeurs ______________________________ Coord () Coord (int xa,int xb,int ya,int yb) ~Coord () Accesseurs ___________ int Get_x1 () int Get_x2 () int Get_y1 () int Get_y2 () int* Get_XY () retorune un pointeur vers tableau d'entier vecteur [x1,x2,y1,y2] Modifieurs ___________ void Set_x1 (int x) void Set_x2 (int x) void Set_y1 (int y) void Set_y2 (int y) void Set_X (int xa, int xb) void Set_Y (int ya, int yb) void Set_XY (int xa, int xb, int ya, int yb) void Set_XY (Coord c) Editeurs _________ void Affiche_XY() *********************** Classe Rectangle#v1.00# *********************** - static long nb_rect Compteur d'instance de classe, implice mise a 0 - Coord coord Coordonnees du rectangle - Bool Est_ferme Boolean : connaitre etat traitement Constructeurs _____________ Rectangle () Rectangle (Coord loc) Rectangle (Coord loc, Bool ferme) Rectangle (int x1, int x2, int y1, int y2) Rq: Ferme = 0 ici ! Destructeurs _____________ ~Rectangle () Modificateur ____________ void Set_Ferme () TRIG ! Modifieurs par recopie ______________________ void Set_XYfromCoord (Coord loc) void Set_XYfromRect (Rectangle rect) Accesseurs __________ Coord Get_Coord (Rectangle rect) long Get_nbRect () Editeurs ________ void Affiche_Rect() *********************** Classe Matrix #v1.00# *********************** - static int nb_matrix; // compteur d'instance d'objet matrix - Coord coord; // Coord de la sous-matrice (nbcol matrix = nbcol image) - int Lig,Col; // nb de lig et de colonne la matrice - Bitmap * bitmap; // matrice image binaire - Bool Est_Scanne; // 1 = matrix a ete traitee (entierement) - Bool Est_Charge; // 1 = matrix est courante (charge en memoire) Constructeurs/Destructeurs __________________________ Matrix(int bitx, int bity, int nblig, int nbcol) ~Matrix() Accesseurs __________ int Get_nbMatrix() Coord Get_Coord() int Get_Lig() int Get_Col() Bitmap* Get_Bitmap() Bool Scanned() Bool Loaded() Modificateurs _____________ void Set_Coord(Coord c) void Set_Coord(int xa, int xb, int ya, int yb) void Set_Lig(int l) void Set_Col(int c) void Set_Bitmap(Bitmap&) void Set_Bitmap(Bitmap*) void Set_Scanned() TRIG ! void Set_Loaded() TRIG ! Editeurs ________ void Affiche_Matrix() Fonctionnelles ______________ long Calcul_Taille (){} // Calcul la taille de l'objet en memoire