Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QEasingCurveFunction Class Reference
Inheritance diagram for QEasingCurveFunction:
BackEase BounceEase ElasticEase

Public Types

enum  Type { In, Out, InOut, OutIn }
 

Public Functions

virtual QEasingCurveFunctioncopy () const
 
bool operator== (const QEasingCurveFunction &other)
 
 QEasingCurveFunction (QEasingCurveFunction::Type type=In, qreal period=0.3, qreal amplitude=1.0, qreal overshoot=1.70158)
 
virtual qreal value (qreal t)
 
virtual ~QEasingCurveFunction ()
 

Public Variables

qreal _a
 
qreal _o
 
qreal _p
 
Type _t
 

Detailed Description

Definition at line 337 of file qeasingcurve.cpp.

Enumerations

◆ Type

Constructors and Destructors

◆ QEasingCurveFunction()

QEasingCurveFunction::QEasingCurveFunction ( QEasingCurveFunction::Type  type = In,
qreal  period = 0.3,
qreal  amplitude = 1.0,
qreal  overshoot = 1.70158 
)
inline

Definition at line 342 of file qeasingcurve.cpp.

Referenced by copy(), and curveToFunctionObject().

344  : _t(type), _p(period), _a(amplitude), _o(overshoot)
345  { }
int type
Definition: qmetatype.cpp:239

◆ ~QEasingCurveFunction()

virtual QEasingCurveFunction::~QEasingCurveFunction ( )
inlinevirtual

Definition at line 346 of file qeasingcurve.cpp.

346 {}

Functions

◆ copy()

QEasingCurveFunction * QEasingCurveFunction::copy ( ) const
virtual

Reimplemented in BackEase, BounceEase, and ElasticEase.

Definition at line 362 of file qeasingcurve.cpp.

Referenced by QEasingCurve::operator=(), QEasingCurve::QEasingCurve(), and ~QEasingCurveFunction().

363 {
364  return new QEasingCurveFunction(_t, _p, _a, _o);
365 }
QEasingCurveFunction(QEasingCurveFunction::Type type=In, qreal period=0.3, qreal amplitude=1.0, qreal overshoot=1.70158)

◆ operator==()

bool QEasingCurveFunction::operator== ( const QEasingCurveFunction other)

Definition at line 367 of file qeasingcurve.cpp.

Referenced by ~QEasingCurveFunction().

368 {
369  return _t == other._t &&
370  qFuzzyCompare(_p, other._p) &&
371  qFuzzyCompare(_a, other._a) &&
372  qFuzzyCompare(_o, other._o);
373 }
static Q_DECL_CONSTEXPR bool qFuzzyCompare(double p1, double p2)
Definition: qglobal.h:2030

◆ value()

qreal QEasingCurveFunction::value ( qreal  t)
virtual

Reimplemented in BackEase, BounceEase, and ElasticEase.

Definition at line 357 of file qeasingcurve.cpp.

Referenced by QEasingCurve::valueForProgress(), and ~QEasingCurveFunction().

358 {
359  return t;
360 }

Properties

◆ _a

qreal QEasingCurveFunction::_a

◆ _o

qreal QEasingCurveFunction::_o

◆ _p

qreal QEasingCurveFunction::_p

◆ _t

Type QEasingCurveFunction::_t

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