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
channelintThe channel.
sizeVector2The size of the view, in pixels.
coloruintThe color the waveforms are drawn in, packed as
0xAABBGGRR.centerdoubleThe value at the middle of the view, in the waveforms' units.
rangedoubleThe amplitude the view's height spans, in the waveforms' units.
thresholddouble?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.