Maria GDK 5.0.0.737
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::DrawObject Class Referenceabstract

#include <MDrawObject.h>

Inheritance diagram for Maria::DrawObject:
Maria::Ellipse Maria::FanArea Maria::OrbitArea Maria::PointSymbol Maria::Polygon Maria::Polyline Maria::CorridorArea Maria::RouteArea

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::DrawObjectDatagetData () 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
 

Detailed Description

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.

See also
DrawObjectData

Member Function Documentation

◆ getPosition()

virtual BasicGeoTypes::GeoPos Maria::DrawObject::getPosition ( ) const
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.

◆ getText()

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.

Returns
Current text string.

◆ setPosition()

virtual void Maria::DrawObject::setPosition ( const BasicGeoTypes::GeoPos pos)
pure virtual

Set origin of the draw object at the given position.

Parameters
posGeographical position of the draw object.

Implemented in Maria::Ellipse, Maria::FanArea, Maria::OrbitArea, Maria::PointSymbol, Maria::Polygon, and Maria::Polyline.

◆ setText()

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.

Parameters
textText string.

The documentation for this class was generated from the following files: