![]() |
hivemind 1.0.0
|
A custom QWidget to represent a timeline with keyframes. More...
#include <timeline.h>


Signals | |
| void | timeStampSelected (float timeStamp) |
| Signal that is emitted when a timestamp is selected. | |
Public Member Functions | |
| Timeline (QWidget *parent=nullptr) | |
| Constructor for the Timeline class. | |
| int | GetActiveAgent () |
| Get the active agent ID. | |
| float | GetTimeStamp () |
| Get the current timestamp. | |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Paint event handler. | |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| Mouse release event handler. | |
| void | resizeEvent (QResizeEvent *event) override |
| Resize event handler. | |
Private Attributes | |
| float | m_timeStamp |
| The current timestamp. | |
| int | m_activeAgentId |
| ID of the active agent. | |
| float | m_pixelsPerSecond |
| Pixels per second on the timeline. | |
A custom QWidget to represent a timeline with keyframes.
Definition at line 12 of file timeline.h.
|
explicit |
Constructor for the Timeline class.
| parent | The parent QWidget |
Definition at line 13 of file timeline.cpp.
References KeyframeManagement::KeyframeManager::Instance().

|
inline |
Get the active agent ID.
Definition at line 27 of file timeline.h.
References m_activeAgentId.
|
inline |
Get the current timestamp.
Definition at line 37 of file timeline.h.
References m_timeStamp.
|
overrideprotected |
Mouse release event handler.
| event | The mouse release event |
Definition at line 66 of file timeline.cpp.
References KeyframeManagement::KeyframeManager::GetKeyframes(), KeyframeManagement::KeyframeManager::Instance(), m_pixelsPerSecond, m_timeStamp, KeyframeManagement::KeyframeManager::RemoveKeyframe(), Core::Keyframe::TimeStamp, and timeStampSelected().

|
overrideprotected |
Paint event handler.
| event | The paint event |
Definition at line 25 of file timeline.cpp.
References KeyframeManagement::KeyframeManager::GetKeyframes(), KeyframeManagement::KeyframeManager::Instance(), m_pixelsPerSecond, and m_timeStamp.

|
overrideprotected |
|
signal |
Signal that is emitted when a timestamp is selected.
| timeStamp | The selected timestamp |
Referenced by mouseReleaseEvent().

|
private |
|
private |
Pixels per second on the timeline.
Definition at line 70 of file timeline.h.
Referenced by mouseReleaseEvent(), and paintEvent().
|
private |
The current timestamp.
Definition at line 68 of file timeline.h.
Referenced by GetTimeStamp(), mouseReleaseEvent(), and paintEvent().