+++ /dev/null
-#ifndef __INFOAREA_H__
-#define __INFOAREA_H__
-
-#include <QtCore>
-#include "vector.h"
-
-/**
- * Class for getting information about an area.
- *
- * @author Andrew Mustun
- */
-class InfoArea
-{
- public:
- InfoArea();
- ~InfoArea();
-
- void reset();
- void addPoint(const Vector & p);
- void calculate();
- void close();
- bool isValid();
- bool isClosed();
- double getArea();
- double getCircumference();
- int count();
-
- private:
- double calcSubArea(const Vector & p1, const Vector & p2);
- QVector<Vector> thePoints;
- double baseY;
- double area;
- double circumference;
-};
-
-#endif