Skip to content

Class QAccelPlot::DrawTransition

ClassList > QAccelPlot > DrawTransition

An animation transition that reveals the target data point by point from start to end. More...

  • #include <DrawTransition.hpp>

Inherits the following classes: QAccelPlot::DataTransition

Inheritance diagram

flowchart TB
  classQAccelPlot_1_1DrawTransition["QAccelPlot::DrawTransition"]

  classQAccelPlot_1_1DataTransition["QAccelPlot::DataTransition"]
  classQAccelPlot_1_1DataTransition --> classQAccelPlot_1_1DrawTransition
  click classQAccelPlot_1_1DataTransition "../classQAccelPlot_1_1DataTransition/" "Open QAccelPlot::DataTransition"

  external_base_classQAccelPlot_1_1DataTransition_1["QObject"]
  external_base_classQAccelPlot_1_1DataTransition_1 --> classQAccelPlot_1_1DataTransition

Public Properties inherited from QAccelPlot::DataTransition

See QAccelPlot::DataTransition

Type Name
property QML_ANONYMOUSint duration
Duration of the transition in milliseconds. Default: 300.
property QEasingCurve easing
Easing curve applied to the animation progress. Default: QEasingCurve::Linear .
property bool enabled
Whether the transition is active. When false , data updates are applied instantly.
property bool running
Read-only: true while the transition is playing on at least one element.

Public Signals inherited from QAccelPlot::DataTransition

See QAccelPlot::DataTransition

Type Name
signal void durationChanged
Emitted when the duration property changes.
signal void easingChanged
Emitted when the easing property changes.
signal void enabledChanged
Emitted when the enabled property changes.
signal void runningChanged
Emitted when the running property changes.

Public Functions

Type Name
DrawTransition (QObject * parent=nullptr)
Constructs a DrawTransition with the given__parent .

Public Functions inherited from QAccelPlot::DataTransition

See QAccelPlot::DataTransition

Type Name
DataTransition (QObject * parent=nullptr)
Constructs an DataTransition with the given__parent .
bool advance (Run & run, std::vector< double > & outData, int & outPointCount)
Advances run by one frame, writing the interpolated data into__outData .
void cancel ()
Ends every active run immediately.
int duration () const
Returns the animation duration in milliseconds.
QEasingCurve easing () const
Returns the easing curve.
bool enabled () const
Returns true if the transition is enabled.
bool running () const
Returns true while at least one run is active.
void setDuration (int duration)
Sets the animation duration to duration milliseconds.
void setEasing (const QEasingCurve & easing)
Sets the easing curve to easing .
void setEnabled (bool enabled)
Sets the enabled state to enabled .
void start (Run & run, const std::vector< double > & currentData, int currentPointCount, std::vector< double > && newData, int newPointCount, int stride=2)
Starts run from__currentData to__newData , restarting it if it is already active.
~DataTransition () override
Destroys the transition. Its runs stay pending, so their hosts can still show the target data.

Protected Functions

Type Name
virtual void interpolate (double easedProgress, const Dataset & from, const Dataset & to, Dataset & out) override
Writes the first points of to into__out: their share is__easedProgress , and at least one is kept.

Protected Functions inherited from QAccelPlot::DataTransition

See QAccelPlot::DataTransition

Type Name
virtual void interpolate (double easedProgress, const Dataset & from, const Dataset & to, Dataset & out) = 0
Subclass entry point — writes the dataset between from and__to at__easedProgress into__out .

Detailed Description

Assign to LineCurve::transition to draw the new curve in, or to BarSeries::transition or PointCloud::transition to show the new bars or points one after another.

See also: MorphTransition, DataTransition

Public Functions Documentation

function DrawTransition

Constructs a DrawTransition with the given__parent .

explicit QAccelPlot::DrawTransition::DrawTransition (
    QObject * parent=nullptr
) 


Protected Functions Documentation

function interpolate

Writes the first points of to into__out: their share is__easedProgress , and at least one is kept.

virtual void QAccelPlot::DrawTransition::interpolate (
    double easedProgress,
    const Dataset & from,
    const Dataset & to,
    Dataset & out
) override

Implements QAccelPlot::DataTransition::interpolate



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/transitions/DrawTransition.hpp