#include <sequenceeventtracksegmentviewbase.h>
Public Member Functions | |
SequenceEventTrackSegmentViewBase ()=default | |
virtual | ~SequenceEventTrackSegmentViewBase ()=default |
virtual void | handleEditPopupContent (sequenceguiactions::Action &action)=0 |
virtual void | drawEvent (const SequenceTrackSegment &segment, ImDrawList *drawList, const ImVec2 &topLeft, float x)=0 |
virtual void | insertSegment (SequenceControllerEvent &controller, const std::string &trackID, double time)=0 |
virtual std::unique_ptr< sequenceguiactions::Action > | createEditAction (const SequenceTrackSegmentEventBase *segment, const std::string &trackID, const std::string &segmentID)=0 |
SequenceEventTrackSegmentViewBase ()=default | |
virtual | ~SequenceEventTrackSegmentViewBase ()=default |
virtual bool | handleEditPopupContent (sequenceguiactions::Action &action)=0 |
virtual void | drawEvent (const SequenceTrackSegment &segment, ImDrawList *drawList, const ImVec2 &topLeft, float x, ImU32 color)=0 |
virtual void | insertSegment (SequenceControllerEvent &controller, const std::string &trackID, double time)=0 |
virtual std::unique_ptr< sequenceguiactions::Action > | createEditAction (const SequenceTrackSegmentEventBase *segment, const std::string &trackID, const std::string &segmentID)=0 |
Base class for an event segment view This base class is used by the track view to draw and handle segment views of different event types When you want to add your own event type, you can extend the derived class SequenceEventTrackSegmentView<T> where T is the value type of your own event
|
default |
Constructor
|
virtualdefault |
Deconstructor
|
default |
Constructor
|
virtualdefault |
Deconstructor
|
pure virtual |
Extend this method to specify the way an edit action for this event segment needs to be created Generally, this method doesn't need specialization
segment | const pointer to segment |
trackID | the track id |
segmentID | the segment id |
Implemented in SequenceEventTrackSegmentView< T >.
|
pure virtual |
Extend this method to specify the way an edit action for this event segment needs to be created Generally, this method doesn't need specialization
segment | const pointer to segment |
trackID | the track id |
segmentID | the segment id |
Implemented in SequenceEventTrackSegmentView< T >.
|
pure virtual |
Extend this method to specify a way to draw this event type For examples, see template specializations in SequenceEventTrackView.cpp
segment | reference to segment |
drawList | pointer to ImGui drawlist |
topLeft | top left position |
x | x position of segment on track |
|
pure virtual |
Extend this method to specify a way to draw this event type For examples, see template specializations in SequenceEventTrackView.cpp
segment | reference to segment |
drawList | pointer to ImGui drawlist |
topLeft | top left position |
x | x position of segment on track |
color | draw color |
Implemented in SequenceEventTrackSegmentView< T >.
|
pure virtual |
Extend this method to implement the way editing this event type must be handle in the GUI For examples, see template specializations in SequenceEventTrackView.cpp
action | the incoming action from the gui, contains information about the track time and segment. Segment can be assumed to be of type SequenceTrackSegmentEvent<T> |
Implemented in SequenceEventTrackSegmentView< T >.
|
pure virtual |
Extend this method to implement the way editing this event type must be handle in the GUI For examples, see template specializations in SequenceEventTrackView.cpp
action | the incoming action from the gui, contains information about the track time and segment. Segment can be assumed to be of type SequenceTrackSegmentEvent<T> |
Implemented in SequenceEventTrackSegmentView< T >.
|
pure virtual |
Extend this method to specify the way the controller needs to be called to add your custom event type Generally, this method doesn't need specialization
controller | reference to controller |
trackID | id of event track |
time | time at which to insert custom event |
Implemented in SequenceEventTrackSegmentView< T >.
|
pure virtual |
Extend this method to specify the way the controller needs to be called to add your custom event type Generally, this method doesn't need specialization
controller | reference to controller |
trackID | id of event track |
time | time at which to insert custom event |
Implemented in SequenceEventTrackSegmentView< T >.