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

How one CurveField or CurveEditor shows a CurveData: the channel worked on, the selection, the part in view, and what the user is doing in it. More...

#include <gui_controls/gui_curve_types.h>

Inheritance diagram for tachyon::CurveViewState:

Classes

struct  HoverTarget
 What's under the pointer, for its hover look: a key, else a handle, else a curve. More...

Public Attributes

int activeChannel = 0
 the one whose keys can be picked and added to
std::unordered_set< ID > selectedKeys
 by stableID

Internal: kept between frames while the user works

CurveRange shown
 the part of the plot in view
bool shownSet = false
 false until the editor first opens: then range
std::unordered_set< std::string > collapsedGroups
 the tree's closed groups, by path
Gesture playheadDrag
 the ruler pressed
bool popupOpen = false
 the field's editor window is open
ID popupID = ID::Invalid()
 the part of the plot in view
Gesture< std::vector< Curve > > keyDrag
 moving the selected keys; the curves as they were
float2 keyDragFrom {}
 the time and value under the press
bool keyMoved = false
 the part of the plot in view
Gesture< std::vector< Curve > > tangentDrag
 a handle; the curves as they were
ID tangentKey = ID::Invalid()
 the part of the plot in view
bool tangentOut = false
 the leaving side's handle
HoverPart< HoverTarget > hover
 the part of the plot in view
Gesture< std::unordered_set< ID > > boxSelect
 the selection to go back to: before a Shift / Ctrl box, else none
float2 boxFrom {}
 the part of the plot in view
float2 boxTo {}
 in time and value
Gesture< CurveRange > pan
 the middle button (or Alt + left) held over the plot; the view as it was
ID menuKey = ID::Invalid()
 the key a right click opened the menu for
float2 menuAt {}
 where the right click was, in time and value
uint32_t menuOpening = 0
 the context menu opening the menu was built for
IntRect plotRect {}
 the plot's grid last frame, in screen pixels
DoubleClickTracker plotClicks
 a double click on the plot adds a key
float2 lastClick {}
 where the last click on the plot was, in pixels
uint32_t edits = 0
 counts the edits committed through this view, for CurveField's return
uint32_t editsSeen = 0
 the count CurveField last saw
uint32_t seenRevision = 0
 the curves' revision this view last built

Detailed Description

How one CurveField or CurveEditor shows a CurveData: the channel worked on, the selection, the part in view, and what the user is doing in it.

Keep one per view, from frame to frame.

Member Data Documentation

◆ activeChannel

int tachyon::CurveViewState::activeChannel = 0

the one whose keys can be picked and added to

◆ selectedKeys

std::unordered_set<ID> tachyon::CurveViewState::selectedKeys

by stableID

◆ shown

CurveRange tachyon::CurveViewState::shown

the part of the plot in view

◆ shownSet

bool tachyon::CurveViewState::shownSet = false

false until the editor first opens: then range

◆ collapsedGroups

std::unordered_set<std::string> tachyon::CurveViewState::collapsedGroups

the tree's closed groups, by path

◆ playheadDrag

Gesture tachyon::CurveViewState::playheadDrag

the ruler pressed

◆ popupOpen

bool tachyon::CurveViewState::popupOpen = false

the field's editor window is open

◆ popupID

ID tachyon::CurveViewState::popupID = ID::Invalid()

the part of the plot in view

◆ keyDrag

Gesture<std::vector<Curve> > tachyon::CurveViewState::keyDrag

moving the selected keys; the curves as they were

◆ keyDragFrom

float2 tachyon::CurveViewState::keyDragFrom {}

the time and value under the press

◆ keyMoved

bool tachyon::CurveViewState::keyMoved = false

the part of the plot in view

◆ tangentDrag

Gesture<std::vector<Curve> > tachyon::CurveViewState::tangentDrag

a handle; the curves as they were

◆ tangentKey

ID tachyon::CurveViewState::tangentKey = ID::Invalid()

the part of the plot in view

◆ tangentOut

bool tachyon::CurveViewState::tangentOut = false

the leaving side's handle

◆ hover

HoverPart<HoverTarget> tachyon::CurveViewState::hover

the part of the plot in view

◆ boxSelect

Gesture<std::unordered_set<ID> > tachyon::CurveViewState::boxSelect

the selection to go back to: before a Shift / Ctrl box, else none

◆ boxFrom

float2 tachyon::CurveViewState::boxFrom {}

the part of the plot in view

◆ boxTo

float2 tachyon::CurveViewState::boxTo {}

in time and value

◆ pan

Gesture<CurveRange> tachyon::CurveViewState::pan

the middle button (or Alt + left) held over the plot; the view as it was

◆ menuKey

ID tachyon::CurveViewState::menuKey = ID::Invalid()

the key a right click opened the menu for

◆ menuAt

float2 tachyon::CurveViewState::menuAt {}

where the right click was, in time and value

◆ menuOpening

uint32_t tachyon::CurveViewState::menuOpening = 0

the context menu opening the menu was built for

◆ plotRect

IntRect tachyon::CurveViewState::plotRect {}

the plot's grid last frame, in screen pixels

◆ plotClicks

DoubleClickTracker tachyon::CurveViewState::plotClicks

a double click on the plot adds a key

◆ lastClick

float2 tachyon::CurveViewState::lastClick {}

where the last click on the plot was, in pixels

◆ edits

uint32_t tachyon::CurveViewState::edits = 0

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

◆ editsSeen

uint32_t tachyon::CurveViewState::editsSeen = 0

the count CurveField last saw

◆ seenRevision

uint32_t tachyon::CurveViewState::seenRevision = 0

the curves' revision this view last built


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