Class DepthFilterViewModel
ViewModel for the DepthFilter card. Mirrors the FilterViewModel pattern:
filter type buttons, slider + text cutoffs, order/taps, Apply/Reset.
Inheritance
DepthFilterViewModel
Assembly: MOSAIC.dll
Syntax
public class DepthFilterViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
DepthFilterViewModel(DepthFilter)
Declaration
public DepthFilterViewModel(DepthFilter depthFilter)
Parameters
Fields
_depthFilter
Declaration
private readonly DepthFilter _depthFilter
Field Value
applyFilterCommand
Declaration
private RelayCommand? applyFilterCommand
Field Value
resetFilterCommand
Declaration
private RelayCommand? resetFilterCommand
Field Value
setBandpassCommand
Declaration
private RelayCommand? setBandpassCommand
Field Value
setBandstopCommand
Declaration
private RelayCommand? setBandstopCommand
Field Value
setHighpassCommand
Declaration
private RelayCommand? setHighpassCommand
Field Value
setLowpassCommand
Declaration
private RelayCommand? setLowpassCommand
Field Value
Properties
ApplyFilterCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ApplyFilterCommand { get; }
Property Value
DepthFilter
Exposes the underlying block for direct binding.
Declaration
public DepthFilter DepthFilter { get; }
Property Value
FilterTypes
Declaration
public FilterType[] FilterTypes { get; }
Property Value
Implementations
Declaration
public FilterImplementation[] Implementations { get; }
Property Value
IsBandFilter
Whether band cutoffs section should be visible.
Declaration
public bool IsBandFilter { get; }
Property Value
IsFir
Whether FIR-specific settings should be visible.
Declaration
public bool IsFir { get; }
Property Value
MaxCutoff
Maximum cutoff for sliders (Nyquist of depth sample rate).
Declaration
public double MaxCutoff { get; }
Property Value
MinCutoff
Minimum cutoff for sliders (near DC).
Declaration
public double MinCutoff { get; }
Property Value
ResetFilterCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ResetFilterCommand { get; }
Property Value
SelectedFilterType
Currently selected filter type (for button highlighting).
Declaration
public FilterType SelectedFilterType { get; }
Property Value
SetBandpassCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetBandpassCommand { get; }
Property Value
SetBandstopCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetBandstopCommand { get; }
Property Value
SetHighpassCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetHighpassCommand { get; }
Property Value
SetLowpassCommand
Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetLowpassCommand { get; }
Property Value
Methods
ApplyFilter()
Declaration
[RelayCommand]
private void ApplyFilter()
ResetFilter()
Declaration
[RelayCommand]
private void ResetFilter()
SetBandpass()
Declaration
[RelayCommand]
private void SetBandpass()
SetBandstop()
Declaration
[RelayCommand]
private void SetBandstop()
SetHighpass()
Declaration
[RelayCommand]
private void SetHighpass()
SetLowpass()
Declaration
[RelayCommand]
private void SetLowpass()
Implements