![]() |
Maria GDK 5.0.0.737
Documentation of native code in develop branch
|
#include <MDrawObject.h>
Public Member Functions | |
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 Attributes | |
std::shared_ptr< DrawObjectData > | _data |
int32_t | _index = -1 |
DrawObject - Base class for all draw objects. This is an instance of a graphics object with interface methods for accessing and modifying the underlying DrawObjectData.
|
pure virtual |
Get the origin of the draw object in geographical coordinates.
Implemented in Maria::Ellipse, Maria::FanArea, Maria::OrbitArea, Maria::PointSymbol, Maria::Polygon, and Maria::Polyline.
std::string Maria::DrawObject::getText | ( | ) | const |
Get text for draw object.
Most draw objects support a generic text tag which usually is displayed at the center of the object. For point symbols, use the getLabel() mehtod instead.
|
pure virtual |
Set origin of the draw object at the given position.
pos | Geographical position of the draw object. |
Implemented in Maria::Ellipse, Maria::FanArea, Maria::OrbitArea, Maria::PointSymbol, Maria::Polygon, and Maria::Polyline.
void Maria::DrawObject::setText | ( | const std::string & | text | ) |
Set text for draw object.
Most draw objects support a generic text tag which usually is displayed at the center of the object. For point symbols, use the setLabel() mehtod instead.
text | Text string. |