Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSvgAbstractAnimatedProperty Class Referenceabstract

#include <qsvganimatedproperty_p.h>

Inheritance diagram for QSvgAbstractAnimatedProperty:
Collaboration diagram for QSvgAbstractAnimatedProperty:

Public Types

enum  Type { Int , Float , Color , Transform }

Public Member Functions

 QSvgAbstractAnimatedProperty (const QString &name, Type type)
virtual ~QSvgAbstractAnimatedProperty ()
void setKeyFrames (const QList< qreal > &keyFrames)
void appendKeyFrame (qreal keyFrame)
QList< qrealkeyFrames () const
void setPropertyName (const QString &name)
QStringView propertyName () const
Type type () const
QVariant interpolatedValue () const
virtual void interpolate (uint index, qreal t) const =0

Static Public Member Functions

static QSvgAbstractAnimatedPropertycreateAnimatedProperty (const QString &name)

Protected Attributes

QList< qrealm_keyFrames
QVariant m_interpolatedValue

Detailed Description

Definition at line 28 of file qsvganimatedproperty_p.h.

Member Enumeration Documentation

◆ Type

Enumerator
Int 
Float 
Color 
Transform 

Definition at line 31 of file qsvganimatedproperty_p.h.

Constructor & Destructor Documentation

◆ QSvgAbstractAnimatedProperty()

QSvgAbstractAnimatedProperty::QSvgAbstractAnimatedProperty ( const QString & name,
Type type )

Definition at line 42 of file qsvganimatedproperty.cpp.

◆ ~QSvgAbstractAnimatedProperty()

QSvgAbstractAnimatedProperty::~QSvgAbstractAnimatedProperty ( )
virtual

Definition at line 48 of file qsvganimatedproperty.cpp.

Member Function Documentation

◆ appendKeyFrame()

void QSvgAbstractAnimatedProperty::appendKeyFrame ( qreal keyFrame)

Definition at line 57 of file qsvganimatedproperty.cpp.

◆ createAnimatedProperty()

QSvgAbstractAnimatedProperty * QSvgAbstractAnimatedProperty::createAnimatedProperty ( const QString & name)
static

Definition at line 87 of file qsvganimatedproperty.cpp.

◆ interpolate()

virtual void QSvgAbstractAnimatedProperty::interpolate ( uint index,
qreal t ) const
pure virtual

◆ interpolatedValue()

QVariant QSvgAbstractAnimatedProperty::interpolatedValue ( ) const

Definition at line 82 of file qsvganimatedproperty.cpp.

◆ keyFrames()

QList< qreal > QSvgAbstractAnimatedProperty::keyFrames ( ) const

Definition at line 62 of file qsvganimatedproperty.cpp.

◆ propertyName()

QStringView QSvgAbstractAnimatedProperty::propertyName ( ) const

Definition at line 72 of file qsvganimatedproperty.cpp.

◆ setKeyFrames()

void QSvgAbstractAnimatedProperty::setKeyFrames ( const QList< qreal > & keyFrames)

Definition at line 52 of file qsvganimatedproperty.cpp.

◆ setPropertyName()

void QSvgAbstractAnimatedProperty::setPropertyName ( const QString & name)

Definition at line 67 of file qsvganimatedproperty.cpp.

◆ type()

QSvgAbstractAnimatedProperty::Type QSvgAbstractAnimatedProperty::type ( ) const

Definition at line 77 of file qsvganimatedproperty.cpp.

Member Data Documentation

◆ m_interpolatedValue

QVariant QSvgAbstractAnimatedProperty::m_interpolatedValue
mutableprotected

Definition at line 54 of file qsvganimatedproperty_p.h.

◆ m_keyFrames

QList<qreal> QSvgAbstractAnimatedProperty::m_keyFrames
protected

Definition at line 53 of file qsvganimatedproperty_p.h.


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