00001 00007 #ifndef RECTANGLE_H 00008 #define RECTANGLE_H 00009 00010 #include "defs.h" 00011 #include "shape.h" 00012 00013 #include <QtGui/qpainter.h> 00014 00019 class Rectangle : public Shape 00020 { 00021 public: 00024 Rectangle(); 00025 00026 virtual ~Rectangle(); 00027 00031 Rectangle(BoundingBox& b); 00032 00038 bool IsInside(int x, int y) const; 00039 00044 virtual SHAPE_TYPE GetType() const; 00045 00049 virtual const std::string& GetName() const; 00050 00055 double SumValues(Image* pImage); 00056 00061 double GetSurface() const; 00062 00069 virtual void Draw(QPainter* p, int fact); 00070 }; 00071 00072 #endif