LibreOffice Module slideshow (master) 1
|
Comb transition class. More...
#include <combtransition.hxx>
Public Member Functions | |
CombTransition (::std::optional< SlideSharedPtr > const &leavingSlide, const SlideSharedPtr &pEnteringSlide, const SoundPlayerSharedPtr &pSoundPlayer, const UnoViewContainer &rViewContainer, ScreenUpdater &rScreenUpdater, EventMultiplexer &rEventMultiplexer, const ::basegfx::B2DVector &rPushDirection, sal_Int32 nNumStripes) | |
Create the comb transition effect. More... | |
virtual bool | operator() (double x) override |
Set the animation to value x. More... | |
Public Member Functions inherited from slideshow::internal::SlideChangeBase | |
SlideChangeBase (const SlideChangeBase &)=delete | |
SlideChangeBase & | operator= (const SlideChangeBase &)=delete |
virtual bool | operator() (double x) override |
Set the animation to value x. More... | |
virtual double | getUnderlyingValue () const override |
Request the underlying value for this animation. More... | |
virtual void | prefetch () override |
Notify that the animation going active soon. More... | |
virtual void | start (const AnimatableShapeSharedPtr &, const ShapeAttributeLayerSharedPtr &) override |
Notify that the animation is about to begin. More... | |
virtual void | end () override |
Notify that the animation is about to end. More... | |
virtual void | viewAdded (const UnoViewSharedPtr &rView) override |
Notify new view. More... | |
virtual void | viewRemoved (const UnoViewSharedPtr &rView) override |
Notify removed view. More... | |
virtual void | viewChanged (const UnoViewSharedPtr &rView) override |
Notify changed view. More... | |
virtual void | viewsChanged () override |
Notify that all views changed. More... | |
virtual void | viewAdded (const UnoViewSharedPtr &rView)=0 |
Notify new view. More... | |
virtual void | viewRemoved (const UnoViewSharedPtr &rView)=0 |
Notify removed view. More... | |
virtual void | viewChanged (const UnoViewSharedPtr &rView)=0 |
Notify changed view. More... | |
virtual void | viewsChanged ()=0 |
Notify that all views changed. More... | |
Public Member Functions inherited from slideshow::internal::SharedPtrAble | |
virtual | ~SharedPtrAble () |
virtual bool | operator() (double x)=0 |
Set the animation to value x. More... | |
virtual double | getUnderlyingValue () const =0 |
Request the underlying value for this animation. More... | |
virtual void | prefetch ()=0 |
Notify that the animation going active soon. More... | |
virtual void | start (const AnimatableShapeSharedPtr &rShape, const ShapeAttributeLayerSharedPtr &rAttrLayer)=0 |
Notify that the animation is about to begin. More... | |
virtual void | end ()=0 |
Notify that the animation is about to end. More... | |
Private Member Functions | |
void | renderComb (double t, const ViewEntry &rViewEntry) const |
Private Attributes | |
const ::basegfx::B2DVector | maPushDirectionUnit |
sal_Int32 | mnNumStripes |
Additional Inherited Members | |
Public Types inherited from slideshow::internal::NumberAnimation | |
typedef double | ValueType |
Protected Types inherited from slideshow::internal::SlideChangeBase | |
typedef ::std::vector< ViewEntry > | ViewsVecT |
Protected Member Functions inherited from slideshow::internal::SlideChangeBase | |
SlideChangeBase (::std::optional< SlideSharedPtr > leavingSlide, const SlideSharedPtr &pEnteringSlide, SoundPlayerSharedPtr pSoundPlayer, const UnoViewContainer &rViewContainer, ScreenUpdater &rScreenUpdater, EventMultiplexer &rEventMultiplexer, bool bCreateLeavingSprites=true, bool bCreateEnteringSprites=true) | |
Create a new SlideChanger, for the given leaving and entering slides. More... | |
ViewsVecT::const_iterator | beginViews () |
ViewsVecT::const_iterator | endViews () |
SlideBitmapSharedPtr | getLeavingBitmap (const ViewEntry &rViewEntry) const |
SlideBitmapSharedPtr | getEnteringBitmap (const ViewEntry &rViewEntry) const |
SlideBitmapSharedPtr | createBitmap (const UnoViewSharedPtr &pView, const std::optional< SlideSharedPtr > &rSlide_) const |
::basegfx::B2ISize | getEnteringSlideSizePixel (const UnoViewSharedPtr &pView) const |
virtual void | prepareForRun (const ViewEntry &rViewEntry, const cppcanvas::CanvasSharedPtr &rDestinationCanvas) |
Called on derived classes to perform actions before first run. More... | |
virtual void | performIn (const cppcanvas::CustomSpriteSharedPtr &rSprite, const ViewEntry &rViewEntry, const cppcanvas::CanvasSharedPtr &rDestinationCanvas, double t) |
Called on derived classes to implement actual slide change. More... | |
virtual void | performOut (const cppcanvas::CustomSpriteSharedPtr &rSprite, const ViewEntry &rViewEntry, const cppcanvas::CanvasSharedPtr &rDestinationCanvas, double t) |
Called on derived classes to implement actual slide change. More... | |
ScreenUpdater & | getScreenUpdater () const |
Static Protected Member Functions inherited from slideshow::internal::SlideChangeBase | |
static void | renderBitmap (SlideBitmapSharedPtr const &pSlideBitmap, cppcanvas::CanvasSharedPtr const &pCanvas) |
Comb transition class.
This class provides a SlideChangeAnimation, showing a comb-like effect (stripes of alternating push effects).
Definition at line 32 of file combtransition.hxx.
slideshow::internal::CombTransition::CombTransition | ( | ::std::optional< SlideSharedPtr > const & | leavingSlide, |
const SlideSharedPtr & | pEnteringSlide, | ||
const SoundPlayerSharedPtr & | pSoundPlayer, | ||
const UnoViewContainer & | rViewContainer, | ||
ScreenUpdater & | rScreenUpdater, | ||
EventMultiplexer & | rEventMultiplexer, | ||
const ::basegfx::B2DVector & | rPushDirection, | ||
sal_Int32 | nNumStripes | ||
) |
Create the comb transition effect.
nNumStripes | Number of comb-like stripes to show in this effect |
Definition at line 66 of file combtransition.cxx.
|
overridevirtual |
Set the animation to value x.
x | Current animation value (must be in an attribute-specific permissible range). Overflowing values will be clipped to the permissible range internally. |
Reimplemented from slideshow::internal::SlideChangeBase.
Definition at line 163 of file combtransition.cxx.
References slideshow::internal::SlideChangeBase::beginViews(), slideshow::internal::SlideChangeBase::endViews(), slideshow::internal::SlideChangeBase::getScreenUpdater(), slideshow::internal::ScreenUpdater::notifyUpdate(), renderComb(), and t.
|
private |
Definition at line 84 of file combtransition.cxx.
References basegfx::utils::createTranslateB2DHomMatrix(), slideshow::internal::SlideChangeBase::getEnteringBitmap(), slideshow::internal::SlideChangeBase::getEnteringSlideSizePixel(), slideshow::internal::SlideChangeBase::getLeavingBitmap(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), maPushDirectionUnit, mnNumStripes, slideshow::internal::SlideChangeBase::ViewEntry::mpView, p, and t.
Referenced by operator()().
|
private |
Definition at line 53 of file combtransition.hxx.
Referenced by renderComb().
|
private |
Definition at line 54 of file combtransition.hxx.
Referenced by renderComb().