RadioPlan Settings: Difference between revisions
Jump to navigation
Jump to search
m (colour -> color) |
m (→) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Color schemas for different plots can be read and updated with '''IMariaRadioPlanLayer.Settings.ColorSchemaStore''' | Color schemas for different plots can be read and updated with '''IMariaRadioPlanLayer.Settings.ColorSchemaStore''' | ||
Get the [http://codedocs.maria.teleplanglobe.com/develop_gdk5/managed/ | 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_color_schema_store.html ColorSchema] 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 colorSchema = Settings.ColorSchemaStore.GetRenderColorSchema(PlotType.SignalLevelDbm); | var colorSchema = Settings.ColorSchemaStore.GetRenderColorSchema(PlotType.SignalLevelDbm); | ||
</syntaxhighlight>Replace the ColorSchema for a PlotType:<syntaxhighlight lang="c#"> | </syntaxhighlight>Replace the ColorSchema for a PlotType:<syntaxhighlight lang="c#"> | ||
| Line 15: | Line 15: | ||
Settings.ColorSchemaStore.SetColorSchema(PlotType.SignalLevelDbm, newSchema); | Settings.ColorSchemaStore.SetColorSchema(PlotType.SignalLevelDbm, newSchema); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Coverage Calculation Settings === | === Coverage Calculation Settings === | ||
Coverage Calculation settings can be get/set from '''[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_settings.html#a3b941e44aacfaeb4443c73d64050b96e IMariaRadioPlanLayer.Settings.CoverageCalculationSettings]:'''<syntaxhighlight lang="c#"> | Coverage Calculation settings can be get/set from '''[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_settings.html#a3b941e44aacfaeb4443c73d64050b96e IMariaRadioPlanLayer.Settings.CoverageCalculationSettings]:'''<syntaxhighlight lang="c#"> | ||
public record CoverageCalculationSettings(int | public record CoverageCalculationSettings(int resolution, int size, AreaShape calculationAreaShape, string? propagationModel, RxHeight rxHeight, PartsOfCalculation partsToCalculate) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 45: | Line 46: | ||
|RxHeight | |RxHeight | ||
|Receiver Antenna Height [m] and mode, Above Ground Level (AGL) or Above Sea Level (ASL) | |Receiver Antenna Height [m] and mode, Above Ground Level (AGL) or Above Sea Level (ASL) | ||
|- | |||
|PartsToCalculate | |||
|PartsOfCalculation | |||
|Control types of calculation to optimize speed and data size | |||
|} | |} | ||
<syntaxhighlight lang="c#"> | |||
public record PartsOfCalculation(bool PathLoss, bool LineOfSight, bool FreeSightHeight); | |||
</syntaxhighlight> | |||
[[Category:RadioPlan]] | [[Category:RadioPlan]] | ||
Latest revision as of 23:38, 16 May 2026
Radio plan settings is available from IMariaRadioPlanLayer.Settings
Color Schema Store
Color schemas for different plots can be read and updated with IMariaRadioPlanLayer.Settings.ColorSchemaStore
Get the ColorSchema for a PlotType:
var colorSchema = Settings.ColorSchemaStore.GetRenderColorSchema(PlotType.SignalLevelDbm);
Replace the ColorSchema for a PlotType:
var newSchema = new RenderColorSchema(
[
new RenderColorSchemaItem(-105, Colors.Red, "weak coverage"),
new RenderColorSchemaItem(-80, Colors.Green, "good coverage"),
], CompareOperators.GreaterThan, "dBm", 100, -105);
Settings.ColorSchemaStore.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, PartsOfCalculation partsToCalculate)
| Property | Type | Description |
|---|---|---|
| Resolution | m | Raster resolution in pixel size |
| Size | m | Size of calculation width (and height) for Rectangle, or diameter for Circle |
| CalculationAreaShape | AreaShape | Shape of calculation area, Circle or Rectangle |
| PropagationModel | string | Propagation model name |
| RxHeight | RxHeight | Receiver Antenna Height [m] and mode, Above Ground Level (AGL) or Above Sea Level (ASL) |
| PartsToCalculate | PartsOfCalculation | Control types of calculation to optimize speed and data size |
public record PartsOfCalculation(bool PathLoss, bool LineOfSight, bool FreeSightHeight);