Table of Contents

Method Draw

Namespace
OpenEphys.EphysVisualization.Design
Assembly
OpenEphys.EphysVisualization.Design.dll

Draw(int, Vector2, uint, double, double, double?)

Draws one channel's density at the cursor, with zero, the threshold, and the duration, count and rate labeled, and the time and amplitude under the pointer. Call it with the window's GL context current, as it is while a frame is drawn.

public double? Draw(int channel, Vector2 size, uint color, double center, double range, double? threshold = null)

Parameters

channel int

The channel.

size Vector2

The size of the view, in pixels.

color uint

The color the waveforms are drawn in, packed as 0xAABBGGRR.

center double

The value at the middle of the view, in the waveforms' units.

range double

The amplitude the view's height spans, in the waveforms' units.

threshold double?

The threshold the events were detected at, in the waveforms' units, or null for none.

Returns

double?

The threshold dropped this frame, or null while none was.

Remarks

The amplitudes drawn are given each time, so a view beside a plot can take the plot's and change with it. The threshold's line can be dragged, and the value it is dropped at is returned for the owner to detect at.