|
virtual void | setPosition (const BasicGeoTypes::GeoPos &pos) override |
| Set origin of the draw object at the given position.
|
|
virtual BasicGeoTypes::GeoPos | getPosition () const override |
| Get the origin of the draw object in geographical coordinates.
|
|
BasicGeoTypes::GeoPos | getPoint (int i, int ring=0) const |
| Get a point from a given polygon ring.
|
|
void | setPoint (int i, const BasicGeoTypes::GeoPos &p, int ring=0) |
| Set a point in the given polygon ring.
|
|
void | addPoint (const BasicGeoTypes::GeoPos &p, int ring=0) |
| Append a new point to the given polygon ring.
|
|
int | getNumPoints (int ring=0) const |
| Get number of points in the given polygon ring.
|
|
bool | isEmpty () const |
| Check if the polygon contains any data.
|
|
int | getNumRings () const |
| Get number of polygon rings.
|
|
| DrawObject (const std::shared_ptr< Maria::DrawObjectData > &data) |
|
Maria::ItemId | getId () const |
|
const std::string | getDataTypeId () const |
|
const std::shared_ptr< Maria::DrawObjectData > | getData () const |
|
virtual void | setPosition (const BasicGeoTypes::GeoPos &pos)=0 |
| Set origin of the draw object at the given position.
|
|
virtual BasicGeoTypes::GeoPos | getPosition () const =0 |
| Get the origin of the draw object in geographical coordinates.
|
|
void | setLineColor (const STK::Color4i color) |
|
const STK::Color4i | getLineColor () const |
|
void | setLineDashStyle (Maria::DashStyle dashStyle) |
|
Maria::DashStyle | getLineDashStyle () const |
|
void | setLineWidth (int w) |
|
int | getLineWidth () const |
|
void | setFillColor (const STK::Color4i color) |
|
const STK::Color4i | getFillColor () const |
|
void | setFill (bool fill) |
|
bool | getFill () const |
|
void | setFillStyle (Maria::FillStyle fillStyle) |
|
Maria::FillStyle | getFillStyle () const |
|
void | setText (const std::string &text) |
| Set text for draw object.
|
|
std::string | getText () const |
| Get text for draw object.
|
|
void | setFieldValue (const std::string &key, const std::string &value) |
|
std::string | getFieldValue (const std::string &key) const |
|
Polygon - Geographical polygon object. This class represents a draw object with polygon geometry, defined in geographical lat/lon coordinates. The polygon may consist of several "rings" where each ring is a closed polyone. The outer ring is the perimeter of the polygon and any inner rings will be holes.
The outer ring is taken to be ring #0 by convention, and if no ring is specified in the api methods, the outer ring is assumed.