iVS3D v2.0.0
Loading...
Searching...
No Matches
Timeline Class Reference

The Timeline class is the class wich coordinates and manages all timeline events and elements. More...

#include <timeline.h>

Inheritance diagram for Timeline:

Public Slots

void resize ()
 resize redraws the timeline when window resizes
 

Public Member Functions

 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
 

Detailed Description

The Timeline class is the class wich coordinates and manages all timeline events and elements.

Author
Dominic Zahn
Date
2021/04/12

Constructor & Destructor Documentation

◆ Timeline()

Timeline::Timeline ( QWidget *  parent = nullptr)
explicit

Timeline creates all elements and connects them.

Parameters
parentparent

Member Function Documentation

◆ 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
evthe resize event

◆ 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
indexnew frame index

◆ setBoundaries()

void Timeline::setBoundaries ( QPoint  boundaries)

setBoundaries sets the boundaries of the working set and moves them to the desired position

Parameters
boundariesQPoint(lower, upper) boundary

◆ setEnabled()

void Timeline::setEnabled ( bool  enable)

setEnabled en/disables the timeline

Parameters
enabletrue if disable, false if enable

◆ setFrames()

void Timeline::setFrames ( const std::vector< uint > &  keyframes,
uint  frameCount 
)

setFrames sets the frame

Parameters
keyframesnew keyframes
frameCountnew keyframe count

◆ updateKeyframes()

void Timeline::updateKeyframes ( const std::vector< uint > &  newKeyframes)

updateKeyframes redraws timeline with new keyframe positions

Parameters
newKeyframeskeyframe list

The documentation for this class was generated from the following files: