Method DrawPlot
- Namespace
- OpenEphys.EphysVisualization.Design
- Assembly
- OpenEphys.EphysVisualization.Design.dll
DrawPlot(Vector2, int, bool)
Draws the waveform plot at the cursor, or the fault in its place.
protected void DrawPlot(Vector2 size, int hoveredChannel = -1, bool keysElsewhere = false)
Parameters
sizeVector2The size of the plot in pixels. A component of zero or less fills the space left in that direction, as ImGui sizes a child window.
hoveredChannelintThe channel hovered elsewhere, such as on a probe, or -1 for none. It is drawn as one under the pointer is, and not scrolled to.
keysElsewhereboolWhether the pointer is over a pane beside the plot that answers keys of its own, such as a probe, so the plot leaves its keys to it, all but Space, Q, E and X, which pause and act on the selected channel the pane can select too. Elsewhere in the window, the control strip included, the plot answers its keys.