![]() |
Maria GDK 5.0.0.737
Documentation of native code in develop branch
|
#include <MDrawObjectDataFactory.h>
Public Member Functions | |
std::shared_ptr< DrawObjectData > | createGenericPolygon (const Maria::ItemId &itemId) |
Create an empty polygon object. | |
std::shared_ptr< DrawObjectData > | createPolygon (const std::string &typeId, const Maria::ItemId &itemId) |
std::shared_ptr< DrawObjectData > | createGenericPolygon (const Maria::ItemId &itemId, const Maria::PolygonGeometry &poly) |
Create a polygon object. | |
std::shared_ptr< DrawObjectData > | createGenericPolygon (const Maria::ItemId &itemId, const Maria::PolygonGeometry &poly, const std::map< std::string, std::string > &fields) |
Create a polygon object with data fields. | |
std::shared_ptr< DrawObjectData > | createGenericPolygon (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points) |
Create a polygon object from a list of geographical points. | |
std::shared_ptr< DrawObjectData > | createGenericPolygon (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, const std::map< std::string, std::string > &fields) |
Create a polygon object from a list of geographical points and data fields. | |
std::shared_ptr< DrawObjectData > | createPolyline (const std::string &typeId, const Maria::ItemId &itemId) |
Create an empty polyline object. | |
std::shared_ptr< DrawObjectData > | createGenericPolyline (const Maria::ItemId &itemId) |
std::shared_ptr< DrawObjectData > | createPolyline (const std::string &typeId, const Maria::ItemId &itemId, const Maria::PolylineGeometry &polyLine) |
Create generic polyline from geometry. | |
std::shared_ptr< DrawObjectData > | createGenericPolyline (const Maria::ItemId &itemId, const Maria::PolylineGeometry &polyLine) |
std::shared_ptr< DrawObjectData > | createPolyline (const std::string &typeId, const Maria::ItemId &itemId, const Maria::PolylineGeometry &polyLine, const std::map< std::string, std::string > &fields) |
Create generic polyline from geometry and data fields. | |
std::shared_ptr< DrawObjectData > | createGenericPolyline (const Maria::ItemId &itemId, const Maria::PolylineGeometry &polyLine, const std::map< std::string, std::string > &fields) |
std::shared_ptr< DrawObjectData > | createPolyline (const std::string &typeId, const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points) |
Create a polyline object from a list of geographical points. | |
std::shared_ptr< DrawObjectData > | createGenericPolyline (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points) |
std::shared_ptr< DrawObjectData > | createPolyline (const std::string &typeId, const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, const std::map< std::string, std::string > &fields) |
Create a polyline object from a list of geographical points and data fields. | |
std::shared_ptr< DrawObjectData > | createGenericPolyline (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, const std::map< std::string, std::string > &fields) |
std::shared_ptr< DrawObjectData > | createGenericCorridorArea (const Maria::ItemId &itemId) |
Create an empty corridor area object. | |
std::shared_ptr< DrawObjectData > | createGenericCorridorArea (const Maria::ItemId &itemId, const Maria::CorridorAreaGeometry &corridorArea) |
Create corridor area from geometry. | |
std::shared_ptr< DrawObjectData > | createGenericCorridorArea (const Maria::ItemId &itemId, const Maria::CorridorAreaGeometry &corridorArea, const std::map< std::string, std::string > &fields) |
Create corridor area from geometry and data fields. | |
std::shared_ptr< DrawObjectData > | createGenericCorridorArea (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, double width) |
Create a corridor area from a center line and width, with data fields. | |
std::shared_ptr< DrawObjectData > | createGenericCorridorArea (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, double width, const std::map< std::string, std::string > &fields) |
Create a corridor area from a center line and width, with data fields. | |
std::shared_ptr< DrawObjectData > | createGenericEllipse (const Maria::ItemId &itemId) |
Create an empty ellipse object. | |
std::shared_ptr< DrawObjectData > | createGenericEllipse (const Maria::ItemId &itemId, const BasicGeoTypes::GeoPos ¢er, const BasicGeoTypes::GeoPos &firstConjugatePoint, const BasicGeoTypes::GeoPos &secondConjugatePoint) |
Create an ellipse object from three points. This method can be used to create a rotated ellipse object defined by a center point and the two points intersecting the two semi axis and the perimeter. The semi-axis defined by the center and conjugate points should be perpendicular to each other. | |
std::shared_ptr< DrawObjectData > | createGenericEllipse (const Maria::ItemId &itemId, const BasicGeoTypes::GeoPos ¢er, const BasicGeoTypes::GeoPos &firstConjugatePoint, const BasicGeoTypes::GeoPos &secondConjugatePoint, const std::map< std::string, std::string > &fields) |
Create an ellipse object with data fields from three points. This method can be used to create a rotated ellipse object defined by a center point and the two points intersecting the two semi axis and the perimeter. The semi-axis defined by the center and conjugate points should be perpendicular to each other. | |
std::shared_ptr< DrawObjectData > | createGenericEllipse (const Maria::ItemId &itemId, const BasicGeoTypes::GeoPos ¢er, double rx, double ry) |
Create and ellipse object defined by a center point and two semi-axis lengths' This convenience method will create an ellipse oriented along the north-south and east-west axis. | |
std::shared_ptr< DrawObjectData > | createGenericEllipse (const Maria::ItemId &itemId, const BasicGeoTypes::GeoPos ¢er, double rx, double ry, const std::map< std::string, std::string > &fields) |
Create and ellipse object defined by a center point and two semi-axis lengths with data fields. | |
std::shared_ptr< DrawObjectData > | createGenericFanArea (const Maria::ItemId &itemId) |
Create an empty fan area object. | |
std::shared_ptr< DrawObjectData > | createGenericFanArea (const Maria::ItemId &itemId, const Maria::FanAreaGeometry &fanArea) |
Create a fan area with geometry. | |
std::shared_ptr< DrawObjectData > | createGenericFanArea (const Maria::ItemId &itemId, const Maria::FanAreaGeometry &fanArea, const std::map< std::string, std::string > &fields) |
Create a fan area with geometry and data fields. | |
std::shared_ptr< DrawObjectData > | createGenericOrbitArea (const Maria::ItemId &itemId) |
Create an empty orbit area object. | |
std::shared_ptr< DrawObjectData > | createGenericOrbitArea (const Maria::ItemId &itemId, const Maria::OrbitAreaGeometry &orbitArea) |
Create an orbit area with geometry and data fields. | |
std::shared_ptr< DrawObjectData > | createGenericOrbitArea (const Maria::ItemId &itemId, const Maria::OrbitAreaGeometry &orbitArea, const std::map< std::string, std::string > &fields) |
Create an orbit area with geometry and data fields. | |
std::shared_ptr< DrawObjectData > | createSymbolPoint (const Maria::ItemId &itemId) const |
std::shared_ptr< DrawObjectData > | createSymbolPoint (const std::string &typeId, const Maria::ItemId &itemId) const |
std::shared_ptr< DrawObjectData > | createSymbolPoint (const Maria::ItemId &itemId, const BasicGeoTypes::GeoPos &pos, const std::map< std::string, std::string > &fields) |
std::shared_ptr< DrawObjectData > | createGenericRouteArea (const Maria::ItemId &itemId) |
Create an empty route area object. | |
std::shared_ptr< DrawObjectData > | createGenericRouteArea (const Maria::ItemId &itemId, const Maria::RouteAreaGeometry &routeArea) |
Create route area from geometry. | |
std::shared_ptr< DrawObjectData > | createGenericRouteArea (const Maria::ItemId &itemId, const Maria::RouteAreaGeometry &routeArea, const std::map< std::string, std::string > &fields) |
Create route area from geometry and data fields. | |
std::shared_ptr< DrawObjectData > | createGenericRouteArea (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, const std::vector< double > &leftWidths, const std::vector< double > &rightWidths) |
Create a route area from a center line, left and right widths, with data fields. | |
std::shared_ptr< DrawObjectData > | createGenericRouteArea (const Maria::ItemId &itemId, const std::vector< BasicGeoTypes::GeoPos > &points, const std::vector< double > &leftWidths, const std::vector< double > &rightWidths, const std::map< std::string, std::string > &fields) |
Create a route area from a center line and width, with data fields. | |
DrawObjectDataFactory - Factory methods for creating draw object data.
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericCorridorArea | ( | const Maria::ItemId & | itemId | ) |
Create an empty corridor area object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericCorridorArea | ( | const Maria::ItemId & | itemId, |
const Maria::CorridorAreaGeometry & | corridorArea | ||
) |
Create corridor area from geometry.
itemId | Unique ID for this draw object |
corridorArea | geometry for the corridor area. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericCorridorArea | ( | const Maria::ItemId & | itemId, |
const Maria::CorridorAreaGeometry & | corridorArea, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create corridor area from geometry and data fields.
itemId | Unique ID for this draw object |
corridorArea | geometry for the corridor area. |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericCorridorArea | ( | const Maria::ItemId & | itemId, |
const std::vector< BasicGeoTypes::GeoPos > & | points, | ||
double | width | ||
) |
Create a corridor area from a center line and width, with data fields.
itemId | Unique ID for this draw object |
points | A list of geographical points defining the center line of the corridor. |
width | the width of the corridor area in meters. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericCorridorArea | ( | const Maria::ItemId & | itemId, |
const std::vector< BasicGeoTypes::GeoPos > & | points, | ||
double | width, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create a corridor area from a center line and width, with data fields.
itemId | |
points | A list of geographical points defining the center line of the corridor. |
width | the width of the corridor area in meters. |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericEllipse | ( | const Maria::ItemId & | itemId | ) |
Create an empty ellipse object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericEllipse | ( | const Maria::ItemId & | itemId, |
const BasicGeoTypes::GeoPos & | center, | ||
const BasicGeoTypes::GeoPos & | firstConjugatePoint, | ||
const BasicGeoTypes::GeoPos & | secondConjugatePoint | ||
) |
Create an ellipse object from three points. This method can be used to create a rotated ellipse object defined by a center point and the two points intersecting the two semi axis and the perimeter. The semi-axis defined by the center and conjugate points should be perpendicular to each other.
itemId | Unique ID for this draw object |
center | Center point of the ellipse |
firstConjugatePoint | The intersection point of the ellipse perimeter and the first semi-axis of the ellipse. |
secondConjugatePoint | The intersection point of the ellipse perimeter and the second semi-axis of the ellipse. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericEllipse | ( | const Maria::ItemId & | itemId, |
const BasicGeoTypes::GeoPos & | center, | ||
const BasicGeoTypes::GeoPos & | firstConjugatePoint, | ||
const BasicGeoTypes::GeoPos & | secondConjugatePoint, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create an ellipse object with data fields from three points. This method can be used to create a rotated ellipse object defined by a center point and the two points intersecting the two semi axis and the perimeter. The semi-axis defined by the center and conjugate points should be perpendicular to each other.
itemId | Unique ID for this draw object |
center | Center point of the ellipse |
firstConjugatePoint | |
secondConjugatePoint | |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericEllipse | ( | const Maria::ItemId & | itemId, |
const BasicGeoTypes::GeoPos & | center, | ||
double | rx, | ||
double | ry | ||
) |
Create and ellipse object defined by a center point and two semi-axis lengths' This convenience method will create an ellipse oriented along the north-south and east-west axis.
itemId | Unique ID for this draw object |
center | Center point of the ellipse |
rx | Length (in meters) of the horizontal (east-west) semi-axis |
ry | Length (in meters) of the vertical (north-south) semi-axis |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericEllipse | ( | const Maria::ItemId & | itemId, |
const BasicGeoTypes::GeoPos & | center, | ||
double | rx, | ||
double | ry, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create and ellipse object defined by a center point and two semi-axis lengths with data fields.
itemId | Unique ID for this draw object |
center | Center point of the ellipse |
rx | Length (in meters) of the horizontal (east-west) semi-axis |
ry | Length (in meters) of the vertical (north-south) semi-axis |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericFanArea | ( | const Maria::ItemId & | itemId | ) |
Create an empty fan area object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericFanArea | ( | const Maria::ItemId & | itemId, |
const Maria::FanAreaGeometry & | fanArea | ||
) |
Create a fan area with geometry.
itemId | Unique ID for this draw object |
fanArea | Geometry for the object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericFanArea | ( | const Maria::ItemId & | itemId, |
const Maria::FanAreaGeometry & | fanArea, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create a fan area with geometry and data fields.
itemId | Unique ID for this draw object |
fanArea | Geometry for the object |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericOrbitArea | ( | const Maria::ItemId & | itemId | ) |
Create an empty orbit area object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericOrbitArea | ( | const Maria::ItemId & | itemId, |
const Maria::OrbitAreaGeometry & | orbitArea | ||
) |
Create an orbit area with geometry and data fields.
itemId | Unique ID for this draw object |
orbitArea | Geometry for the object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericOrbitArea | ( | const Maria::ItemId & | itemId, |
const Maria::OrbitAreaGeometry & | orbitArea, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create an orbit area with geometry and data fields.
itemId | Unique ID for this draw object |
orbitArea | Geometry for the object |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericPolygon | ( | const Maria::ItemId & | itemId | ) |
Create an empty polygon object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericPolygon | ( | const Maria::ItemId & | itemId, |
const Maria::PolygonGeometry & | poly | ||
) |
Create a polygon object.
itemId | Unique ID for this draw object |
poly | Input polygon defined in geographical coordinates with longitude along the x-axis and latitude in the y-axis. This polygon can contain multiple rings and holes. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericPolygon | ( | const Maria::ItemId & | itemId, |
const Maria::PolygonGeometry & | poly, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create a polygon object with data fields.
itemId | Unique ID for this draw object |
poly | Input polygon defined in geographical coordinates with longitude along the x-axis and latitude in the y-axis. This polygon can contain multiple rings and holes. |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericPolygon | ( | const Maria::ItemId & | itemId, |
const std::vector< BasicGeoTypes::GeoPos > & | points | ||
) |
Create a polygon object from a list of geographical points.
itemId | Unique ID for this draw object |
points | At least 3 geographical points defining the outer perimeter of the polygon. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericPolygon | ( | const Maria::ItemId & | itemId, |
const std::vector< BasicGeoTypes::GeoPos > & | points, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create a polygon object from a list of geographical points and data fields.
itemId | Unique ID for this draw object |
points | At least 3 geographical points defining the outer perimeter of the polygon. |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericRouteArea | ( | const Maria::ItemId & | itemId | ) |
Create an empty route area object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericRouteArea | ( | const Maria::ItemId & | itemId, |
const Maria::RouteAreaGeometry & | routeArea | ||
) |
Create route area from geometry.
itemId | Unique ID for this draw object |
routeArea | geometry for the route area. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericRouteArea | ( | const Maria::ItemId & | itemId, |
const Maria::RouteAreaGeometry & | routeArea, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create route area from geometry and data fields.
itemId | Unique ID for this draw object |
routeArea | geometry for the route area. |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericRouteArea | ( | const Maria::ItemId & | itemId, |
const std::vector< BasicGeoTypes::GeoPos > & | points, | ||
const std::vector< double > & | leftWidths, | ||
const std::vector< double > & | rightWidths | ||
) |
Create a route area from a center line, left and right widths, with data fields.
itemId | Unique ID for this draw object |
points | A list of geographical points defining the center line of the corridor. |
leftWidths | Array of left widths of the route area (in meters) |
rightWidths | Array of right widths of the route area (in meters) |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createGenericRouteArea | ( | const Maria::ItemId & | itemId, |
const std::vector< BasicGeoTypes::GeoPos > & | points, | ||
const std::vector< double > & | leftWidths, | ||
const std::vector< double > & | rightWidths, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create a route area from a center line and width, with data fields.
itemId | |
points | A list of geographical points defining the center line of the corridor. |
leftWidths | Array of left widths of the route area (in meters) |
rightWidths | Array of right widths of the route area (in meters) |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createPolyline | ( | const std::string & | typeId, |
const Maria::ItemId & | itemId | ||
) |
Create an empty polyline object.
itemId | Unique ID for this draw object |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createPolyline | ( | const std::string & | typeId, |
const Maria::ItemId & | itemId, | ||
const Maria::PolylineGeometry & | polyLine | ||
) |
Create generic polyline from geometry.
itemId | Unique ID for this draw object |
polyLine | geometry for this object. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createPolyline | ( | const std::string & | typeId, |
const Maria::ItemId & | itemId, | ||
const Maria::PolylineGeometry & | polyLine, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create generic polyline from geometry and data fields.
itemId | Unique ID for this draw object |
polyLine | geometry for this object. |
fields | key/value map for the data fields. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createPolyline | ( | const std::string & | typeId, |
const Maria::ItemId & | itemId, | ||
const std::vector< BasicGeoTypes::GeoPos > & | points | ||
) |
Create a polyline object from a list of geographical points.
itemId | Unique ID for this draw object |
points | A list of geographical points defining the polyline. |
std::shared_ptr< DrawObjectData > Maria::DrawObjectDataFactory::createPolyline | ( | const std::string & | typeId, |
const Maria::ItemId & | itemId, | ||
const std::vector< BasicGeoTypes::GeoPos > & | points, | ||
const std::map< std::string, std::string > & | fields | ||
) |
Create a polyline object from a list of geographical points and data fields.
itemId | Unique ID for this draw object |
points | A list of geographical points defining the polyline. |
fields | key/value map for the data fields. |