TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::PlotViewState Struct Reference

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>

Inheritance diagram for tachyon::PlotViewState:

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

Detailed Description

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.

Member Data Documentation

◆ shownSeries

int tachyon::PlotViewState::shownSeries = -1

The series shown on its own (its chip picked), or -1 for all of them overlaid.

◆ handleDrag

Gesture<std::vector<float> > tachyon::PlotViewState::handleDrag

a handle dragged; the handles as they were, for Escape and the edit

◆ panDrag

Gesture<float> tachyon::PlotViewState::panDrag

the view dragged (middle, or Alt + left); its left end as it was

◆ shownXMin

float tachyon::PlotViewState::shownXMin = 0.0f

a handle dragged; the handles as they were, for Escape and the edit

◆ shownXMax

float tachyon::PlotViewState::shownXMax = 1.0f

the part of the x range in view, once zoomed

◆ shownSet

bool tachyon::PlotViewState::shownSet = false

false: all of the x range

◆ activeHandle

int tachyon::PlotViewState::activeHandle = 0

the one dragged last; the arrow keys move it

◆ plotRect

IntRect tachyon::PlotViewState::plotRect {}

the plot last frame, in screen pixels

◆ hoverX

float tachyon::PlotViewState::hoverX = 0.0f

where the pointer is, along x

◆ hovered

bool tachyon::PlotViewState::hovered = false

a handle dragged; the handles as they were, for Escape and the edit

◆ edits

uint32_t tachyon::PlotViewState::edits = 0

counts the edits committed through this view, for Plot's return

◆ editsSeen

uint32_t tachyon::PlotViewState::editsSeen = 0

a handle dragged; the handles as they were, for Escape and the edit


The documentation for this struct was generated from the following file: