LibreOffice Module slideshow (master) 1
|
Templated setter for animation values. More...
#include <setactivity.hxx>
Public Types | |
typedef ::std::shared_ptr< AnimationT > | AnimationSharedPtrT |
typedef AnimationT::ValueType | ValueT |
Public Member Functions | |
SetActivity (const ActivitiesFactory::CommonParameters &rParms, AnimationSharedPtrT xAnimation, ValueT aToValue) | |
virtual void | dispose () override |
Dispose all object references. More... | |
virtual double | calcTimeLag () const override |
Calculates whether the activity lags time. More... | |
virtual bool | perform () override |
Perform the activity associated with this interface's implementation. More... | |
virtual bool | isActive () const override |
Query whether this activity is still continuing. More... | |
virtual void | dequeued () override |
Notifies the Activity that it has now left the ActivitiesQueue. More... | |
virtual void | end () override |
Forces this activity deactivate and get to its end state (if possible), but does not dispose. More... | |
virtual void | setTargets (const AnimatableShapeSharedPtr &rShape, const ShapeAttributeLayerSharedPtr &rAttrLayer) override |
Sets targets (shape and attributeLayer) 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 () |
Templated setter for animation values.
This template class implements the AnimationActivity interface, but only the perform() and setAttributeLayer() methods are functional. To be used for set animations.
Definition at line 41 of file setactivity.hxx.
typedef ::std::shared_ptr< AnimationT > slideshow::internal::SetActivity< AnimationT >::AnimationSharedPtrT |
Definition at line 44 of file setactivity.hxx.
typedef AnimationT::ValueType slideshow::internal::SetActivity< AnimationT >::ValueT |
Definition at line 45 of file setactivity.hxx.
|
inline |
Definition at line 47 of file setactivity.hxx.
References ENSURE_OR_THROW, and slideshow::internal::SetActivity< AnimationT >::mpAnimation.
|
inlineoverridevirtual |
Calculates whether the activity lags time.
If this method returns a time lag greater than 0.0, the ActivitiesQueue will adjust the global slideshow time, by subtracting the given amount of lag.
Implements slideshow::internal::Activity.
Definition at line 73 of file setactivity.hxx.
|
inlineoverridevirtual |
Notifies the Activity that it has now left the ActivitiesQueue.
Use this method to react on the queue removal event. For animated shapes, this is e.g. used to switch back to the non-sprite presentation mode of the shape.
Implements slideshow::internal::Activity.
Definition at line 102 of file setactivity.hxx.
|
inlineoverridevirtual |
Dispose all object references.
An implementor of this method must first call dispose() on any of its external references, and release them after that.
Implements slideshow::internal::Disposable.
Definition at line 61 of file setactivity.hxx.
References slideshow::internal::SetActivity< AnimationT >::mbIsActive, slideshow::internal::SetActivity< AnimationT >::mpAnimation, slideshow::internal::SetActivity< AnimationT >::mpAttributeLayer, slideshow::internal::SetActivity< AnimationT >::mpEndEvent, and slideshow::internal::SetActivity< AnimationT >::mpShape.
|
inlineoverridevirtual |
Forces this activity deactivate and get to its end state (if possible), but does not dispose.
Implements slideshow::internal::Activity.
Definition at line 106 of file setactivity.hxx.
References slideshow::internal::SetActivity< AnimationT >::perform().
|
inlineoverridevirtual |
Query whether this activity is still continuing.
Implements slideshow::internal::Activity.
Definition at line 97 of file setactivity.hxx.
References slideshow::internal::SetActivity< AnimationT >::mbIsActive.
Referenced by slideshow::internal::SetActivity< AnimationT >::perform().
|
inlineoverridevirtual |
Perform the activity associated with this interface's implementation.
Implements slideshow::internal::Activity.
Definition at line 78 of file setactivity.hxx.
References slideshow::internal::EventQueue::addEvent(), slideshow::internal::SetActivity< AnimationT >::isActive(), slideshow::internal::SetActivity< AnimationT >::maToValue, slideshow::internal::SetActivity< AnimationT >::mbIsActive, slideshow::internal::SetActivity< AnimationT >::mpAnimation, slideshow::internal::SetActivity< AnimationT >::mpAttributeLayer, slideshow::internal::SetActivity< AnimationT >::mpEndEvent, slideshow::internal::SetActivity< AnimationT >::mpShape, and slideshow::internal::SetActivity< AnimationT >::mrEventQueue.
Referenced by slideshow::internal::SetActivity< AnimationT >::end().
|
inlineoverridevirtual |
Sets targets (shape and attributeLayer)
Since attribute layers can only be generated when the animation starts, the Activity owner must be able to pass it into the Activity after initial creation. The same applies to the actual shape the animation must run for, since e.g. subsetted shapes are generated close before the animation starts, too (this is not necessary in and out of itself, but for performance reasons. Otherwise, character iterations produce tons of subset shapes).
rShape | Shape to play the animation on. |
rAttrLayer | Attribute layer to change the animated values on. |
Implements slideshow::internal::AnimationActivity.
Definition at line 111 of file setactivity.hxx.
References ENSURE_OR_THROW, slideshow::internal::SetActivity< AnimationT >::mpAttributeLayer, and slideshow::internal::SetActivity< AnimationT >::mpShape.
|
private |
Definition at line 127 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::perform().
|
private |
Definition at line 128 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::dispose(), slideshow::internal::SetActivity< AnimationT >::isActive(), and slideshow::internal::SetActivity< AnimationT >::perform().
|
private |
Definition at line 122 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::dispose(), slideshow::internal::SetActivity< AnimationT >::perform(), and slideshow::internal::SetActivity< AnimationT >::SetActivity().
|
private |
Definition at line 124 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::dispose(), slideshow::internal::SetActivity< AnimationT >::perform(), and slideshow::internal::SetActivity< AnimationT >::setTargets().
|
private |
Definition at line 125 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::dispose(), and slideshow::internal::SetActivity< AnimationT >::perform().
|
private |
Definition at line 123 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::dispose(), slideshow::internal::SetActivity< AnimationT >::perform(), and slideshow::internal::SetActivity< AnimationT >::setTargets().
|
private |
Definition at line 126 of file setactivity.hxx.
Referenced by slideshow::internal::SetActivity< AnimationT >::perform().