14#include <geos/geom/MultiPolygon.h>
43 ImageOverlap(QString serialNumber, geos::geom::MultiPolygon &polygon);
49 virtual void SetPolygon(
const geos::geom::MultiPolygon &polygon);
50 virtual void SetPolygon(
const geos::geom::MultiPolygon *polygon);
53 void Add(QString &sn);
57 return p_serialNumbers.size();
61 QString operator[](
int index)
const {
62 return p_serialNumbers[index];
66 const geos::geom::MultiPolygon *Polygon()
const {
71 virtual double Area();
79 void Write(std::ostream &outputStream);
82 std::vector<QString> p_serialNumbers;
83 geos::geom::MultiPolygon *p_polygon;
Individual overlap container.
virtual void SetPolygon(const geos::geom::MultiPolygon &polygon)
This method will replace the existing polygon that defines the overlap with a new one.
virtual double Area()
This method will return the area of the polygon.
void Init()
Initialize this object to a known state.
void Add(QString &sn)
This method will add a new serial number to the list of serial numbers alread associated with the ove...
ImageOverlap()
Construct an empty ImageOverlap object.
bool HasAnySameSerialNumber(ImageOverlap &other) const
This method will return true if any serial number from this ImageOverlap is also in the other ImageOv...
bool HasSerialNumber(QString &sn) const
This method will return true if input serial number exists in the ImageOverlap.
virtual ~ImageOverlap()
Destroy this ImageOverlap object.
This is free and unencumbered software released into the public domain.