RadioPlan Settings

From Maria GDK Wiki
Revision as of 13:26, 17 March 2026 by Trm (talk | contribs) (links and text)
Jump to navigation Jump to search

Radio plan settings is available from IMariaRadioPlanLayer.Settings

Colour Schema Store

Colour schemas for different plots can be read and updated with IMariaRadioPlanLayer.Settings.ColourSchemaStore

Get the ColourSchema for a PlotType:

var colourSchema = Settings.ColourSchemaStore.GetRenderColourSchema(PlotType.SignalLevelDbm);

Replace the ColourSchema for a PlotType:

var newSchema = new RenderColourSchema(
[
    new RenderColourSchemaItem(-105, Colors.Red, "weak coverage"),
    new RenderColourSchemaItem(-80, Colors.Green, "good coverage"),
], CompareOperators.GreaterThan, "dBm", 100, -105);

Settings.ColourSchemaStore.SetColorSchema(PlotType.SignalLevelDbm, newSchema);

Coverage Calculation Settings

Coverage Calculation settings can be get/set from IMariaRadioPlanLayer.Settings.CoverageCalculationSettings:

public record CoverageCalculationSettings(int Resolution, int Size, AreaShape CalculationAreaShape, string PropagationModel, RxHeight RxHeight);