LibreOffice Module slideshow (master) 1
|
Simple, continuous animation. More...
#include <continuousactivitybase.hxx>
Public Member Functions | |
ContinuousActivityBase (const ActivityParameters &rParms) | |
virtual void | perform (double nModifiedTime, 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 () |
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 |
Simple, continuous animation.
This class implements a simple, continuous animation. Only addition to ActivityBase class is an explicit animation duration and a minimal number of frames to display.
Definition at line 34 of file continuousactivitybase.hxx.
|
explicit |
Definition at line 26 of file continuousactivitybase.cxx.
|
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).
nModifiedTime | Already accelerated/decelerated and repeated time, always in the [0,1] range. |
nRepeatCount | Number of full repeats already performed |
|
overridevirtual |
From SimpleContinuousActivityBase class.
Implements slideshow::internal::SimpleContinuousActivityBase.
Definition at line 31 of file continuousactivitybase.cxx.
References slideshow::internal::ActivityBase::calcAcceleratedTime(), and perform().