I'm trying to write a simple function that draws ellipses at certain device locations as seen in my code below.
void theellipse(const mn:: Point deviceLocation,mn::SceneGraphicsView* m_sceneView,QColor lineColor,mn::GraphicsOverlay* ellipseGraphicOverlay, MapRay *thisF)
{
const mn::Point normalizedPt = mn::GeometryEngine::normalizeCentralMeridian(deviceLocation);
mn::GeodesicEllipseParameters parameters(/*angle*/90,mn::AngularUnit(mn::AngularUnitId::Degrees),normalizedPt,
/*unit*/ mn::LinearUnit(mn::LinearUnitId::Kilometers),
/*maxpointCount*/10,
/*maxSegmentLength*/10000,
/*geometryType*/mn::GeometryType::Polygon,
/*SemiAxislength*/120,
/*SemiAxisLength*/210);
ellipseGraphicOverlay->sceneProperties().setSurfacePlacement(mn::SurfacePlacement::Draped);
m_sceneView->graphicsOverlays()->append(ellipseGraphicOverlay);
mn::PolygonBuilder PolygonBuilder(m_sceneView->spatialReference());
PolygonBuilder.addPoint(deviceLocation);
mn::Polygon ellipse1= mn::GeometryEngine::ellipseGeodesic(parameters);
It's not clear for me through looking at documentation how to turn geodesic ellipse parameters into scene symbols that are graphic layers.
Any help would be much appreciated. Thanks.
~mike