Class DepthFilterViewModel

ViewModel for the DepthFilter card. Mirrors the FilterViewModel pattern: filter type buttons, slider + text cutoffs, order/taps, Apply/Reset.

Inheritance
DepthFilterViewModel
Namespace: MOSAIC.ViewModels.SignalProcessing
Assembly: MOSAIC.dll
Syntax
public class DepthFilterViewModel : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging

Constructors

DepthFilterViewModel(DepthFilter)

Declaration
public DepthFilterViewModel(DepthFilter depthFilter)
Parameters
Type Name Description
DepthFilter depthFilter

Fields

_depthFilter

Declaration
private readonly DepthFilter _depthFilter
Field Value
Type Description
DepthFilter

applyFilterCommand

The backing field for ApplyFilterCommand.

Declaration
private RelayCommand? applyFilterCommand
Field Value
Type Description
RelayCommand

resetFilterCommand

The backing field for ResetFilterCommand.

Declaration
private RelayCommand? resetFilterCommand
Field Value
Type Description
RelayCommand

setBandpassCommand

The backing field for SetBandpassCommand.

Declaration
private RelayCommand? setBandpassCommand
Field Value
Type Description
RelayCommand

setBandstopCommand

The backing field for SetBandstopCommand.

Declaration
private RelayCommand? setBandstopCommand
Field Value
Type Description
RelayCommand

setHighpassCommand

The backing field for SetHighpassCommand.

Declaration
private RelayCommand? setHighpassCommand
Field Value
Type Description
RelayCommand

setLowpassCommand

The backing field for SetLowpassCommand.

Declaration
private RelayCommand? setLowpassCommand
Field Value
Type Description
RelayCommand

Properties

ApplyFilterCommand

Gets an IRelayCommand instance wrapping ApplyFilter().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ApplyFilterCommand { get; }
Property Value
Type Description
IRelayCommand

DepthFilter

Exposes the underlying block for direct binding.

Declaration
public DepthFilter DepthFilter { get; }
Property Value
Type Description
DepthFilter

FilterTypes

Declaration
public FilterType[] FilterTypes { get; }
Property Value
Type Description
FilterType[]

Implementations

Declaration
public FilterImplementation[] Implementations { get; }
Property Value
Type Description
FilterImplementation[]

IsBandFilter

Whether band cutoffs section should be visible.

Declaration
public bool IsBandFilter { get; }
Property Value
Type Description
bool

IsFir

Whether FIR-specific settings should be visible.

Declaration
public bool IsFir { get; }
Property Value
Type Description
bool

MaxCutoff

Maximum cutoff for sliders (Nyquist of depth sample rate).

Declaration
public double MaxCutoff { get; }
Property Value
Type Description
double

MinCutoff

Minimum cutoff for sliders (near DC).

Declaration
public double MinCutoff { get; }
Property Value
Type Description
double

ResetFilterCommand

Gets an IRelayCommand instance wrapping ResetFilter().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand ResetFilterCommand { get; }
Property Value
Type Description
IRelayCommand

SelectedFilterType

Currently selected filter type (for button highlighting).

Declaration
public FilterType SelectedFilterType { get; }
Property Value
Type Description
FilterType

SetBandpassCommand

Gets an IRelayCommand instance wrapping SetBandpass().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetBandpassCommand { get; }
Property Value
Type Description
IRelayCommand

SetBandstopCommand

Gets an IRelayCommand instance wrapping SetBandstop().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetBandstopCommand { get; }
Property Value
Type Description
IRelayCommand

SetHighpassCommand

Gets an IRelayCommand instance wrapping SetHighpass().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetHighpassCommand { get; }
Property Value
Type Description
IRelayCommand

SetLowpassCommand

Gets an IRelayCommand instance wrapping SetLowpass().

Declaration
[ExcludeFromCodeCoverage]
public IRelayCommand SetLowpassCommand { get; }
Property Value
Type Description
IRelayCommand

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

INotifyPropertyChanged
INotifyPropertyChanging

Search documentation

Start typing to search the documentation.