LibreOffice Module slideshow (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
slideshow::internal::CombTransition Class Reference

Comb transition class. More...

#include <combtransition.hxx>

Inheritance diagram for slideshow::internal::CombTransition:
[legend]
Collaboration diagram for slideshow::internal::CombTransition:
[legend]

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
 
SlideChangeBaseoperator= (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< ViewEntryViewsVecT
 
- 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...
 
ScreenUpdatergetScreenUpdater () const
 
- Static Protected Member Functions inherited from slideshow::internal::SlideChangeBase
static void renderBitmap (SlideBitmapSharedPtr const &pSlideBitmap, cppcanvas::CanvasSharedPtr const &pCanvas)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CombTransition()

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.

Parameters
nNumStripesNumber of comb-like stripes to show in this effect

Definition at line 66 of file combtransition.cxx.

Member Function Documentation

◆ operator()()

bool slideshow::internal::CombTransition::operator() ( double  x)
overridevirtual

Set the animation to value x.

Parameters
xCurrent 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.

◆ renderComb()

void slideshow::internal::CombTransition::renderComb ( double  t,
const ViewEntry rViewEntry 
) const
private

Member Data Documentation

◆ maPushDirectionUnit

const ::basegfx::B2DVector slideshow::internal::CombTransition::maPushDirectionUnit
private

Definition at line 53 of file combtransition.hxx.

Referenced by renderComb().

◆ mnNumStripes

sal_Int32 slideshow::internal::CombTransition::mnNumStripes
private

Definition at line 54 of file combtransition.hxx.

Referenced by renderComb().


The documentation for this class was generated from the following files: