Brak opisu

city.h 500B

1234567891011121314151617181920212223
  1. #ifndef CITY_H
  2. #define CITY_H
  3. #include <doublepoint.h>
  4. #include <QVector>
  5. ///
  6. /// \brief The City class
  7. /// This is merely a vector of points, i.e. the points that make up the
  8. /// polygon of the city.
  9. class City {
  10. public:
  11. QVector<DoublePoint> *geometry;
  12. City() {};
  13. void pushPoint(double x, double y);
  14. virtual int getSize() { return geometry->size(); }
  15. QVector<DoublePoint> *getGeometry() { return geometry; }
  16. ~City() {delete geometry; }
  17. };
  18. #endif // CITY_H