LibreOffice Module slideshow (master) 1
|
Generates a snake wipe: More...
#include <snakewipe.hxx>
Public Member Functions | |
SnakeWipe (sal_Int32 nElements, bool diagonal, 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... | |
Protected Member Functions | |
::basegfx::B2DPolyPolygon | calcSnake (double t) const |
::basegfx::B2DPolyPolygon | calcHalfDiagonalSnake (double t, bool in) const |
Protected Attributes | |
const sal_Int32 | m_sqrtElements |
const double | m_elementEdge |
const bool | m_diagonal |
const bool | m_flipOnYAxis |
Generates a snake wipe:
Definition at line 29 of file snakewipe.hxx.
slideshow::internal::SnakeWipe::SnakeWipe | ( | sal_Int32 | nElements, |
bool | diagonal, | ||
bool | flipOnYAxis | ||
) |
Definition at line 36 of file snakewipe.cxx.
References nElements.
|
protected |
Definition at line 85 of file snakewipe.cxx.
References a, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), basegfx::B2DPolygon::clear(), basegfx::utils::createRotateB2DHomMatrix(), basegfx::utils::createTranslateB2DHomMatrix(), d, in, m_elementEdge, m_sqrtElements, basegfx::B2DHomMatrix::rotate(), basegfx::B2DPolygon::setClosed(), t, o3tl::temporary(), basegfx::B2DPolygon::transform(), and basegfx::B2DHomMatrix::translate().
Referenced by operator()(), and slideshow::internal::ParallelSnakesWipe::operator()().
|
protected |
Definition at line 45 of file snakewipe.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), col, line, m_elementEdge, m_sqrtElements, basegfx::B2DPolygon::setClosed(), and t.
Referenced by operator()(), and slideshow::internal::ParallelSnakesWipe::operator()().
|
overridevirtual |
Retrieve the poly-polygon for value t.
t | Current parameter value to retrieve the corresponding poly-polygon for. Permissible values for t must be in the range [0,1]. |
Implements slideshow::internal::ParametricPolyPolygon.
Reimplemented in slideshow::internal::ParallelSnakesWipe.
Definition at line 179 of file snakewipe.cxx.
References basegfx::B2DPolyPolygon::append(), calcHalfDiagonalSnake(), calcSnake(), slideshow::internal::flipOnYAxis(), m_diagonal, m_flipOnYAxis, and t.
|
protected |
Definition at line 43 of file snakewipe.hxx.
Referenced by operator()(), and slideshow::internal::ParallelSnakesWipe::operator()().
|
protected |
Definition at line 42 of file snakewipe.hxx.
Referenced by calcHalfDiagonalSnake(), and calcSnake().
|
protected |
Definition at line 44 of file snakewipe.hxx.
Referenced by operator()(), and slideshow::internal::ParallelSnakesWipe::operator()().
|
protected |
Definition at line 41 of file snakewipe.hxx.
Referenced by calcHalfDiagonalSnake(), and calcSnake().