QKeyFrame Class

class Qt3DAnimation::QKeyFrame

A base class for handling keyframes. More...

Header: #include <QKeyFrame>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation

Public Types

enum InterpolationType { ConstantInterpolation, LinearInterpolation, BezierInterpolation }

Public Functions

QKeyFrame()
QKeyFrame(QVector2D coords)
QKeyFrame(QVector2D coords, QVector2D lh, QVector2D rh)
QVector2D coordinates() const
Qt3DAnimation::QKeyFrame::InterpolationType interpolationType() const
QVector2D leftControlPoint() const
QVector2D rightControlPoint() const
void setCoordinates(QVector2D coords)
void setInterpolationType(Qt3DAnimation::QKeyFrame::InterpolationType interp)
void setLeftControlPoint(QVector2D lh)
void setRightControlPoint(QVector2D rh)
bool operator!=(const Qt3DAnimation::QKeyFrame &, const Qt3DAnimation::QKeyFrame &)
bool operator==(const Qt3DAnimation::QKeyFrame &, const Qt3DAnimation::QKeyFrame &)

Detailed Description

Member Type Documentation

enum QKeyFrame::InterpolationType

Member Function Documentation

QKeyFrame::QKeyFrame()

Default constructs an instance of QKeyFrame.

QKeyFrame::QKeyFrame(QVector2D coords)

Default constructs an instance of QKeyFrame.

QKeyFrame::QKeyFrame(QVector2D coords, QVector2D lh, QVector2D rh)

Default constructs an instance of QKeyFrame.

QVector2D QKeyFrame::coordinates() const

See also setCoordinates().

Qt3DAnimation::QKeyFrame::InterpolationType QKeyFrame::interpolationType() const

See also setInterpolationType().

QVector2D QKeyFrame::leftControlPoint() const

See also setLeftControlPoint().

QVector2D QKeyFrame::rightControlPoint() const

See also setRightControlPoint().

void QKeyFrame::setCoordinates(QVector2D coords)

See also coordinates().

void QKeyFrame::setInterpolationType(Qt3DAnimation::QKeyFrame::InterpolationType interp)

See also interpolationType().

void QKeyFrame::setLeftControlPoint(QVector2D lh)

See also leftControlPoint().

void QKeyFrame::setRightControlPoint(QVector2D rh)

See also rightControlPoint().

Related Non-Members

bool operator!=(const Qt3DAnimation::QKeyFrame &, const Qt3DAnimation::QKeyFrame &)

bool operator==(const Qt3DAnimation::QKeyFrame &, const Qt3DAnimation::QKeyFrame &)

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.