![]() |
Maria GDK 5.0.0.915
Documentation of native code in develop branch
|
RouteArea draw object. More...
#include <MRouteArea.h>
Public Member Functions | |
| void | setWidths (const std::vector< double > &widths, bool bleft) |
| Width of legs (in meters) | |
| std::vector< double > | getWidths (bool bleft) |
| Width of legs (in meters) | |
Public Member Functions inherited from Maria::Polyline | |
| 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) const |
| BasicGeoTypes::GeoPos3D | getPoint3D (int i) const |
| void | setPoint (int i, const BasicGeoTypes::GeoPos &p, double h=0.0) |
| void | setPoint3D (int i, const BasicGeoTypes::GeoPos3D &p) |
| void | addPoint (const BasicGeoTypes::GeoPos &p, double h=0.0) |
| void | addPoint3D (const BasicGeoTypes::GeoPos3D &p) |
| int | getNumPoints () const |
| bool | isEmpty () const |
Public Member Functions inherited from Maria::DrawObject | |
| 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 |
Protected Member Functions | |
| RouteArea (const std::shared_ptr< Maria::DrawObjectData > &data) | |
| std::shared_ptr< RouteAreaGeometry > | routeGeometry () const |
Protected Member Functions inherited from Maria::Polyline | |
| Polyline (const std::shared_ptr< Maria::DrawObjectData > &data) | |
| std::shared_ptr< PolylineGeometry > | geometry () const |
Friends | |
| class | DrawObjectFactory |
Additional Inherited Members | |
Protected Attributes inherited from Maria::DrawObject | |
| std::shared_ptr< DrawObjectData > | _data |
| int32_t | _index = -1 |
RouteArea draw object.
This object represents an area defined by a polyline center and widths that may be set individually for each leg - left, right or both.
All draw objects must be created through the DrawObjectFactory