31#include <com/sun/star/drawing/LineCap.hpp>
32#include <com/sun/star/rendering/CompositeOperation.hpp>
33#include <com/sun/star/rendering/PathCapType.hpp>
34#include <com/sun/star/rendering/PathJoinType.hpp>
35#include <com/sun/star/rendering/TextDirection.hpp>
37#include <rtl/math.hxx>
65 case rendering::PathJoinType::NONE:
68 case rendering::PathJoinType::MITER:
71 case rendering::PathJoinType::ROUND:
74 case rendering::PathJoinType::BEVEL:
79 "b2DJoineFromJoin(): Unexpected join type" );
85 drawing::LineCap unoCapeFromCap(
sal_Int8 nCapType)
89 case rendering::PathCapType::BUTT:
90 return drawing::LineCap_BUTT;
92 case rendering::PathCapType::ROUND:
93 return drawing::LineCap_ROUND;
95 case rendering::PathCapType::SQUARE:
96 return drawing::LineCap_SQUARE;
100 "unoCapeFromCap(): Unexpected cap type" );
102 return drawing::LineCap_BUTT;
181 rOutDev2.
SetDrawMode( DrawModeFlags::BlackLine | DrawModeFlags::BlackFill | DrawModeFlags::BlackText |
182 DrawModeFlags::BlackGradient | DrawModeFlags::BlackBitmap );
186 const geometry::RealPoint2D& aStartRealPoint2D,
187 const geometry::RealPoint2D& aEndRealPoint2D,
188 const rendering::ViewState& viewState,
189 const rendering::RenderState& renderState )
200 viewState, renderState ) );
202 viewState, renderState ) );
211 const geometry::RealBezierSegment2D& aBezierSegment,
212 const geometry::RealPoint2D& _aEndPoint,
213 const rendering::ViewState& viewState,
214 const rendering::RenderState& renderState )
224 viewState, renderState ) );
227 viewState, renderState ) );
230 viewState, renderState ) );
232 viewState, renderState ) );
235 aPoly.SetPoint( rStartPoint, 0 );
236 aPoly.SetFlags( 0, PolyFlags::Normal );
237 aPoly.SetPoint( rCtrlPoint1, 1 );
238 aPoly.SetFlags( 1, PolyFlags::Control );
239 aPoly.SetPoint( rCtrlPoint2, 2 );
240 aPoly.SetFlags( 2, PolyFlags::Control );
241 aPoly.SetPoint( rEndPoint, 3 );
242 aPoly.SetFlags( 3, PolyFlags::Normal );
251 const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
252 const rendering::ViewState& viewState,
253 const rendering::RenderState& renderState )
263 const ::basegfx::B2DPolyPolygon& rPolyPoly(
264 ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon) );
267 if( rPolyPoly.isClosed() )
283 sal_uInt16 nSize( aPolyPoly.Count() );
285 for( sal_uInt16 i=0;
i<nSize; ++
i )
296 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
300 const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
301 const rendering::ViewState& viewState,
302 const rendering::RenderState& renderState,
303 const rendering::StrokeAttributes& strokeAttributes )
316 ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon) );
318 std::vector<double> aDashArray;
319 if( strokeAttributes.DashArray.hasElements() )
320 aDashArray = ::comphelper::sequenceToContainer< std::vector<double> >(strokeAttributes.DashArray);
323 bool directFailed =
false;
325 for( sal_uInt32 i=0;
i<aPolyPoly.count(); ++
i )
327 if( !
mpOutDevProvider->getOutDev().DrawPolyLineDirect( aMatrix, aPolyPoly.getB2DPolygon(i),
328 strokeAttributes.StrokeWidth, 0, !aDashArray.empty() ? &aDashArray :
nullptr,
329 b2DJoineFromJoin(strokeAttributes.JoinType), unoCapeFromCap(strokeAttributes.StartCapType)))
336 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
341 if( strokeAttributes.DashArray.hasElements() )
345 for( sal_uInt32 i=0;
i<aPolyPoly.count(); ++
i )
354 aPolyPoly = aDashedPolyPoly;
358 strokeAttributes.StrokeWidth);
359 aLinePixelSize *= aMatrix;
361 if( aLinePixelSize.getLength() < 1.42 )
367 aStrokedPolyPoly = aPolyPoly;
374 for( sal_uInt32 i=0;
i<aPolyPoly.count(); ++
i )
376 double fMiterMinimumAngle;
377 if (strokeAttributes.MiterLimit <= 1.0)
379 fMiterMinimumAngle = M_PI_2;
383 fMiterMinimumAngle = 2.0 * asin(1.0/strokeAttributes.MiterLimit);
393 aPolyPoly.getB2DPolygon(i),
394 strokeAttributes.StrokeWidth*0.5,
395 b2DJoineFromJoin(strokeAttributes.JoinType),
396 unoCapeFromCap(strokeAttributes.StartCapType),
419 for( sal_uInt32 i=0;
i<aStrokedPolyPoly.
count(); ++
i )
435 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
439 const uno::Reference< rendering::XPolyPolygon2D >& ,
440 const rendering::ViewState& ,
441 const rendering::RenderState& ,
442 const uno::Sequence< rendering::Texture >& ,
443 const rendering::StrokeAttributes& )
445 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
449 const uno::Reference< rendering::XPolyPolygon2D >& ,
450 const rendering::ViewState& ,
451 const rendering::RenderState& ,
452 const uno::Sequence< rendering::Texture >& ,
453 const uno::Reference< geometry::XMapping2D >& ,
454 const rendering::StrokeAttributes& )
456 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
460 const uno::Reference< rendering::XPolyPolygon2D >& ,
461 const rendering::ViewState& ,
462 const rendering::RenderState& ,
463 const rendering::StrokeAttributes& )
465 return uno::Reference< rendering::XPolyPolygon2D >(
nullptr);
469 const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
470 const rendering::ViewState& viewState,
471 const rendering::RenderState& renderState )
482 ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon));
483 aB2DPolyPoly.setClosed(
true);
486 viewState, renderState ) );
487 const bool bSourceAlpha( renderState.CompositeOperation == rendering::CompositeOperation::SOURCE );
488 if( nAlpha == 255 || bSourceAlpha )
494 const int nTransPercent( ((255 - nAlpha) * 100 + 128) / 255 );
495 mpOutDevProvider->getOutDev().DrawTransparent( aPolyPoly,
static_cast<sal_uInt16
>(nTransPercent) );
513 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
517 const uno::Reference< rendering::XPolyPolygon2D >& ,
518 const rendering::ViewState& ,
519 const rendering::RenderState& ,
520 const uno::Sequence< rendering::Texture >& ,
521 const uno::Reference< geometry::XMapping2D >& )
523 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
527 const rendering::FontRequest& fontRequest,
528 const uno::Sequence< beans::PropertyValue >& extraFontProperties,
529 const geometry::Matrix2D& fontMatrix )
534 return uno::Reference< rendering::XCanvasFont >(
535 new CanvasFont(fontRequest, extraFontProperties, fontMatrix,
539 return uno::Reference< rendering::XCanvasFont >();
543 const rendering::FontInfo& ,
544 const uno::Sequence< beans::PropertyValue >& )
547 return uno::Sequence< rendering::FontInfo >();
551 const rendering::StringContext& text,
552 const uno::Reference< rendering::XCanvasFont >& xFont,
553 const rendering::ViewState& viewState,
554 const rendering::RenderState& renderState,
566 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
570 switch( textDirection )
572 case rendering::TextDirection::WEAK_LEFT_TO_RIGHT:
573 case rendering::TextDirection::STRONG_LEFT_TO_RIGHT:
578 case rendering::TextDirection::WEAK_RIGHT_TO_LEFT:
581 case rendering::TextDirection::STRONG_RIGHT_TO_LEFT:
591 ::canvas::tools::numeric_cast<sal_uInt16>(
text.StartPosition),
592 ::canvas::tools::numeric_cast<sal_uInt16>(
text.Length) );
599 ::canvas::tools::numeric_cast<sal_uInt16>(
text.StartPosition),
600 ::canvas::tools::numeric_cast<sal_uInt16>(
text.Length) );
604 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
608 const uno::Reference< rendering::XTextLayout >& xLayoutedText,
609 const rendering::ViewState& viewState,
610 const rendering::RenderState& renderState )
615 TextLayout* pTextLayout =
dynamic_cast< TextLayout*
>( xLayoutedText.get() );
629 if( !
setupTextOutput( aOutpos, viewState, renderState, xLayoutedText->getFont() ) )
630 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
634 pTextLayout->draw(
mpOutDevProvider->getOutDev(), aOutpos, viewState, renderState );
643 "TextLayout not compatible with this canvas" );
646 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
650 const uno::Reference< rendering::XBitmap >& xBitmap,
651 const rendering::ViewState& viewState,
652 const rendering::RenderState& renderState,
653 bool bModulateColors )
662 bModulateColors ? 3 : 0 );
673 aOutputPos *= aMatrix;
680 if( bModulateColors &&
681 renderState.DeviceColor.getLength() > 3 )
685 bModulateColors = !::rtl::math::approxEqual(
686 renderState.DeviceColor[3], 1.0);
693 if( !bModulateColors &&
695 (::basegfx::fTools::equalZero( aMatrix.
get(0,1) ) &&
696 ::basegfx::fTools::equalZero( aMatrix.
get(1,0) ) &&
697 ::rtl::math::approxEqual(aMatrix.
get(0,0), 1.0) &&
698 ::rtl::math::approxEqual(aMatrix.
get(1,1), 1.0)) ) )
722 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
728 aMatrix = aMatrix * aSizeTransform;
729 const double fAlpha = bModulateColors ? renderState.DeviceColor[3] : 1.0;
731 mpOutDevProvider->getOutDev().DrawTransformedBitmapEx( aMatrix, aBmpEx, fAlpha );
745 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
755 aMatrix.
decompose( aScale, aOutputPos, nRotate, nShearX );
763 if( bModulateColors )
765 const double nAlphaModulation( renderState.DeviceColor[3] );
778 ::basegfx::fround( 255.0 * nAlphaModulation ) ) );
781 if( ::basegfx::fTools::equalZero( nShearX ) )
795 const double nAngleInTenthOfDegrees (3600.0 - basegfx::rad2deg<10>(nRotate));
798 pGrfObj = std::make_shared<GraphicObject>( aBmpEx );
821 pGrfObj = std::make_shared<GraphicObject>( aBmpEx );
825 aScale.
setX( 1.0 ); aScale.
setY( 1.0 );
833 const ::Size aSz( ::basegfx::fround( aScale.
getX() * aBmpSize.
Width() ),
834 ::basegfx::fround( aScale.
getY() * aBmpSize.
Height() ) );
850 return uno::Reference< rendering::XCachedPrimitive >(
861 const_cast< rendering::XCanvas*
>(pCanvas)) );
866 return uno::Reference< rendering::XCachedPrimitive >(
nullptr);
870 const uno::Reference< rendering::XBitmap >& xBitmap,
871 const rendering::ViewState& viewState,
872 const rendering::RenderState& renderState )
882 const uno::Reference< rendering::XBitmap >& xBitmap,
883 const rendering::ViewState& viewState,
884 const rendering::RenderState& renderState )
896 return geometry::IntegerSize2D();
905 return uno::Reference< rendering::XBitmap >();
910 rOutDev.EnableMapMode(
false );
911 rOutDev.SetAntialiasing( AntialiasingFlags::Enable );
914 const Point aEmptyPoint(0,0);
915 const Size aBmpSize( rOutDev.GetOutputSizePixel() );
917 BitmapEx aBitmap( rOutDev.GetBitmapEx(aEmptyPoint, aBmpSize) );
920 beFast ? BmpScaleFlag::Default : BmpScaleFlag::BestQuality );
922 return uno::Reference< rendering::XBitmap >(
927 const geometry::IntegerRectangle2D& rect )
930 return uno::Sequence< sal_Int8 >();
940 rOutDev.EnableMapMode(
false );
941 rOutDev.SetAntialiasing( AntialiasingFlags::Enable );
943 Bitmap aBitmap( rOutDev.GetBitmapEx(aRect.TopLeft(),
944 aRect.GetSize()).GetBitmap() );
949 "Could not acquire read access to OutDev bitmap" );
951 const sal_Int32 nWidth( rect.X2 - rect.X1 );
952 const sal_Int32 nHeight( rect.Y2 - rect.Y1 );
954 rLayout.ScanLines = nHeight;
955 rLayout.ScanLineBytes = nWidth*4;
956 rLayout.ScanLineStride = rLayout.ScanLineBytes;
958 uno::Sequence< sal_Int8 > aRes( 4*nWidth*nHeight );
962 for(
int y=0;
y<nHeight; ++
y )
964 for(
int x=0;
x<nWidth; ++
x )
966 pRes[ nCurrPos++ ] = pReadAccess->GetColor(
y,
x ).GetRed();
967 pRes[ nCurrPos++ ] = pReadAccess->GetColor(
y,
x ).GetGreen();
968 pRes[ nCurrPos++ ] = pReadAccess->GetColor(
y,
x ).GetBlue();
969 pRes[ nCurrPos++ ] = -1;
977 const geometry::IntegerPoint2D& pos )
980 return uno::Sequence< sal_Int8 >();
983 rLayout.ScanLines = 1;
984 rLayout.ScanLineBytes = 4;
985 rLayout.ScanLineStride = rLayout.ScanLineBytes;
990 rOutDev.EnableMapMode(
false );
991 rOutDev.SetAntialiasing( AntialiasingFlags::Enable );
993 const Size aBmpSize( rOutDev.GetOutputSizePixel() );
996 "X coordinate out of bounds" );
998 "Y coordinate out of bounds" );
1009 return rendering::IntegerBitmapLayout();
1015 return aBitmapLayout;
1019 const rendering::RenderState& renderState,
1023 "outdev null. Are we disposed?" );
1048 if( renderState.DeviceColor.getLength() > 2 )
1051 renderState.DeviceColor );
1061 switch( eColorType )
1094 "Unexpected color type");
1103 const rendering::ViewState& viewState,
1104 const rendering::RenderState& renderState,
1105 const uno::Reference< rendering::XCanvasFont >& xFont )
const
1108 "outdev null. Are we disposed?" );
1117 "Font not compatible with this canvas" );
1123 if( renderState.DeviceColor.getLength() > 2 )
1126 renderState.DeviceColor );
1146 const rendering::ViewState& viewState,
1147 const rendering::RenderState& renderState,
1153 "Invalid Graphic" );
const Size & GetSizePixel() const
static bool Filter(BitmapEx &rBmpEx, BitmapFilter const &rFilter)
sal_uInt8 GetAlpha() const
void SetAlpha(sal_uInt8 nAlpha)
void SetRotation(Degree10 nRotate10)
void SetAlpha(sal_uInt8 cAlpha)
void EnableMapMode(bool bEnable=true)
void SetAntialiasing(AntialiasingFlags nMode)
void SetFont(const vcl::Font &rNewFont)
Size GetOutputSizePixel() const
void DrawRect(const tools::Rectangle &rRect)
void SetTextColor(const Color &rColor)
void SetDrawMode(DrawModeFlags nDrawMode)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
double get(sal_uInt16 nRow, sal_uInt16 nColumn) const
void scale(double fX, double fY)
B2DPolygon const & getB2DPolygon(sal_uInt32 nIndex) const
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
void transform(const basegfx::B2DHomMatrix &rMatrix)
void SetFillColor(const Color &)
void SetColor(const Color &)
vcl::Font const & getVCLFont() const
css::uno::Reference< css::rendering::XCachedPrimitive > strokeTextureMappedPolyPolygon(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping, const css::rendering::StrokeAttributes &strokeAttributes)
CanvasHelper()
Create canvas helper.
css::geometry::IntegerSize2D getSize()
css::rendering::XGraphicDevice * mpDevice
Phyical output device.
css::uno::Reference< css::rendering::XCachedPrimitive > drawTextLayout(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XTextLayout > &laidOutText, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
void flush() const
Flush drawing queue.
OutDevProviderSharedPtr mpProtectedOutDevProvider
Rendering to this outdev preserves its state.
void disposing()
Release all references.
bool repaint(const GraphicObjectSharedPtr &rGrf, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const ::Point &rPt, const ::Size &rSz, const GraphicAttr &rAttr) const
Repaint a cached bitmap.
css::uno::Sequence< css::rendering::FontInfo > queryAvailableFonts(const css::rendering::XCanvas *rCanvas, const css::rendering::FontInfo &aFilter, const css::uno::Sequence< css::beans::PropertyValue > &aFontProperties)
int setupOutDevState(const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, ColorType eColorType) const
css::uno::Reference< css::rendering::XCachedPrimitive > drawPolyPolygon(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
css::uno::Reference< css::rendering::XCachedPrimitive > strokeTexturedPolyPolygon(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::rendering::StrokeAttributes &strokeAttributes)
css::uno::Reference< css::rendering::XPolyPolygon2D > queryStrokeShapes(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes)
css::rendering::IntegerBitmapLayout getMemoryLayout()
css::uno::Reference< css::rendering::XCachedPrimitive > fillTextureMappedPolyPolygon(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping)
css::uno::Reference< css::rendering::XCachedPrimitive > strokePolyPolygon(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes)
void setOutDev(const OutDevProviderSharedPtr &rOutDev, bool bProtect)
Set primary output device.
void init(css::rendering::XGraphicDevice &rDevice, const OutDevProviderSharedPtr &rOutDev, bool bProtect, bool bHaveAlpha)
Initialize canvas helper.
css::uno::Reference< css::rendering::XCachedPrimitive > drawBitmap(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
bool setupTextOutput(::Point &o_rOutPos, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Reference< css::rendering::XCanvasFont > &xFont) const
css::uno::Reference< css::rendering::XCachedPrimitive > implDrawBitmap(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, bool bModulateColors)
void drawLine(const css::rendering::XCanvas *rCanvas, const css::geometry::RealPoint2D &aStartPoint, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
css::uno::Sequence< sal_Int8 > getPixel(css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos)
css::uno::Reference< css::rendering::XCachedPrimitive > drawBitmapModulated(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
OutDevProviderSharedPtr mpOutDevProvider
Rendering to this outdev does not preserve its state.
OutDevProviderSharedPtr mp2ndOutDevProvider
Rendering to this outdev does not preserve its state.
css::uno::Reference< css::rendering::XCanvasFont > createFont(const css::rendering::XCanvas *rCanvas, const css::rendering::FontRequest &fontRequest, const css::uno::Sequence< css::beans::PropertyValue > &extraFontProperties, const css::geometry::Matrix2D &fontMatrix)
void setBackgroundOutDev(const OutDevProviderSharedPtr &rOutDev)
Set secondary output device.
void drawBezier(const css::rendering::XCanvas *rCanvas, const css::geometry::RealBezierSegment2D &aBezierSegment, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
css::uno::Reference< css::rendering::XCachedPrimitive > drawText(const css::rendering::XCanvas *rCanvas, const css::rendering::StringContext &text, const css::uno::Reference< css::rendering::XCanvasFont > &xFont, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, sal_Int8 textDirection)
css::uno::Sequence< sal_Int8 > getData(css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect)
css::uno::Reference< css::rendering::XBitmap > getScaledBitmap(const css::geometry::RealSize2D &newSize, bool beFast)
css::uno::Reference< css::rendering::XCachedPrimitive > fillPolyPolygon(const css::rendering::XCanvas *rCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
bool mbHaveAlpha
When true, content is able to represent alpha.
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
#define ENSURE_OR_RETURN_FALSE(c, m)
#define ENSURE_OR_THROW(c, m)
#define ENSURE_ARG_OR_THROW(c, m)
sal::systools::COMReference< IDirect3DDevice9 > mpDevice
VCL_DLLPUBLIC bool isVCLSkiaEnabled()
B2DPolyPolygon createAreaGeometry(const B2DPolygon &rCandidate, double fHalfLineWidth, B2DLineJoin eJoin, css::drawing::LineCap eCap, double fMaxAllowedAngle=basegfx::deg2rad(12.5), double fMaxPartOfEdge=0.4, double fMiterMinimumAngle=basegfx::deg2rad(15.0))
void applyLineDashing(const B2DPolygon &rCandidate, const std::vector< double > &rDotDashArray, B2DPolyPolygon *pLineTarget, B2DPolyPolygon *pGapTarget, double fDotDashLength)
constexpr double deg2rad(double v)
std::shared_ptr< OutDevProvider > OutDevProviderSharedPtr
std::shared_ptr< GraphicObject > GraphicObjectSharedPtr