#ifndef POLYGON_H #define POLYGON_H #include #include #include "common/coordinates.h" #include "common/rectc.h" class Polygon : public QList > { public: bool isValid() const {return !isEmpty() && first().size() >= 3;} RectC boundingRect() const; }; #endif // POLYGON_H