|
TachyonUI 1.1.0
High-performance UI for building tools.
|
Curves shown in one place: the curves and the one view of them together. More...
#include <gui_controls/gui_curve_types.h>
Additional Inherited Members | |
| Public Attributes inherited from tachyon::CurveData | |
| std::vector< CurveChannel > | channels |
| one for a plain curve; four for a color's R, G, B and A | |
| CurveRange | range |
| What the field shows, and where the editor opens. | |
| bool | clampValues = false |
| std::vector< CurvePreset > | presets |
| The thumbnails under the plot; empty: DefaultCurvePresets(). | |
| float | fps = 0.0f |
| Frames a second, for animation curves: times show as frames, keys land on them, and the editor lays out as an animation editor: the interpolation and tangents over the plot, a frame ruler with the playhead, no presets. | |
| float | playhead = 0.0f |
| The playhead, in seconds, with fps set: on the ruler and through the plot, and each channel's value there in the tree. | |
| std::function< void(float time)> | onPlayheadChanged |
| The user moved the playhead on the ruler (already set): sync your timeline. | |
| std::function< void(const CurveEdit &)> | onEdit |
| A change the user made, already applied: put it in the undo history. | |
| uint32_t | revision = 0 |
| Raised by each edit applied, so every view of the curves can tell they changed. | |
| Public Attributes inherited from tachyon::CurveViewState | |
| int | activeChannel = 0 |
| the one whose keys can be picked and added to | |
| std::unordered_set< ID > | selectedKeys |
| by stableID | |
| 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 | |
Curves shown in one place: the curves and the one view of them together.