ATAS
Loading...
Searching...
No Matches
ATAS.Indicators.FilterRangeBase< TValue, TFilter > Class Template Reference

Represents an abstract base class for filters that represent a range of values with custom JSON serialization/deserialization. More...

Inheritance diagram for ATAS.Indicators.FilterRangeBase< TValue, TFilter >:
[legend]
Collaboration diagram for ATAS.Indicators.FilterRangeBase< TValue, TFilter >:
[legend]

Protected Member Functions

 FilterRangeBase (bool enabledVisible, bool asScale=false)
 Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with the specified settings.
 
 FilterRangeBase ()
 Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with default settings.
 
override FilterRangeValue< TValue > ValueOnChanging (FilterRangeValue< TValue >? oldValue, FilterRangeValue< TValue >? newValue)
 
- Protected Member Functions inherited from ATAS.Indicators.Filter< FilterRangeValue< TValue >, TFilter >
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.
 

Additional Inherited Members

- Public Member Functions inherited from ATAS.Indicators.Filter< FilterRangeValue< TValue >, TFilter >
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 ()
 
- Static Public Member Functions inherited from ATAS.Indicators.Filter< FilterRangeValue< TValue >, TFilter >
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 .
 
- Properties inherited from ATAS.Indicators.Filter< FilterRangeValue< TValue >, TFilter >
TValue Value [get, set]
 Gets or sets the value of the filter.
 

Detailed Description

Represents an abstract base class for filters that represent a range of values with custom JSON serialization/deserialization.

Template Parameters
TValueThe type of values in the range.
TFilterThe derived filter class that implements the IFilterValue interface.
Type Constraints
TFilter :FilterBase 
TFilter :IFilterValue 

Constructor & Destructor Documentation

◆ FilterRangeBase() [1/2]

ATAS.Indicators.FilterRangeBase< TValue, TFilter >.FilterRangeBase ( bool  enabledVisible,
bool  asScale = false 
)
protected

Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with the specified settings.

Parameters
enabledVisibleA value indicating whether the filter's Enabled property is visible.
asScaleA value indicating whether the filter represents a scalar value.

◆ FilterRangeBase() [2/2]

ATAS.Indicators.FilterRangeBase< TValue, TFilter >.FilterRangeBase ( )
protected

Initializes a new instance of the FilterRangeBase<TValue, TFilter> class with default settings.

Member Function Documentation

◆ ValueOnChanging()

override FilterRangeValue< TValue > ATAS.Indicators.FilterRangeBase< TValue, TFilter >.ValueOnChanging ( FilterRangeValue< TValue >?  oldValue,
FilterRangeValue< TValue >?  newValue 
)
protected


The documentation for this class was generated from the following file: