20#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_ACTIVITIES_ACTIVITYBASE_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_ACTIVITIES_ACTIVITYBASE_HXX
42 virtual void dispose()
override;
50 virtual bool perform()
override;
52 virtual bool isActive()
const override;
119 virtual void end()
override;
Base class for animation activities.
virtual void end() override
Activity:
const double mnDecelerationFraction
virtual bool perform() override
From Activity interface.
virtual void setTargets(const AnimatableShapeSharedPtr &rShape, const ShapeAttributeLayerSharedPtr &rAttrLayer) override
Sets targets (shape and attributeLayer)
double getRepeatCount() const
EventQueue & getEventQueue() const
AnimatableShapeSharedPtr mpShape
const AnimatableShapeSharedPtr & getShape() const
const double mnAccelerationFraction
virtual bool isActive() const override
Query whether this activity is still continuing.
const ShapeAttributeLayerSharedPtr & getShapeAttributeLayer() const
::std::optional< double > const maRepeats
EventQueue & mrEventQueue
virtual void endAnimation()=0
Hook for derived classes.
bool isAutoReverse() const
EventSharedPtr mpEndEvent
virtual void dispose() override
From Disposable interface.
bool isRepeatCountValid() const
virtual double calcTimeLag() const override
Calculates whether the activity lags time.
void endActivity()
End this activity, in a regular way.
virtual void performEnd()=0
ActivityBase(const ActivityParameters &rParms)
virtual void startAnimation()=0
Hook for derived classes.
virtual void dequeued() override
Notifies the Activity that it has now left the ActivitiesQueue.
double calcAcceleratedTime(double nT) const
Modify fractional time.
ShapeAttributeLayerSharedPtr mpAttributeLayer
Extends the Activity interface with animation-specific functions.
This class handles events in a presentation.
::std::shared_ptr< AnimatableShape > AnimatableShapeSharedPtr
::std::shared_ptr< ShapeAttributeLayer > ShapeAttributeLayerSharedPtr
::std::shared_ptr< Event > EventSharedPtr
Parameter struct for animation activities.