Class ResponseCurve
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
One curve of a FrequencyResponseView: a function of the frequency (Hz) evaluated once per pixel column.
public sealed class ResponseCurve
- Inheritance
-
ResponseCurve
- Inherited Members
Constructors
ResponseCurve(string, Color, Func<double, double>, ResponseAxis)
Creates a curve.
public ResponseCurve(string name, Color color, Func<double, double> evaluate, ResponseAxis axis = ResponseAxis.Left)
Parameters
namestringName (for code and tooltips).
colorColorStroke color.
evaluateFunc<double, double>Value at a frequency in Hz, in the units of
axis; NaN leaves a gap.axisResponseAxisVertical axis.
Properties
Axis
Vertical axis of the curve.
public ResponseAxis Axis { get; set; }
Property Value
Color
Stroke color.
public Color Color { get; set; }
Property Value
Evaluate
Value at a frequency in Hz (NaN = gap).
public Func<double, double> Evaluate { get; set; }
Property Value
FillOpacity
Opacity of the area between the curve and the left-axis zero (0 = no fill). Left-axis curves only.
public float FillOpacity { get; set; }
Property Value
IsVisible
Whether the curve is drawn.
public bool IsVisible { get; set; }
Property Value
Name
Name of the curve.
public string Name { get; set; }
Property Value
Stroke
Stroke style (dashes…), or null for a solid round-joined line.
public StrokeStyle? Stroke { get; set; }
Property Value
Thickness
Stroke thickness in DIPs.
public float Thickness { get; set; }