LibreOffice Module slideshow (master) 1
|
Interpolated, key-times animation. More...
#include <continuouskeytimeactivitybase.hxx>
Public Member Functions | |
ContinuousKeyTimeActivityBase (const ActivityParameters &rParms) | |
virtual void | perform (sal_uInt32 nIndex, double nFractionalIndex, sal_uInt32 nRepeatCount) const =0 |
Hook for derived classes. More... | |
virtual void | simplePerform (double nSimpleTime, sal_uInt32 nRepeatCount) const override |
From SimpleContinuousActivityBase class. More... | |
virtual bool | perform () override |
From Activity interface. More... | |
Public Member Functions inherited from slideshow::internal::SimpleContinuousActivityBase | |
SimpleContinuousActivityBase (const ActivityParameters &rParms) | |
virtual double | calcTimeLag () const override |
Calculates whether the activity lags time. More... | |
virtual bool | perform () override |
From Activity interface. More... | |
Public Member Functions inherited from slideshow::internal::ActivityBase | |
ActivityBase (const ActivityParameters &rParms) | |
virtual void | dispose () override |
From Disposable interface. More... | |
virtual void | setTargets (const AnimatableShapeSharedPtr &rShape, const ShapeAttributeLayerSharedPtr &rAttrLayer)=0 |
Sets targets (shape and attributeLayer) More... | |
virtual bool | perform ()=0 |
Perform the activity associated with this interface's implementation. More... | |
virtual double | calcTimeLag () const =0 |
Calculates whether the activity lags time. More... | |
virtual bool | isActive () const =0 |
Query whether this activity is still continuing. More... | |
virtual void | dequeued ()=0 |
Notifies the Activity that it has now left the ActivitiesQueue. More... | |
virtual void | end ()=0 |
Forces this activity deactivate and get to its end state (if possible), but does not dispose. More... | |
Public Member Functions inherited from slideshow::internal::Disposable | |
virtual | ~Disposable () |
virtual void | dispose ()=0 |
Dispose all object references. More... | |
Public Member Functions inherited from slideshow::internal::SharedPtrAble | |
virtual | ~SharedPtrAble () |
Private Attributes | |
const ::basegfx::utils::KeyStopLerp | maLerper |
Additional Inherited Members | |
Protected Member Functions inherited from slideshow::internal::SimpleContinuousActivityBase | |
virtual void | simplePerform (double nSimpleTime, sal_uInt32 nRepeatCount) const =0 |
Hook for derived classes. More... | |
virtual void | startAnimation () override |
Hook for derived classes. More... | |
Protected Member Functions inherited from slideshow::internal::ActivityBase | |
virtual bool | perform () override |
From Activity interface. More... | |
virtual double | calcTimeLag () const override |
Calculates whether the activity lags time. More... | |
virtual bool | isActive () const override |
Query whether this activity is still continuing. More... | |
void | endActivity () |
End this activity, in a regular way. More... | |
double | calcAcceleratedTime (double nT) const |
Modify fractional time. More... | |
bool | isDisposed () const |
EventQueue & | getEventQueue () const |
const AnimatableShapeSharedPtr & | getShape () const |
const ShapeAttributeLayerSharedPtr & | getShapeAttributeLayer () const |
bool | isRepeatCountValid () const |
double | getRepeatCount () const |
bool | isAutoReverse () const |
Interpolated, key-times animation.
This class implements an interpolated key-times animation, with continuous time.
Definition at line 35 of file continuouskeytimeactivitybase.hxx.
|
explicit |
Definition at line 29 of file continuouskeytimeactivitybase.cxx.
References ENSURE_OR_THROW, and slideshow::internal::ActivityParameters::maDiscreteTimes.
|
overridevirtual |
From Activity interface.
Derived classes should override, call this first and then perform their work.
Reimplemented from slideshow::internal::SimpleContinuousActivityBase.
Definition at line 41 of file simplecontinuousactivitybase.cxx.
Referenced by simplePerform().
|
pure virtual |
Hook for derived classes.
This method will be called from perform(), already equipped with the modified time (nMinNumberOfFrames, repeat, acceleration and deceleration taken into account).
nIndex | Current index of the key times/key values. |
nFractionalIndex | Fractional value from the [0,1] range, specifying the position between nIndex and nIndex+1. |
nRepeatCount | Number of full repeats already performed |
|
overridevirtual |
From SimpleContinuousActivityBase class.
Implements slideshow::internal::SimpleContinuousActivityBase.
Definition at line 41 of file continuouskeytimeactivitybase.cxx.
References slideshow::internal::ActivityBase::calcAcceleratedTime(), basegfx::utils::KeyStopLerp::lerp(), maLerper, nIndex, and perform().
|
private |
Definition at line 67 of file continuouskeytimeactivitybase.hxx.
Referenced by simplePerform().