LibreOffice Module slideshow (master) 1
|
Common base class for all leaf animation nodes. More...
#include <animationbasenode.hxx>
Public Member Functions | |
AnimationBaseNode (css::uno::Reference< css::animations::XAnimationNode > const &xNode, BaseContainerNodeSharedPtr const &pParent, NodeContext const &rContext) | |
virtual void | showState () const override |
virtual void | removeEffect () override |
Called by the container to remove the animation effect to make the painted shape correct if it restart because of repeat or rewind ( fill mode is AnimationFill::REMOVE ) to start state. More... | |
Public Member Functions inherited from slideshow::internal::BaseNode | |
BaseNode (css::uno::Reference< css::animations::XAnimationNode > const &xNode, BaseContainerNodeSharedPtr pParent, NodeContext const &rContext) | |
BaseNode (const BaseNode &)=delete | |
BaseNode & | operator= (const BaseNode &)=delete |
void | setSelf (const BaseNodeSharedPtr &rSelf) |
Provide the node with a shared_ptr to itself. More... | |
virtual void | showState () const |
virtual const char * | getDescription () const |
const ::std::shared_ptr< BaseContainerNode > & | getParentNode () const |
virtual void | dispose () override |
Dispose all object references. More... | |
virtual bool | init () override |
Init this node. More... | |
virtual bool | resolve () override |
Resolve node start time. More... | |
virtual void | activate () override |
Immediately start this node. More... | |
virtual void | deactivate () override |
Immediately stop this node. More... | |
virtual void | end () override |
End the animation on this node. More... | |
virtual css::uno::Reference< css::animations::XAnimationNode > | getXAnimationNode () const override |
Query the corresponding XAnimationNode. More... | |
virtual NodeState | getState () const override |
Query node state. More... | |
virtual bool | registerDeactivatingListener (const AnimationNodeSharedPtr &rNotifee) override |
Register a deactivating listener. More... | |
virtual void | notifyDeactivating (const AnimationNodeSharedPtr &rNotifier) override |
Called to notify another AnimationNode's deactivation. More... | |
bool | isMainSequenceRootNode () const |
sal_Int16 | getFillMode () |
Get the node's fill mode. More... | |
virtual void | removeEffect () override |
Called by the container to remove the animation effect to make the painted shape correct if it restart because of repeat or rewind ( fill mode is AnimationFill::REMOVE ) to start state. More... | |
virtual css::uno::Reference< css::animations::XAnimationNode > | getXAnimationNode () const =0 |
Query the corresponding XAnimationNode. More... | |
virtual bool | init ()=0 |
Init this node. More... | |
virtual bool | resolve ()=0 |
Resolve node start time. More... | |
virtual void | activate ()=0 |
Immediately start this node. More... | |
virtual void | deactivate ()=0 |
Immediately stop this node. More... | |
virtual void | end ()=0 |
End the animation on this node. More... | |
virtual NodeState | getState () const =0 |
Query node state. More... | |
virtual bool | registerDeactivatingListener (const AnimationNodeSharedPtr &rNotifee)=0 |
Register a deactivating listener. More... | |
virtual void | notifyDeactivating (const AnimationNodeSharedPtr &rNotifier)=0 |
Called to notify another AnimationNode's deactivation. More... | |
virtual void | removeEffect ()=0 |
Called by the container to remove the animation effect to make the painted shape correct if it restart because of repeat or rewind ( fill mode is AnimationFill::REMOVE ) to start state. More... | |
virtual bool | hasPendingAnimation () const =0 |
Query node whether it has an animation pending. More... | |
Public Member Functions inherited from slideshow::internal::Disposable | |
virtual | ~Disposable () |
virtual void | dispose ()=0 |
Dispose all object references. More... | |
Protected Member Functions | |
virtual void | dispose () override |
Dispose all object references. More... | |
css::uno::Reference< css::animations::XAnimate > const & | getXAnimateNode () const |
ActivitiesFactory::CommonParameters | fillCommonParameters () const |
Create parameter struct for ActivitiesFactory. More... | |
::basegfx::B2DVector const & | getSlideSize () const |
AttributableShapeSharedPtr const & | getShape () const |
Protected Member Functions inherited from slideshow::internal::BaseNode | |
void | scheduleDeactivationEvent (EventSharedPtr const &pEvent=EventSharedPtr()) |
SlideShowContext const & | getContext () const |
::std::shared_ptr< BaseNode > const & | getSelf () const |
bool | checkValidNode () const |
Protected Attributes | |
AnimationActivitySharedPtr | mpActivity |
Private Member Functions | |
virtual bool | hasPendingAnimation () const override |
Query node whether it has an animation pending. More... | |
virtual bool | enqueueActivity () const |
virtual bool | init_st () override |
virtual bool | resolve_st () override |
virtual void | activate_st () override |
virtual void | deactivate_st (NodeState eDestState) override |
virtual AnimationActivitySharedPtr | createActivity () const =0 |
bool | isDependentSubsettedShape () const |
Returns true, if this is a subset animation, and the subset is autogenerated (e.g. More... | |
Private Attributes | |
css::uno::Reference< css::animations::XAnimate > | mxAnimateNode |
ShapeAttributeLayerHolder | maAttributeLayerHolder |
::basegfx::B2DVector | maSlideSize |
AttributableShapeSharedPtr | mpShape |
When valid, this node has a plain target shape. More... | |
ShapeSubsetSharedPtr | mpShapeSubset |
When valid, this is a subsetted target shape. More... | |
SubsettableShapeManagerSharedPtr | mpSubsetManager |
bool | mbPreservedVisibility |
bool | mbIsIndependentSubset |
Additional Inherited Members | |
Public Types inherited from slideshow::internal::AnimationNode | |
enum | NodeState { INVALID = 0 , UNRESOLVED = 1 , RESOLVED = 2 , ACTIVE = 4 , FROZEN = 8 , ENDED = 16 } |
The current state of this AnimationNode. More... | |
Common base class for all leaf animation nodes.
This class basically holds the target shape
Definition at line 36 of file animationbasenode.hxx.
slideshow::internal::AnimationBaseNode::AnimationBaseNode | ( | css::uno::Reference< css::animations::XAnimationNode > const & | xNode, |
BaseContainerNodeSharedPtr const & | pParent, | ||
NodeContext const & | rContext | ||
) |
Definition at line 40 of file animationbasenode.cxx.
References ENSURE_OR_THROW, slideshow::internal::BaseNode::getContext(), slideshow::internal::DocTreeNode::LogicalParagraph, slideshow::internal::lookupAttributableShape(), mbIsIndependentSubset, slideshow::internal::NodeContext::mpMasterShapeSubset, mpShape, mpShapeSubset, mpSubsetManager, mpSubsettableShapeManager, and mxAnimateNode.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 233 of file animationbasenode.cxx.
References slideshow::internal::ShapeAttributeLayerHolder::createAttributeLayer(), enqueueActivity(), ENSURE_OR_THROW, slideshow::internal::ShapeAttributeLayerHolder::get(), getShape(), maAttributeLayerHolder, mbPreservedVisibility, mpActivity, mxAnimateNode, and slideshow::internal::BaseNode::scheduleDeactivationEvent().
|
privatepure virtual |
Implemented in slideshow::internal::AnimationColorNode, slideshow::internal::AnimationPathMotionNode, slideshow::internal::AnimationPhysicsNode, slideshow::internal::AnimationSetNode, slideshow::internal::AnimationTransformNode, slideshow::internal::AnimationTransitionFilterNode, and slideshow::internal::PropertyAnimationNode.
Referenced by init_st().
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 306 of file animationbasenode.cxx.
References slideshow::internal::AnimationNode::ENDED, slideshow::internal::AnimationNode::FROZEN, slideshow::internal::BaseNode::getContext(), getShape(), isDependentSubsettedShape(), maAttributeLayerHolder, mpActivity, mpShapeSubset, slideshow::internal::SlideShowContext::mpSubsettableShapeManager, and slideshow::internal::ShapeAttributeLayerHolder::reset().
|
overrideprotectedvirtual |
Dispose all object references.
An implementor of this method must first call dispose() on any of its external references, and release them after that.
Reimplemented from slideshow::internal::BaseNode.
Reimplemented in slideshow::internal::AnimationPathMotionNode, slideshow::internal::AnimationPhysicsNode, slideshow::internal::AnimationTransformNode, and slideshow::internal::AnimationTransitionFilterNode.
Definition at line 175 of file animationbasenode.cxx.
References slideshow::internal::BaseNode::dispose(), maAttributeLayerHolder, mpActivity, mpShape, mpShapeSubset, mxAnimateNode, and slideshow::internal::ShapeAttributeLayerHolder::reset().
Referenced by slideshow::internal::AnimationPathMotionNode::dispose(), slideshow::internal::AnimationPhysicsNode::dispose(), slideshow::internal::AnimationTransformNode::dispose(), and slideshow::internal::AnimationTransitionFilterNode::dispose().
|
privatevirtual |
Reimplemented in slideshow::internal::AnimationPhysicsNode.
Definition at line 375 of file animationbasenode.cxx.
References slideshow::internal::ActivitiesQueue::addActivity(), slideshow::internal::BaseNode::getContext(), mpActivity, and slideshow::internal::SlideShowContext::mrActivitiesQueue.
Referenced by activate_st().
|
protected |
Create parameter struct for ActivitiesFactory.
Definition at line 391 of file animationbasenode.cxx.
References basegfx::fround(), slideshow::internal::BaseNode::getContext(), slideshow::internal::BaseNode::getSelf(), getShape(), getSlideSize(), makeEvent, slideshow::internal::FrameRate::MinimumFramesPerSecond, mrEventQueue, and mxAnimateNode.
Referenced by slideshow::internal::AnimationColorNode::createActivity(), slideshow::internal::AnimationPathMotionNode::createActivity(), slideshow::internal::AnimationPhysicsNode::createActivity(), slideshow::internal::AnimationSetNode::createActivity(), slideshow::internal::AnimationTransformNode::createActivity(), slideshow::internal::AnimationTransitionFilterNode::createActivity(), and slideshow::internal::PropertyAnimationNode::createActivity().
|
protected |
Definition at line 483 of file animationbasenode.cxx.
References mpShape, and mpShapeSubset.
Referenced by activate_st(), slideshow::internal::AnimationColorNode::createActivity(), slideshow::internal::AnimationPathMotionNode::createActivity(), slideshow::internal::AnimationSetNode::createActivity(), slideshow::internal::AnimationTransformNode::createActivity(), slideshow::internal::AnimationTransitionFilterNode::createActivity(), slideshow::internal::PropertyAnimationNode::createActivity(), deactivate_st(), fillCommonParameters(), and removeEffect().
|
inlineprotected |
Definition at line 57 of file animationbasenode.hxx.
References maSlideSize.
Referenced by slideshow::internal::AnimationColorNode::createActivity(), slideshow::internal::AnimationPathMotionNode::createActivity(), slideshow::internal::AnimationPhysicsNode::createActivity(), slideshow::internal::AnimationSetNode::createActivity(), slideshow::internal::AnimationTransformNode::createActivity(), slideshow::internal::AnimationTransitionFilterNode::createActivity(), slideshow::internal::PropertyAnimationNode::createActivity(), and fillCommonParameters().
|
inlineprotected |
Definition at line 52 of file animationbasenode.hxx.
References mxAnimateNode.
Referenced by slideshow::internal::AnimationColorNode::createActivity(), slideshow::internal::AnimationSetNode::createActivity(), slideshow::internal::AnimationTransformNode::createActivity(), and slideshow::internal::PropertyAnimationNode::createActivity().
|
overrideprivatevirtual |
Query node whether it has an animation pending.
Implements slideshow::internal::AnimationNode.
Definition at line 368 of file animationbasenode.cxx.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 190 of file animationbasenode.cxx.
References createActivity(), mpActivity, and TOOLS_WARN_EXCEPTION.
|
inlineprivate |
Returns true, if this is a subset animation, and the subset is autogenerated (e.g.
from an iteration)
Definition at line 76 of file animationbasenode.hxx.
References mbIsIndependentSubset, and mpShapeSubset.
Referenced by deactivate_st(), removeEffect(), and resolve_st().
|
overridevirtual |
Called by the container to remove the animation effect to make the painted shape correct if it restart because of repeat or rewind ( fill mode is AnimationFill::REMOVE ) to start state.
Reimplemented from slideshow::internal::BaseNode.
Definition at line 358 of file animationbasenode.cxx.
References slideshow::internal::BaseNode::getContext(), getShape(), isDependentSubsettedShape(), mbPreservedVisibility, and slideshow::internal::SlideShowContext::mpSubsettableShapeManager.
|
overrideprivatevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 217 of file animationbasenode.cxx.
References isDependentSubsettedShape(), and mpShapeSubset.
|
overridevirtual |
Reimplemented from slideshow::internal::BaseNode.
Definition at line 381 of file animationbasenode.cxx.
References mbIsIndependentSubset, SAL_INFO, and slideshow::internal::BaseNode::showState().
|
private |
Definition at line 81 of file animationbasenode.hxx.
Referenced by activate_st(), deactivate_st(), and dispose().
|
private |
Definition at line 82 of file animationbasenode.hxx.
Referenced by getSlideSize().
|
private |
Definition at line 90 of file animationbasenode.hxx.
Referenced by AnimationBaseNode(), isDependentSubsettedShape(), and showState().
|
private |
Definition at line 89 of file animationbasenode.hxx.
Referenced by activate_st(), and removeEffect().
|
protected |
Definition at line 93 of file animationbasenode.hxx.
Referenced by activate_st(), deactivate_st(), dispose(), enqueueActivity(), slideshow::internal::AnimationPhysicsNode::enqueueActivity(), and init_st().
|
private |
When valid, this node has a plain target shape.
Definition at line 85 of file animationbasenode.hxx.
Referenced by AnimationBaseNode(), dispose(), and getShape().
|
private |
When valid, this is a subsetted target shape.
Definition at line 87 of file animationbasenode.hxx.
Referenced by AnimationBaseNode(), deactivate_st(), dispose(), getShape(), isDependentSubsettedShape(), and resolve_st().
|
private |
Definition at line 88 of file animationbasenode.hxx.
Referenced by AnimationBaseNode().
|
private |
Definition at line 80 of file animationbasenode.hxx.
Referenced by activate_st(), AnimationBaseNode(), dispose(), fillCommonParameters(), and getXAnimateNode().