#include <sequencetrackview.h>
Public Member Functions | |
| SequenceTrackView (SequenceEditorGUIView &view, SequenceEditorGUIState &state) | |
| virtual | ~SequenceTrackView ()=default |
| virtual void | handleActions () |
| virtual void | showInspector (const SequenceTrack &track) |
| virtual void | showTrack (const SequenceTrack &track) |
Static Public Member Functions | |
| static bool | Combo (const char *label, int *currIndex, std::vector< std::string > &values) |
| static bool | ListBox (const char *label, int *currIndex, std::vector< std::string > &values) |
| static std::string | formatTimeString (double time) |
Protected Member Functions | |
| void | handleTrackOptionsPopup () |
| virtual void | showInspectorContent (const SequenceTrack &track)=0 |
| virtual void | showTrackContent (const SequenceTrack &track, const ImVec2 &trackTopLeft)=0 |
| void | registerActionHandler (const rttr::type &type, const std::function< void()> &handler) |
| const SequencePlayer & | getPlayer () |
| SequenceEditor & | getEditor () |
Protected Attributes | |
| SequenceEditorGUIView & | mView |
| SequenceEditorGUIState & | mState |
| std::unordered_map< rttr::type, std::function< void()> > | mActionHandlers |
| SequenceGUIService & | mService |
Base class of track views Responsible for drawing a track of a specific type Needs to be extended for each track type. F.E. SequenceCurveTrackView is responsible for drawing curve tracks
| SequenceTrackView | ( | SequenceEditorGUIView & | view, |
| SequenceEditorGUIState & | state | ||
| ) |
Constructor
| view | reference to view |
| state | object that contains the active gui state |
|
virtualdefault |
Destructor
|
static |
Combobox that takes std::vector as input
| label | label of box |
| currIndex | current index of combo box |
| values | vector of string values |
|
static |
formats time ( seconds ) to human readable time
| time | time |
|
protected |
|
protected |
|
virtual |
handles any actions that are created upon show this might be useful when certain actions in tracks are overlapping and/ or when we create an action that needs to do something in the next frame update
Reimplemented in SequenceCurveTrackView.
|
protected |
|
static |
ListBox that takes std::vector as input
| label | label of box |
| currIndex | current index of combo box |
| values | vector of string values |
|
protected |
registers an action handler for a certain action
| type | action type info |
| handler | handler function |
|
virtual |
shows inspector block
| track | reference to track |
|
protectedpure virtual |
this methods needs to be overloaded, contents for the inspector of a specific track type can be drawn in this function
| track | reference to track |
Implemented in SequenceCurveTrackView, SequenceEventTrackView, and SequenceAudioTrackView.
|
virtual |
shows track contents
| track | reference to track |
|
protectedpure virtual |
this method needs to be overloaded, contents for the track can be drawn in this function
| track | reference to track |
| trackTopLeft | orientation for drawing stuff in track window |
Implemented in SequenceCurveTrackView, SequenceEventTrackView, and SequenceAudioTrackView.
|
protected |
|
protected |
|
protected |
|
protected |