LibreOffice Module slideshow (master) 1
|
Generates the final clipping polygon. More...
#include <clippingfunctor.hxx>
Public Member Functions | |
ClippingFunctor (const ParametricPolyPolygonSharedPtr &rPolygon, const TransitionInfo &rTransitionInfo, bool bDirectionForward, bool bModeIn) | |
::basegfx::B2DPolyPolygon | operator() (double nValue, const ::basegfx::B2DSize &rTargetSize) |
Generate clip polygon. More... | |
Private Attributes | |
ParametricPolyPolygonSharedPtr | mpParametricPoly |
::basegfx::B2DHomMatrix | maStaticTransformation |
bool | mbForwardParameterSweep |
bool | mbSubtractPolygon |
const bool | mbScaleIsotrophically |
bool | mbFlip |
Generates the final clipping polygon.
This class serves as the functor, which generates the final clipping polygon from a given ParametricPolyPolygon and a TransitionInfo.
The ParametricPolyPolygon can be obtained from the ParametricPolyPolygonFactory, see there.
The TransitionInfo further parametrizes the polygon generated by the ParametricPolyPolygon, with common modifications such as rotation, flipping, or change of direction. This allows the ParametricPolyPolygonFactory to provide only prototypical shapes, with the ClippingFunctor further customizing the output.
Definition at line 47 of file clippingfunctor.hxx.
slideshow::internal::ClippingFunctor::ClippingFunctor | ( | const ParametricPolyPolygonSharedPtr & | rPolygon, |
const TransitionInfo & | rTransitionInfo, | ||
bool | bDirectionForward, | ||
bool | bModeIn | ||
) |
Definition at line 31 of file clippingfunctor.cxx.
References basegfx::utils::createRotateAroundPoint(), basegfx::utils::createScaleTranslateB2DHomMatrix(), basegfx::deg2rad(), ENSURE_OR_THROW, slideshow::internal::TransitionInfo::FlipX, slideshow::internal::TransitionInfo::FlipY, slideshow::internal::TransitionInfo::Ignore, maStaticTransformation, mbFlip, mbForwardParameterSweep, slideshow::internal::TransitionInfo::mbOutInvertsSweep, mbSubtractPolygon, slideshow::internal::TransitionInfo::meReverseMethod, slideshow::internal::TransitionInfo::mnRotationAngle, slideshow::internal::TransitionInfo::mnScaleX, slideshow::internal::TransitionInfo::mnScaleY, basegfx::B2DHomMatrix::rotate(), slideshow::internal::TransitionInfo::Rotate180, basegfx::B2DHomMatrix::scale(), slideshow::internal::TransitionInfo::SubtractAndInvert, and basegfx::B2DHomMatrix::translate().
basegfx::B2DPolyPolygon slideshow::internal::ClippingFunctor::operator() | ( | double | nValue, |
const ::basegfx::B2DSize & | rTargetSize | ||
) |
Generate clip polygon.
nValue | Value to generate the polygon for. Must be in the range [0,1]. |
rTargetSize | Size the clip polygon should cover. This is typically the size of the object the effect is applied on. |
Definition at line 139 of file clippingfunctor.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolyPolygon::count(), basegfx::utils::createPolygonFromRect(), basegfx::B2DPolyPolygon::flip(), basegfx::B2DPolyPolygon::getB2DRange(), basegfx::B2DPolyPolygon::insert(), basegfx::Range2D< typename TYPE, typename TRAITS >::isInside(), maStaticTransformation, mbFlip, mbForwardParameterSweep, mbScaleIsotrophically, mbSubtractPolygon, nValue, basegfx::B2DHomMatrix::scale(), basegfx::utils::solvePolygonOperationDiff(), basegfx::B2DPolyPolygon::transform(), and basegfx::B2DHomMatrix::translate().
|
private |
Definition at line 71 of file clippingfunctor.hxx.
Referenced by ClippingFunctor(), and operator()().
|
private |
Definition at line 77 of file clippingfunctor.hxx.
Referenced by ClippingFunctor(), and operator()().
|
private |
Definition at line 74 of file clippingfunctor.hxx.
Referenced by ClippingFunctor(), and operator()().
|
private |
Definition at line 76 of file clippingfunctor.hxx.
Referenced by operator()().
|
private |
Definition at line 75 of file clippingfunctor.hxx.
Referenced by ClippingFunctor(), and operator()().
|
private |
Definition at line 70 of file clippingfunctor.hxx.