| 12345678910111213141516171819202122232425262728293031 |
- #ifndef _region_h_
- #define _region_h_
- #include "point.h"
- #include "rectangle.h"
-
- class Region
- {
- public:
- Point *m_tpoints; // Tableau des points de la région
- int m_nbPoints; // Nombre de points dans la région
-
- Region(); // Constructeur de la région
- virtual ~Region(); // Destructeur
-
- // Fonction: Le Point est dans la région
- bool PtInRegion0(int x, int y);
- bool PtInRegion(Point *vPoint);
- // Retourne le rectangle englobant de la région
- Rect GetRgnBox();
- // Création de la région à partir des points
- bool CreatePolygonRgn(Point *tabPoints, int n_points);
-
- // Destruction de la région
- void DeleteObject();
- };
-
- #endif
|