LibreOffice Module drawinglayer (master) 1
|
#include <emfppath.hxx>
Public Member Functions | |
EMFPPath (sal_uInt32 _nPoints, bool bLines=false) | |
virtual | ~EMFPPath () override |
void | Read (SvStream &s, sal_uInt32 pathFlags) |
::basegfx::B2DPolyPolygon & | GetPolygon (EmfPlusHelperData const &rR, bool bMapIt=true, bool bAddLineToCloseShape=false) |
::basegfx::B2DPolyPolygon & | GetCardinalSpline (EmfPlusHelperData const &rR, float fTension, sal_uInt32 aOffset, sal_uInt32 aNumSegments) |
::basegfx::B2DPolyPolygon & | GetClosedCardinalSpline (EmfPlusHelperData const &rR, float fTension) |
Public Member Functions inherited from emfplushelper::EMFPObject | |
virtual | ~EMFPObject () |
Private Attributes | |
::basegfx::B2DPolyPolygon | aPolygon |
sal_uInt32 | nPoints |
std::deque< float > | xPoints |
std::deque< float > | yPoints |
std::unique_ptr< sal_uInt8[]> | pPointTypes |
Definition at line 26 of file emfppath.hxx.
emfplushelper::EMFPPath::EMFPPath | ( | sal_uInt32 | _nPoints, |
bool | bLines = false |
||
) |
Definition at line 67 of file emfppath.cxx.
References nPoints, pPointTypes, and SAL_MAX_UINT32.
|
overridevirtual |
Definition at line 80 of file emfppath.cxx.
basegfx::B2DPolyPolygon & emfplushelper::EMFPPath::GetCardinalSpline | ( | EmfPlusHelperData const & | rR, |
float | fTension, | ||
sal_uInt32 | aOffset, | ||
sal_uInt32 | aNumSegments | ||
) |
Definition at line 256 of file emfppath.cxx.
References aPolygon, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), emfplushelper::calculateSplineCoefficients(), basegfx::B2DPolygon::count(), emfplushelper::GetCardinalMatrix(), i, emfplushelper::EmfPlusHelperData::Map(), emfplushelper::nDetails, nPoints, x, xPoints, y, and yPoints.
Referenced by emfplushelper::EmfPlusHelperData::processEmfPlusData().
basegfx::B2DPolyPolygon & emfplushelper::EMFPPath::GetClosedCardinalSpline | ( | EmfPlusHelperData const & | rR, |
float | fTension | ||
) |
Definition at line 288 of file emfppath.cxx.
References aPolygon, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), emfplushelper::calculateSplineCoefficients(), basegfx::B2DPolygon::count(), emfplushelper::GetCardinalMatrix(), i, emfplushelper::EmfPlusHelperData::Map(), emfplushelper::nDetails, nPoints, basegfx::B2DPolygon::setClosed(), x, xPoints, y, and yPoints.
Referenced by emfplushelper::EmfPlusHelperData::processEmfPlusData().
basegfx::B2DPolyPolygon & emfplushelper::EMFPPath::GetPolygon | ( | EmfPlusHelperData const & | rR, |
bool | bMapIt = true , |
||
bool | bAddLineToCloseShape = false |
||
) |
Definition at line 132 of file emfppath.cxx.
References aPolygon, basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), basegfx::B2DPolygon::clear(), basegfx::B2DPolyPolygon::clear(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolyPolygon::getB2DPolygon(), basegfx::B2DPolygon::getNextControlPoint(), basegfx::B2DPolygon::getPrevControlPoint(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), i, basegfx::B2DPolygon::isNextControlPointUsed(), basegfx::B2DPolygon::isPrevControlPointUsed(), emfplushelper::EmfPlusHelperData::Map(), nPoints, p, point(), pPointTypes, SAL_INFO, basegfx::B2DPolygon::setClosed(), basegfx::B2DPolygon::setNextControlPoint(), basegfx::B2DPolygon::setPrevControlPoint(), xPoints, and yPoints.
Referenced by emfplushelper::EmfPlusHelperData::processEmfPlusData(), emfplushelper::EMFPCustomLineCap::ReadPath(), and emfplushelper::EMFPRegion::ReadRegionNode().
void emfplushelper::EMFPPath::Read | ( | SvStream & | s, |
sal_uInt32 | pathFlags | ||
) |
Definition at line 84 of file emfppath.cxx.
References aPolygon, basegfx::B2DPolyPolygon::clear(), emfplushelper::GetEmfPlusInteger(), i, nPoints, pPointTypes, SvStream::ReadFloat(), SvStream::ReadInt16(), SvStream::ReadUChar(), SAL_INFO, x, xPoints, y, and yPoints.
Referenced by emfplushelper::EmfPlusHelperData::processEmfPlusData(), emfplushelper::EmfPlusHelperData::processObjectRecord(), emfplushelper::EMFPCustomLineCap::ReadPath(), and emfplushelper::EMFPRegion::ReadRegionNode().
|
private |
Definition at line 28 of file emfppath.hxx.
Referenced by GetCardinalSpline(), GetClosedCardinalSpline(), GetPolygon(), and Read().
|
private |
Definition at line 29 of file emfppath.hxx.
Referenced by EMFPPath(), GetCardinalSpline(), GetClosedCardinalSpline(), GetPolygon(), and Read().
|
private |
Definition at line 31 of file emfppath.hxx.
Referenced by EMFPPath(), GetPolygon(), and Read().
|
private |
Definition at line 30 of file emfppath.hxx.
Referenced by GetCardinalSpline(), GetClosedCardinalSpline(), GetPolygon(), and Read().
|
private |
Definition at line 30 of file emfppath.hxx.
Referenced by GetCardinalSpline(), GetClosedCardinalSpline(), GetPolygon(), and Read().