The Timeline class is the class wich coordinates and manages all timeline events and elements.
More...
#include <timeline.h>
|
|
void | resize () |
| | resize redraws the timeline when window resizes
|
| |
|
| | Timeline (QWidget *parent=nullptr) |
| | Timeline creates all elements and connects them.
|
| |
| void | updateKeyframes (const std::vector< uint > &newKeyframes) |
| | updateKeyframes redraws timeline with new keyframe positions
|
| |
| void | setFrames (const std::vector< uint > &keyframes, uint frameCount) |
| | setFrames sets the frame
|
| |
| uint | selectedFrame () |
| | selectedFrame returns the index of the frame which is currently selected
|
| |
| void | selectFrame (uint index) |
| | selectFrame moves markers to new positions
|
| |
|
void | updateHighlighterWidth () |
| | updateHighlighterWidth redraws highlighter with new width
|
| |
| void | resizeEvent (QResizeEvent *ev) override |
| | resizeEvent redraws timeline when window resizes
|
| |
| void | setEnabled (bool enable) |
| | setEnabled en/disables the timeline
|
| |
| QPoint | getBoundaries () |
| | getBoundaries gets the boundaries of the working set
|
| |
| void | setBoundaries (QPoint boundaries) |
| | setBoundaries sets the boundaries of the working set and moves them to the desired position
|
| |
The Timeline class is the class wich coordinates and manages all timeline events and elements.
- Author
- Dominic Zahn
- Date
- 2021/04/12
◆ Timeline()
| Timeline::Timeline |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Timeline creates all elements and connects them.
- Parameters
-
◆ getBoundaries()
| QPoint Timeline::getBoundaries |
( |
| ) |
|
getBoundaries gets the boundaries of the working set
- Returns
- lower and upper boundary
◆ resizeEvent()
| void Timeline::resizeEvent |
( |
QResizeEvent * |
ev | ) |
|
|
override |
resizeEvent redraws timeline when window resizes
- Parameters
-
◆ selectedFrame()
| uint Timeline::selectedFrame |
( |
| ) |
|
selectedFrame returns the index of the frame which is currently selected
- Returns
- index
◆ selectFrame()
| void Timeline::selectFrame |
( |
uint |
index | ) |
|
selectFrame moves markers to new positions
- Parameters
-
◆ setBoundaries()
| void Timeline::setBoundaries |
( |
QPoint |
boundaries | ) |
|
setBoundaries sets the boundaries of the working set and moves them to the desired position
- Parameters
-
| boundaries | QPoint(lower, upper) boundary |
◆ setEnabled()
| void Timeline::setEnabled |
( |
bool |
enable | ) |
|
setEnabled en/disables the timeline
- Parameters
-
| enable | true if disable, false if enable |
◆ setFrames()
| void Timeline::setFrames |
( |
const std::vector< uint > & |
keyframes, |
|
|
uint |
frameCount |
|
) |
| |
setFrames sets the frame
- Parameters
-
| keyframes | new keyframes |
| frameCount | new keyframe count |
◆ updateKeyframes()
| void Timeline::updateKeyframes |
( |
const std::vector< uint > & |
newKeyframes | ) |
|
updateKeyframes redraws timeline with new keyframe positions
- Parameters
-
| newKeyframes | keyframe list |
The documentation for this class was generated from the following files:
- iVS3D/src/iVS3D-core/view/timeline.h
- iVS3D/src/iVS3D-core/view/timeline.cpp