Table of Contents

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

name string

Name (for code and tooltips).

color Color

Stroke color.

evaluate Func<double, double>

Value at a frequency in Hz, in the units of axis; NaN leaves a gap.

axis ResponseAxis

Vertical axis.

Properties

Axis

Vertical axis of the curve.

public ResponseAxis Axis { get; set; }

Property Value

ResponseAxis

Color

Stroke color.

public Color Color { get; set; }

Property Value

Color

Evaluate

Value at a frequency in Hz (NaN = gap).

public Func<double, double> Evaluate { get; set; }

Property Value

Func<double, double>

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

float

IsVisible

Whether the curve is drawn.

public bool IsVisible { get; set; }

Property Value

bool

Name

Name of the curve.

public string Name { get; set; }

Property Value

string

Stroke

Stroke style (dashes…), or null for a solid round-joined line.

public StrokeStyle? Stroke { get; set; }

Property Value

StrokeStyle

Thickness

Stroke thickness in DIPs.

public float Thickness { get; set; }

Property Value

float