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

#include <sweepwipe.hxx>

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

Public Member Functions

 SweepWipe (bool center, bool single, bool oppositeVertical, bool flipOnYAxis)
 
virtual ::basegfx::B2DPolyPolygon operator() (double t) override
 Retrieve the poly-polygon for value t. More...
 
- Public Member Functions inherited from slideshow::internal::ParametricPolyPolygon
virtual ~ParametricPolyPolygon ()
 
virtual ::basegfx::B2DPolyPolygon operator() (double t)=0
 Retrieve the poly-polygon for value t. More...
 

Private Attributes

const bool m_center
 
const bool m_single
 
const bool m_oppositeVertical
 
const bool m_flipOnYAxis
 

Detailed Description

Definition at line 28 of file sweepwipe.hxx.

Constructor & Destructor Documentation

◆ SweepWipe()

slideshow::internal::SweepWipe::SweepWipe ( bool  center,
bool  single,
bool  oppositeVertical,
bool  flipOnYAxis 
)
inline

Definition at line 31 of file sweepwipe.hxx.

References center.

Member Function Documentation

◆ operator()()

basegfx::B2DPolyPolygon slideshow::internal::SweepWipe::operator() ( double  t)
overridevirtual

Retrieve the poly-polygon for value t.

Parameters
tCurrent parameter value to retrieve the corresponding poly-polygon for. Permissible values for t must be in the range [0,1].
Returns
a poly-polygon corresponding to the given parameter value. The poly-polygon is interpreted as living in the unit rectangle (i.e. [0,1]x[0,1]), but is not necessarily constrained to completely lie in this area (this very much depends on the actual effect to be generated). Although, from a performance perspective, it currently is advantageous to try to keep the poly-polygon within these bounds (at least if there are no hard reasons not to do so), because then reversion or out transformations are potentially faster to compute (see the TransitionInfo::meReverseMethod member in transitionfactory.cxx). Furthermore, if one of the polygon modifications involve subtraction (also see TransitionInfo::meReverseMethod), all generated polygons should be oriented clock-wise (i.e. traversing the polygon vertices with increasing vertex index should generate a clock-wise movement).

Implements slideshow::internal::ParametricPolyPolygon.

Definition at line 30 of file sweepwipe.cxx.

References basegfx::B2DPolyPolygon::append(), slideshow::internal::ClockWipe::calcCenteredClock(), basegfx::utils::createScaleB2DHomMatrix(), basegfx::utils::createTranslateB2DHomMatrix(), basegfx::B2DPolygon::flip(), slideshow::internal::flipOnYAxis(), m_center, m_flipOnYAxis, m_oppositeVertical, m_single, basegfx::B2DHomMatrix::rotate(), t, basegfx::B2DPolygon::transform(), and basegfx::B2DHomMatrix::translate().

Member Data Documentation

◆ m_center

const bool slideshow::internal::SweepWipe::m_center
private

Definition at line 38 of file sweepwipe.hxx.

Referenced by operator()().

◆ m_flipOnYAxis

const bool slideshow::internal::SweepWipe::m_flipOnYAxis
private

Definition at line 38 of file sweepwipe.hxx.

Referenced by operator()().

◆ m_oppositeVertical

const bool slideshow::internal::SweepWipe::m_oppositeVertical
private

Definition at line 38 of file sweepwipe.hxx.

Referenced by operator()().

◆ m_single

const bool slideshow::internal::SweepWipe::m_single
private

Definition at line 38 of file sweepwipe.hxx.

Referenced by operator()().


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