ATAS
|
Generic filter class that implements the IFilterValue interface. More...
Public Member Functions | |
override bool | Equals (object? obj) |
override int | GetHashCode () |
Filter (bool enabledVisible, bool asScale=false) | |
Initializes a new instance of the Filter<TValue, TFilter> class with the specified parameters. | |
Filter () | |
Initializes a new instance of the Filter<TValue, TFilter> class with default parameters. | |
TFilter | ValueOnChanging (Func< ValueChangingEventArgs< TValue >, TValue > onChanging) |
Sets a function to be invoked when the value of the filter is changing. | |
TFilter | ValueOnChanged (Action< TValue > onChanged) |
Sets an action to be invoked when the value of the filter has changed. | |
override string | ToString () |
Converts the filter to its string representation. | |
override object | Clone () |
Filter (bool enabledVisible, bool asScalar=false) | |
Initializes a new instance of the Filter<TValue> class with the specified visibility of the Enabled property and scalar value. | |
Filter () | |
Initializes a new instance of the Filter<TValue> class with default visibility settings. | |
Filter (bool enableVisible, bool asScalar=false) | |
Initializes a new instance of the Filter class with the specified visibility of the Enabled property and scalar value. | |
Filter () | |
Initializes a new instance of the Filter class with default visibility settings. | |
Public Member Functions inherited from ATAS.Indicators.Filter< TValue, Filter< TValue > > | |
override bool | Equals (object? obj) |
override int | GetHashCode () |
Filter (bool enabledVisible, bool asScale=false) | |
Initializes a new instance of the Filter<TValue, TFilter> class with the specified parameters. | |
Filter () | |
Initializes a new instance of the Filter<TValue, TFilter> class with default parameters. | |
Filter (bool enabledVisible, bool asScalar=false) | |
Initializes a new instance of the Filter<TValue> class with the specified visibility of the Enabled property and scalar value. | |
Filter () | |
Initializes a new instance of the Filter<TValue> class with default visibility settings. | |
Filter (bool enableVisible, bool asScalar=false) | |
Initializes a new instance of the Filter class with the specified visibility of the Enabled property and scalar value. | |
Filter () | |
Initializes a new instance of the Filter class with default visibility settings. | |
TFilter | ValueOnChanging (Func< ValueChangingEventArgs< TValue >, TValue > onChanging) |
Sets a function to be invoked when the value of the filter is changing. | |
TFilter | ValueOnChanged (Action< TValue > onChanged) |
Sets an action to be invoked when the value of the filter has changed. | |
override string | ToString () |
Converts the filter to its string representation. | |
override object | Clone () |
abstract object | Clone () |
Static Public Member Functions | |
static bool | operator== (Filter< TValue, TFilter >? left, Filter< TValue, TFilter >? right) |
static bool | operator!= (Filter< TValue, TFilter >? left, Filter< TValue, TFilter >? right) |
static | operator TValue (Filter< TValue, TFilter > other) |
Converts the Filter<TValue, TFilter> to its value of type TValue . | |
Static Public Member Functions inherited from ATAS.Indicators.Filter< TValue, Filter< TValue > > | |
static bool | operator== (Filter< TValue, TFilter >? left, Filter< TValue, TFilter >? right) |
static bool | operator!= (Filter< TValue, TFilter >? left, Filter< TValue, TFilter >? right) |
static | operator TValue (Filter< TValue, TFilter > other) |
Converts the Filter<TValue, TFilter> to its value of type TValue . | |
Protected Member Functions | |
bool | Equals (Filter< TValue, TFilter > other) |
void | RaiseValueOnChanged () |
Raises the NotifyPropertyChangedBase.PropertyChanged event for the Value property and invokes the value changed action. | |
virtual TValue | ValueOnChanging (TValue? oldValue, TValue? newValue) |
Invoked when the value of the filter is changing. | |
virtual TFilter | CreateNew () |
Creates a new instance of the derived filter type. | |
Protected Member Functions inherited from ATAS.Indicators.Filter< TValue, Filter< TValue > > | |
bool | Equals (Filter< TValue, TFilter > other) |
virtual TValue | ValueOnChanging (TValue? oldValue, TValue? newValue) |
Invoked when the value of the filter is changing. | |
void | RaiseValueOnChanged () |
Raises the NotifyPropertyChangedBase.PropertyChanged event for the Value property and invokes the value changed action. | |
virtual TFilter | CreateNew () |
Creates a new instance of the derived filter type. | |
Protected Member Functions inherited from ATAS.Indicators.FilterBase | |
FilterBase (bool enabledVisible, bool asScalar) | |
Initializes a new instance of the FilterBase class with the specified parameters. | |
FilterBase () | |
Initializes a new instance of the FilterBase class with default parameters. | |
Protected Member Functions inherited from ATAS.Indicators.NotifyPropertyChangedBase | |
void | RaisePropertyChanged ([CallerMemberName] string? propertyName=null!) |
Raises the PropertyChanged event for the specified property name. | |
void | SetProperty< TProperty > (ref TProperty store, TProperty value, [CallerMemberName] string? propertyName=null, Action? onChanged=null) |
Properties | |
TValue | Value [get, set] |
Gets or sets the value of the filter. | |
Properties inherited from ATAS.Indicators.Filter< TValue, Filter< TValue > > | |
TValue | Value [get, set] |
Gets or sets the value of the filter. | |
Properties inherited from ATAS.Indicators.FilterBase | |
bool | Enabled [get, set] |
Gets or sets a value indicating whether the filter is enabled. | |
bool | EnabledVisible [get] |
Gets a value indicating whether the visibility of the "Enabled" property is visible to users. | |
Properties inherited from ATAS.Indicators.IFilter | |
bool | Enabled [get, set] |
Gets or sets a value indicating whether the filter is enabled. | |
bool | EnabledVisible [get] |
Gets a value indicating whether the visibility of the "Enabled" property is visible to users. | |
bool | AsScalar [get] |
Gets a value indicating whether the filter operates in scalar mode. | |
Properties inherited from ATAS.Indicators.IFilterValue | |
object | Value [get, set] |
Gets or sets the value of the filter. The value can hold data of any type. | |
Additional Inherited Members | |
Protected Attributes inherited from ATAS.Indicators.FilterBase | |
readonly bool | _asScalar |
Events inherited from ATAS.Indicators.NotifyPropertyChangedBase | |
PropertyChangedEventHandler? | PropertyChanged |
Event that is raised when a property value changes. | |
Generic filter class that implements the IFilterValue interface.
Represents a filter with a decimal value type. Inherits from Filter<TValue, TFilter> where TValue is set to decimal and TFilter is set to Filter. The filter's JSON serialization is handled by the custom converter FilterJsonConverter.
Represents a filter with a specific value type TValue . Inherits from Filter<TValue, TFilter> where TFilter is set to Filter<TValue>.
TValue | The type of the filter value. |
TFilter | The type of the derived filter. |
TValue | The type of value held by the filter. |
ATAS.Indicators.Filter< TValue >.Filter | ( | bool | enabledVisible, |
bool | asScale = false |
||
) |
Initializes a new instance of the Filter<TValue, TFilter> class with the specified parameters.
enabledVisible | Specifies whether the "Enabled" property is visible to users. |
asScale | Specifies whether the filter operates in scalar mode. |
ATAS.Indicators.Filter< TValue >.Filter | ( | ) |
Initializes a new instance of the Filter<TValue, TFilter> class with default parameters.
ATAS.Indicators.Filter< TValue >.Filter | ( | bool | enabledVisible, |
bool | asScalar = false |
||
) |
Initializes a new instance of the Filter<TValue> class with the specified visibility of the Enabled property and scalar value.
enabledVisible | True if the Enabled property should be visible; otherwise, false. |
asScalar | True if the filter holds a scalar value; otherwise, false. |
ATAS.Indicators.Filter< TValue >.Filter | ( | ) |
Initializes a new instance of the Filter<TValue> class with default visibility settings.
ATAS.Indicators.Filter< TValue >.Filter | ( | bool | enableVisible, |
bool | asScalar = false |
||
) |
Initializes a new instance of the Filter class with the specified visibility of the Enabled property and scalar value.
enableVisible | True if the Enabled property should be visible; otherwise, false. |
asScalar | True if the filter holds a scalar value; otherwise, false. |
ATAS.Indicators.Filter< TValue >.Filter | ( | ) |
Initializes a new instance of the Filter class with default visibility settings.
|
virtual |
Implements ATAS.Indicators.FilterBase.
|
protectedvirtual |
Creates a new instance of the derived filter type.
Reimplemented from ATAS.Indicators.Filter< TValue, Filter< TValue > >.
Reimplemented in ATAS.Indicators.Filter< TValue >.
|
protected |
override bool ATAS.Indicators.Filter< TValue >.Equals | ( | object? | obj | ) |
override int ATAS.Indicators.Filter< TValue >.GetHashCode | ( | ) |
|
explicitstatic |
Converts the Filter<TValue, TFilter> to its value of type TValue .
other | The filter to convert. |
|
static |
|
static |
|
protected |
Raises the NotifyPropertyChangedBase.PropertyChanged event for the Value property and invokes the value changed action.
override string ATAS.Indicators.Filter< TValue >.ToString | ( | ) |
Converts the filter to its string representation.
TFilter ATAS.Indicators.Filter< TValue >.ValueOnChanged | ( | Action< TValue > | onChanged | ) |
Sets an action to be invoked when the value of the filter has changed.
onChanged | The action to be invoked. |
TFilter ATAS.Indicators.Filter< TValue >.ValueOnChanging | ( | Func< ValueChangingEventArgs< TValue >, TValue > | onChanging | ) |
Sets a function to be invoked when the value of the filter is changing.
onChanging | The function to be invoked. |
|
protectedvirtual |
Invoked when the value of the filter is changing.
oldValue | The old value of the filter. |
newValue | The new value of the filter. |
Reimplemented from ATAS.Indicators.Filter< TValue, Filter< TValue > >.
Reimplemented in ATAS.Indicators.Filter< TValue >.
|
getset |
Gets or sets the value of the filter.
Implements ATAS.Indicators.IFilterValue.