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

#include <figurewipe.hxx>

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

Public Member Functions

virtual ::basegfx::B2DPolyPolygon operator() (double t) override
 Retrieve the poly-polygon for value t. More...
 
 FigureWipe (::basegfx::B2DPolygon figure)
 
- 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...
 

Static Public Member Functions

static std::shared_ptr< FigureWipecreateTriangleWipe ()
 
static std::shared_ptr< FigureWipecreateArrowHeadWipe ()
 
static std::shared_ptr< FigureWipecreateStarWipe (sal_Int32 nPoints)
 
static std::shared_ptr< FigureWipecreatePentagonWipe ()
 
static std::shared_ptr< FigureWipecreateHexagonWipe ()
 

Private Attributes

const ::basegfx::B2DPolygon m_figure
 

Detailed Description

Definition at line 30 of file figurewipe.hxx.

Constructor & Destructor Documentation

◆ FigureWipe()

slideshow::internal::FigureWipe::FigureWipe ( ::basegfx::B2DPolygon  figure)
inlineexplicit

Definition at line 40 of file figurewipe.hxx.

Member Function Documentation

◆ createArrowHeadWipe()

std::shared_ptr< FigureWipe > slideshow::internal::FigureWipe::createArrowHeadWipe ( )
static

◆ createHexagonWipe()

std::shared_ptr< FigureWipe > slideshow::internal::FigureWipe::createHexagonWipe ( )
static

◆ createPentagonWipe()

std::shared_ptr< FigureWipe > slideshow::internal::FigureWipe::createPentagonWipe ( )
static

◆ createStarWipe()

std::shared_ptr< FigureWipe > slideshow::internal::FigureWipe::createStarWipe ( sal_Int32  nPoints)
static

◆ createTriangleWipe()

std::shared_ptr< FigureWipe > slideshow::internal::FigureWipe::createTriangleWipe ( )
static

◆ operator()()

basegfx::B2DPolyPolygon slideshow::internal::FigureWipe::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 figurewipe.cxx.

References basegfx::utils::createScaleTranslateB2DHomMatrix(), m_figure, t, and basegfx::B2DPolyPolygon::transform().

Member Data Documentation

◆ m_figure

const ::basegfx::B2DPolygon slideshow::internal::FigureWipe::m_figure
private

Definition at line 42 of file figurewipe.hxx.

Referenced by operator()().


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