Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::OrbitArea Class Referencefinal

#include <MOrbitArea.h>

Inheritance diagram for Maria::OrbitArea:
Maria::DrawObject

Public Member Functions

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.
 
void setFirstPoint (const BasicGeoTypes::GeoPos &firstPoint)
 
BasicGeoTypes::GeoPos getFirstPoint () const
 
void setSecondPoint (const BasicGeoTypes::GeoPos &secondPoint)
 
BasicGeoTypes::GeoPos getSecondPoint () const
 
double getWidth () const
 Get the width of the object (diameter of the half circles).
 
void setWidth (double width)
 Set the width of the object (diameter of the half circles).
 
void setAlignment (OrbitAreaGeometry::Alignment alignment)
 Set the placement of the object relative to the line between first and second point.
 
OrbitAreaGeometry::Alignment getAlignment () const
 Get the placement of the object relative to the line between first and second point.
 
- 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::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 Member Functions

std::shared_ptr< OrbitAreaGeometrygeometry () const
 

Friends

class DrawObjectFactory
 

Additional Inherited Members

- Protected Attributes inherited from Maria::DrawObject
std::shared_ptr< DrawObjectData_data
 
int32_t _index = -1
 

Detailed Description

OrbitArea - This object represents an oval "race-track" shape object defined by two geographical points which are the centers of two half-cirles and two straight lines between the half circles.

Member Function Documentation

◆ getPosition()

BasicGeoTypes::GeoPos Maria::OrbitArea::getPosition ( ) const
overridevirtual

Get the origin of the draw object in geographical coordinates.

Implements Maria::DrawObject.

◆ getWidth()

double Maria::OrbitArea::getWidth ( ) const
inline

Get the width of the object (diameter of the half circles).

Returns
Width (in meters).

◆ setAlignment()

void Maria::OrbitArea::setAlignment ( OrbitAreaGeometry::Alignment  alignment)
inline

Set the placement of the object relative to the line between first and second point.

Parameters
alignmentEnum value representing the alignment.

◆ setPosition()

void Maria::OrbitArea::setPosition ( const BasicGeoTypes::GeoPos pos)
overridevirtual

Set origin of the draw object at the given position.

Parameters
posGeographical position of the draw object.

Implements Maria::DrawObject.

◆ setWidth()

void Maria::OrbitArea::setWidth ( double  width)
inline

Set the width of the object (diameter of the half circles).

Parameters
widthWidth in meters.

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