Class VisualizationSettingsFlyout

Unified settings flyout for all visualization types.

Common: Autoscale toggle + optional fixed min/max inputs. Scope: Additionally shows channel offset control (auto/manual). Heatmap: Additionally shows scaler mode selector + colormap picker.

Created by each *View class and attached to a gear button.

Inheritance
VisualizationSettingsFlyout
Namespace: MOSAIC.Visualization
Assembly: MOSAIC.dll
Syntax
public sealed class VisualizationSettingsFlyout

Constructors

VisualizationSettingsFlyout(SettingsTarget)

Declaration
public VisualizationSettingsFlyout(SettingsTarget target)
Parameters
Type Name Description
SettingsTarget target

Fields

_applyBtn

Declaration
private readonly Button _applyBtn
Field Value
Type Description
Button

_applyGridBtn

Declaration
private readonly Button? _applyGridBtn
Field Value
Type Description
Button

_autoToggle

Declaration
private readonly ToggleButton _autoToggle
Field Value
Type Description
ToggleButton

_colormapPanel

Declaration
private readonly WrapPanel? _colormapPanel
Field Value
Type Description
WrapPanel

_colsInput

Declaration
private readonly TextBox? _colsInput
Field Value
Type Description
TextBox

_fixedPanel

Declaration
private readonly StackPanel _fixedPanel
Field Value
Type Description
StackPanel

_heatmap

Declaration
private HeatMapMonitor? _heatmap
Field Value
Type Description
HeatMapMonitor

_heatmapSection

Declaration
private readonly StackPanel? _heatmapSection
Field Value
Type Description
StackPanel

_maxInput

Declaration
private readonly TextBox _maxInput
Field Value
Type Description
TextBox

_minInput

Declaration
private readonly TextBox _minInput
Field Value
Type Description
TextBox

_offsetApplyBtn

Declaration
private readonly Button? _offsetApplyBtn
Field Value
Type Description
Button

_offsetAutoToggle

Declaration
private readonly ToggleButton? _offsetAutoToggle
Field Value
Type Description
ToggleButton

_offsetInput

Declaration
private readonly TextBox? _offsetInput
Field Value
Type Description
TextBox

_offsetManualPanel

Declaration
private readonly StackPanel? _offsetManualPanel
Field Value
Type Description
StackPanel

_root

Declaration
private readonly StackPanel _root
Field Value
Type Description
StackPanel

_rowsInput

Declaration
private readonly TextBox? _rowsInput
Field Value
Type Description
TextBox

_scalerCombo

Declaration
private readonly ComboBox? _scalerCombo
Field Value
Type Description
ComboBox

_scope

Declaration
private ScopeMonitor? _scope
Field Value
Type Description
ScopeMonitor

_snapshot

Declaration
private SnapshotMonitor? _snapshot
Field Value
Type Description
SnapshotMonitor

_spider

Declaration
private SpiderMonitor? _spider
Field Value
Type Description
SpiderMonitor

_statusLabel

Declaration
private readonly TextBlock _statusLabel
Field Value
Type Description
TextBlock

_target

Declaration
private readonly SettingsTarget _target
Field Value
Type Description
SettingsTarget

Properties

Content

Declaration
public Control Content { get; }
Property Value
Type Description
Control

Methods

AddColormapButton(string, bool, Action<HeatMapMonitor>)

Declaration
private void AddColormapButton(string label, bool isDark, Action<HeatMapMonitor> apply)
Parameters
Type Name Description
string label
bool isDark
Action<HeatMapMonitor> apply

ApplyHeatmapRange(double, double)

Declaration
private void ApplyHeatmapRange(double min, double max)
Parameters
Type Name Description
double min
double max

CreateFlyout()

Declaration
public Flyout CreateFlyout()
Returns
Type Description
Flyout

CreateGearButton(VisualizationSettingsFlyout)

Helper to create a standard gear button with this flyout attached.

Declaration
public static Button CreateGearButton(VisualizationSettingsFlyout flyout)
Parameters
Type Name Description
VisualizationSettingsFlyout flyout
Returns
Type Description
Button

GetTitle()

Declaration
private string GetTitle()
Returns
Type Description
string

MakeLabel(string, bool)

Declaration
private static TextBlock MakeLabel(string text, bool isDark)
Parameters
Type Name Description
string text
bool isDark
Returns
Type Description
TextBlock

MakeSeparator(bool)

Declaration
private static Border MakeSeparator(bool isDark)
Parameters
Type Name Description
bool isDark
Returns
Type Description
Border

MakeTextBox(string, string, bool)

Declaration
private static TextBox MakeTextBox(string watermark, string text, bool isDark)
Parameters
Type Name Description
string watermark
string text
bool isDark
Returns
Type Description
TextBox

OnApplyGrid(object?, RoutedEventArgs)

Declaration
private void OnApplyGrid(object? sender, RoutedEventArgs e)
Parameters
Type Name Description
object sender
RoutedEventArgs e

OnApplyOffset(object?, RoutedEventArgs)

Declaration
private void OnApplyOffset(object? sender, RoutedEventArgs e)
Parameters
Type Name Description
object sender
RoutedEventArgs e

OnApplyRange(object?, RoutedEventArgs)

Declaration
private void OnApplyRange(object? sender, RoutedEventArgs e)
Parameters
Type Name Description
object sender
RoutedEventArgs e

OnAutoToggleClick(object?, RoutedEventArgs)

Declaration
private void OnAutoToggleClick(object? sender, RoutedEventArgs e)
Parameters
Type Name Description
object sender
RoutedEventArgs e

OnOffsetAutoToggleClick(object?, RoutedEventArgs)

Declaration
private void OnOffsetAutoToggleClick(object? sender, RoutedEventArgs e)
Parameters
Type Name Description
object sender
RoutedEventArgs e

OnScalerChanged(object?, SelectionChangedEventArgs)

Declaration
private void OnScalerChanged(object? sender, SelectionChangedEventArgs e)
Parameters
Type Name Description
object sender
SelectionChangedEventArgs e

SetCol<T>(T, int)

Declaration
private static T SetCol<T>(T control, int col) where T : Control
Parameters
Type Name Description
T control
int col
Returns
Type Description
T
Type Parameters
Name Description
T

SetHeatmap(HeatMapMonitor?)

Declaration
public void SetHeatmap(HeatMapMonitor? heatmap)
Parameters
Type Name Description
HeatMapMonitor heatmap

SetScope(ScopeMonitor?)

Declaration
public void SetScope(ScopeMonitor? scope)
Parameters
Type Name Description
ScopeMonitor scope

SetSnapshot(SnapshotMonitor?)

Declaration
public void SetSnapshot(SnapshotMonitor? snapshot)
Parameters
Type Name Description
SnapshotMonitor snapshot

SetSpider(SpiderMonitor?)

Declaration
public void SetSpider(SpiderMonitor? spider)
Parameters
Type Name Description
SpiderMonitor spider

SetStatus(string)

Declaration
private void SetStatus(string text)
Parameters
Type Name Description
string text

SyncGridInputs()

Declaration
private void SyncGridInputs()

SyncOffsetControls()

Syncs the offset controls to the current scope state. Called when a new scope is attached via SetScope(ScopeMonitor?).

Declaration
private void SyncOffsetControls()

SyncToggle()

Declaration
private void SyncToggle()

TryParseRange(out double, out double)

Declaration
private bool TryParseRange(out double min, out double max)
Parameters
Type Name Description
double min
double max
Returns
Type Description
bool

Search documentation

Start typing to search the documentation.