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

A plot: what it shows and how. More...

#include <gui_controls/gui_plot_types.h>

Inheritance diagram for tachyon::PlotData:

Public Attributes

std::vector< PlotSeries > series
float xMin = 0.0f
float xMax = 1.0f
float yMin = 0.0f
 The y range; with fitY, it runs from yMin out to the values shown (below it too).
float yMax = 1.0f
bool fitY = true
PlotScale yScale = PlotScale::Linear
bool labels = true
 the grid's numbers
std::vector< PlotHandle > handles
 Kept in order, each between its neighbours and inside the x range.
std::function< void(const PlotEdit &)> onEdit
 A handle moved (already applied): put it in the undo history.

Detailed Description

A plot: what it shows and how.

Keep it from frame to frame, as a CurveData. Show it with Plot: a PlotView for one place, or this and a PlotViewState per view to show it in several.

Member Data Documentation

◆ series

std::vector<PlotSeries> tachyon::PlotData::series

◆ xMin

float tachyon::PlotData::xMin = 0.0f

◆ xMax

float tachyon::PlotData::xMax = 1.0f

◆ yMin

float tachyon::PlotData::yMin = 0.0f

The y range; with fitY, it runs from yMin out to the values shown (below it too).

◆ yMax

float tachyon::PlotData::yMax = 1.0f

◆ fitY

bool tachyon::PlotData::fitY = true

◆ yScale

PlotScale tachyon::PlotData::yScale = PlotScale::Linear

◆ labels

bool tachyon::PlotData::labels = true

the grid's numbers

◆ handles

std::vector<PlotHandle> tachyon::PlotData::handles

Kept in order, each between its neighbours and inside the x range.

◆ onEdit

std::function<void(const PlotEdit&)> tachyon::PlotData::onEdit

A handle moved (already applied): put it in the undo history.


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