RadioPlan Settings: Difference between revisions

From Maria GDK Wiki
Jump to navigation Jump to search
(adding links)
m (links and text)
Line 1: Line 1:
Radio plan settings is available from '''IMariaRadioPlanLayer.Settings'''
Radio plan settings is available from '''[http://codedocs.maria.teleplanglobe.com/develop_gdk5/managed/class_t_p_g_1_1_g_d_k_1_1_common_core_1_1_radio_plan_1_1_settings_1_1_radio_plan_settings.html IMariaRadioPlanLayer.Settings]'''


=== Colour schema store ===
=== Colour Schema Store ===
Colour schemas for different plots can be read and updated with '''IMariaRadioPlanLayer.Settings.ColourSchemaStore'''
Colour schemas for different plots can be read and updated with '''IMariaRadioPlanLayer.Settings.ColourSchemaStore'''


Get the [http://codedocs.maria.teleplanglobe.com/develop_gdk5/managed/class_t_p_g_1_1_g_d_k_1_1_common_core_1_1_radio_plan_1_1_renderer_1_1_colour_schema_store.html ColourSchema] for a [http://codedocs.maria.teleplanglobe.com/develop_gdk5/managed/namespace_t_p_g_1_1_g_d_k_1_1_common_core_1_1_radio_plan_1_1_renderer.html#a5e6c89ccda280801a358a41beca7eafe PlotType]:<syntaxhighlight lang="c#">
Get the [http://codedocs.maria.teleplanglobe.com/develop_gdk5/managed/class_t_p_g_1_1_g_d_k_1_1_common_core_1_1_radio_plan_1_1_renderer_1_1_colour_schema_store.html ColourSchema] for a [http://codedocs.maria.teleplanglobe.com/develop_gdk5/managed/namespace_t_p_g_1_1_g_d_k_1_1_common_core_1_1_radio_plan_1_1_renderer.html#a5e6c89ccda280801a358a41beca7eafe PlotType]:<syntaxhighlight lang="c#">
var colourSchema = Settings.ColourSchemaStore.GetRenderColourSchema(PlotType.SignalLevelDbm);
var colourSchema = Settings.ColourSchemaStore.GetRenderColourSchema(PlotType.SignalLevelDbm);
</syntaxhighlight>Replace a colour schema<syntaxhighlight lang="c#">
</syntaxhighlight>Replace the ColourSchema for a PlotType:<syntaxhighlight lang="c#">
var newSchema = new RenderColourSchema(
var newSchema = new RenderColourSchema(
[
[
Line 16: Line 16:
</syntaxhighlight>
</syntaxhighlight>


=== Coverage roperties ===
=== Coverage Calculation Settings ===
Coverage properties can be set from '''IMariaRadioPlanLayer.Settings.CoverageProperties'''<syntaxhighlight lang="c#">
Coverage Calculation settings can be get/set from '''IMariaRadioPlanLayer.Settings.CoverageCalculationSettings:'''<syntaxhighlight lang="c#">
public record CoverageProperties(int Resolution, int Size, AreaShape CalculationAreaShape, string PropagationModel, RxHeight RxHeight);
public record CoverageCalculationSettings(int Resolution, int Size, AreaShape CalculationAreaShape, string PropagationModel, RxHeight RxHeight);
</syntaxhighlight>
</syntaxhighlight>
[[Category:RadioPlan]]
[[Category:RadioPlan]]

Revision as of 13:26, 17 March 2026

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);