|
TachyonUI 1.1.0
High-performance UI for building tools.
|
How one Plot shows a PlotData: the series picked, the part in view, and what the user is doing in it. More...
#include <gui_controls/gui_plot_types.h>
Public Attributes | |
| int | shownSeries = -1 |
| The series shown on its own (its chip picked), or -1 for all of them overlaid. | |
Internal: kept between frames while the user works | |
| Gesture< std::vector< float > > | handleDrag |
| a handle dragged; the handles as they were, for Escape and the edit | |
| Gesture< float > | panDrag |
| the view dragged (middle, or Alt + left); its left end as it was | |
| float | shownXMin = 0.0f |
| a handle dragged; the handles as they were, for Escape and the edit | |
| float | shownXMax = 1.0f |
| the part of the x range in view, once zoomed | |
| bool | shownSet = false |
| false: all of the x range | |
| int | activeHandle = 0 |
| the one dragged last; the arrow keys move it | |
| IntRect | plotRect {} |
| the plot last frame, in screen pixels | |
| float | hoverX = 0.0f |
| where the pointer is, along x | |
| bool | hovered = false |
| a handle dragged; the handles as they were, for Escape and the edit | |
| uint32_t | edits = 0 |
| counts the edits committed through this view, for Plot's return | |
| uint32_t | editsSeen = 0 |
| a handle dragged; the handles as they were, for Escape and the edit | |
How one Plot shows a PlotData: the series picked, the part in view, and what the user is doing in it.
Keep one per view, from frame to frame.
| int tachyon::PlotViewState::shownSeries = -1 |
The series shown on its own (its chip picked), or -1 for all of them overlaid.
| Gesture<std::vector<float> > tachyon::PlotViewState::handleDrag |
a handle dragged; the handles as they were, for Escape and the edit
| Gesture<float> tachyon::PlotViewState::panDrag |
the view dragged (middle, or Alt + left); its left end as it was
| float tachyon::PlotViewState::shownXMin = 0.0f |
a handle dragged; the handles as they were, for Escape and the edit
| float tachyon::PlotViewState::shownXMax = 1.0f |
the part of the x range in view, once zoomed
| bool tachyon::PlotViewState::shownSet = false |
false: all of the x range
| int tachyon::PlotViewState::activeHandle = 0 |
the one dragged last; the arrow keys move it
| IntRect tachyon::PlotViewState::plotRect {} |
the plot last frame, in screen pixels
| float tachyon::PlotViewState::hoverX = 0.0f |
where the pointer is, along x
| bool tachyon::PlotViewState::hovered = false |
a handle dragged; the handles as they were, for Escape and the edit
| uint32_t tachyon::PlotViewState::edits = 0 |
counts the edits committed through this view, for Plot's return
| uint32_t tachyon::PlotViewState::editsSeen = 0 |
a handle dragged; the handles as they were, for Escape and the edit