diff options
author | Sarper Akdemir <q.sarperakdemir@gmail.com> | 2020-06-11 19:29:38 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-08-09 23:44:00 +0200 |
commit | 28022cee396715bc4b474ed1571074dc721bbe13 (patch) | |
tree | 98918b687f2ebddc979083771c4614f9e7f44f7f /slideshow/source/engine/slideshowimpl.cxx | |
parent | 6ce2eddfdc35100b8079a4584dd3945e923d66a9 (diff) |
make physics based animation effects part of the animation engine
Wiring up and creating required classes for physics based
animation effects to be part of the animation engine.
Creating a new animation node AnimationPhysicsNode
for physics based animation effects and PhysicsAnimation
class that inherits the NumberAnimation in the animation
factory.
Change-Id: I1f125df5324673e9937b8164c0fc267c9683afa0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100151
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'slideshow/source/engine/slideshowimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index cbc468d9f17b..a91d5857bc7d 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -85,6 +85,9 @@ using namespace com::sun::star; using namespace ::slideshow::internal; +namespace box2d::utils { class box2DWorld; + typedef ::std::shared_ptr< box2DWorld > Box2DWorldSharedPtr; } + namespace { /** During animations the update() method tells its caller to call it as @@ -422,6 +425,7 @@ private: ActivitiesQueue maActivitiesQueue; UserEventQueue maUserEventQueue; SubsettableShapeManagerSharedPtr mpDummyPtr; + box2d::utils::Box2DWorldSharedPtr mpBox2DDummyPtr; std::shared_ptr<SeparateListenerImpl> mpListener; @@ -550,6 +554,7 @@ SlideShowImpl::SlideShowImpl( maEventQueue, *this ), mpDummyPtr(), + mpBox2DDummyPtr(), mpListener(), mpRehearseTimingsActivity(), mpWaitSymbol(), @@ -1694,7 +1699,8 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) *this, *this, maViewContainer, - mxComponentContext) ); + mxComponentContext, + mpBox2DDummyPtr ) ); } else if (mpRehearseTimingsActivity) { |