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();
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.
Definition ImageOverlap.h:40
const geos::geom::MultiPolygon * Polygon() const
Definition ImageOverlap.h:66
virtual void SetPolygon(const geos::geom::MultiPolygon &polygon)
This method will replace the existing polygon that defines the overlap with a new one.
Definition ImageOverlap.cpp:100
virtual double Area()
This method will return the area of the polygon.
Definition ImageOverlap.cpp:176
int Size() const
Definition ImageOverlap.h:56
void Add(QString &sn)
This method will add a new serial number to the list of serial numbers alread associated with the ove...
Definition ImageOverlap.cpp:156
QString operator[](int index) const
Definition ImageOverlap.h:61
ImageOverlap()
Construct an empty ImageOverlap object.
Definition ImageOverlap.cpp:25
bool HasAnySameSerialNumber(ImageOverlap &other) const
This method will return true if any serial number from this ImageOverlap is also in the other ImageOv...
Definition ImageOverlap.cpp:185
bool HasSerialNumber(QString &sn) const
This method will return true if input serial number exists in the ImageOverlap.
Definition ImageOverlap.cpp:206
virtual ~ImageOverlap()
Destroy this ImageOverlap object.
Definition ImageOverlap.cpp:78
void Write(std::ostream &outputStream)
Definition ImageOverlap.cpp:127
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16