19#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SETACTIVITY_HXX
20#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SETACTIVITY_HXX
40template <
class AnimationT>
45 typedef typename AnimationT::ValueType
ValueT;
106 virtual void end()
override
133 const ::std::shared_ptr< AnimationT >& rAnimation,
134 const typename AnimationT::ValueType& rToValue )
136 return std::make_shared<SetActivity<AnimationT>>(rParms,rAnimation,rToValue);
Extends the Activity interface with animation-specific functions.
This class handles events in a presentation.
bool addEvent(const EventSharedPtr &event)
Add the given event to the queue.
Templated setter for animation values.
AnimatableShapeSharedPtr mpShape
virtual void setTargets(const AnimatableShapeSharedPtr &rShape, const ShapeAttributeLayerSharedPtr &rAttrLayer) override
Sets targets (shape and attributeLayer)
EventQueue & mrEventQueue
::std::shared_ptr< AnimationT > AnimationSharedPtrT
virtual void end() override
Forces this activity deactivate and get to its end state (if possible), but does not dispose.
AnimationSharedPtrT mpAnimation
EventSharedPtr mpEndEvent
AnimationT::ValueType ValueT
SetActivity(const ActivitiesFactory::CommonParameters &rParms, AnimationSharedPtrT xAnimation, ValueT aToValue)
virtual void dequeued() override
Notifies the Activity that it has now left the ActivitiesQueue.
ShapeAttributeLayerSharedPtr mpAttributeLayer
virtual void dispose() override
Dispose all object references.
virtual double calcTimeLag() const override
Calculates whether the activity lags time.
virtual bool perform() override
Perform the activity associated with this interface's implementation.
virtual bool isActive() const override
Query whether this activity is still continuing.
#define ENSURE_OR_THROW(c, m)
::std::shared_ptr< AnimatableShape > AnimatableShapeSharedPtr
::std::shared_ptr< AnimationActivity > AnimationActivitySharedPtr
::std::shared_ptr< ShapeAttributeLayer > ShapeAttributeLayerSharedPtr
AnimationActivitySharedPtr makeSetActivity(const ActivitiesFactory::CommonParameters &rParms, const ::std::shared_ptr< AnimationT > &rAnimation, const typename AnimationT::ValueType &rToValue)
::std::shared_ptr< Event > EventSharedPtr
Collection of common factory parameters.