LibreOffice Module basegfx (master) 1
Classes | Typedefs | Functions
basegfx::unotools Namespace Reference

Classes

class  UnoPolyPolygon
 

Typedefs

typedef comphelper::WeakComponentImplHelper< css::rendering::XLinePolyPolygon2D, css::rendering::XBezierPolyPolygon2D, css::lang::XServiceInfo > UnoPolyPolygonBase
 

Functions

uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > bezierSequenceSequenceFromB2DPolyPolygon (const ::basegfx::B2DPolyPolygon &rPolyPoly)
 
uno::Sequence< uno::Sequence< geometry::RealPoint2D > > pointSequenceSequenceFromB2DPolyPolygon (const ::basegfx::B2DPolyPolygon &rPolyPoly)
 
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolygon (const uno::Reference< rendering::XGraphicDevice > &xGraphicDevice, const ::basegfx::B2DPolygon &rPoly)
 
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolyPolygon (const uno::Reference< rendering::XGraphicDevice > &xGraphicDevice, const ::basegfx::B2DPolyPolygon &rPolyPoly)
 
::basegfx::B2DPolygon polygonFromPoint2DSequence (const uno::Sequence< geometry::RealPoint2D > &points)
 
::basegfx::B2DPolyPolygon polyPolygonFromPoint2DSequenceSequence (const uno::Sequence< uno::Sequence< geometry::RealPoint2D > > &points)
 
::basegfx::B2DPolygon polygonFromBezier2DSequence (const uno::Sequence< geometry::RealBezierSegment2D > &curves)
 
::basegfx::B2DPolyPolygon polyPolygonFromBezier2DSequenceSequence (const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > &curves)
 
::basegfx::B2DPolyPolygon b2DPolyPolygonFromXPolyPolygon2D (const uno::Reference< rendering::XPolyPolygon2D > &xPoly)
 
::basegfx::B2DHomMatrix & homMatrixFromAffineMatrix (::basegfx::B2DHomMatrix &output, const geometry::AffineMatrix2D &input)
 
::basegfx::B3DHomMatrix homMatrixFromAffineMatrix3D (const ::css::geometry::AffineMatrix3D &input)
 
geometry::AffineMatrix2D & affineMatrixFromHomMatrix (geometry::AffineMatrix2D &output, const ::basegfx::B2DHomMatrix &input)
 
geometry::AffineMatrix3D & affineMatrixFromHomMatrix3D (geometry::AffineMatrix3D &output, const ::basegfx::B3DHomMatrix &input)
 
geometry::RealSize2D size2DFromB2DSize (const ::basegfx::B2DSize &rSize)
 
geometry::RealPoint2D point2DFromB2DPoint (const ::basegfx::B2DPoint &rPoint)
 
geometry::RealRectangle2D rectangle2DFromB2DRectangle (const ::basegfx::B2DRange &rRect)
 
geometry::RealRectangle3D rectangle3DFromB3DRectangle (const ::basegfx::B3DRange &rRect)
 
::basegfx::B2DPoint b2DPointFromRealPoint2D (const geometry::RealPoint2D &rPoint)
 
::basegfx::B2DRange b2DRectangleFromRealRectangle2D (const geometry::RealRectangle2D &rRect)
 
::basegfx::B3DRange b3DRectangleFromRealRectangle3D (const geometry::RealRectangle3D &rRect)
 
geometry::IntegerSize2D integerSize2DFromB2ISize (const ::basegfx::B2ISize &rSize)
 
basegfx::B2ISize b2ISizeFromIntegerSize2D (const geometry::IntegerSize2D &rSize)
 
::basegfx::B2IRange b2IRectangleFromIntegerRectangle2D (const geometry::IntegerRectangle2D &rRectangle)
 
::basegfx::B2IRange b2IRectangleFromAwtRectangle (const awt::Rectangle &rRect)
 
::basegfx::B2IRange b2ISurroundingRangeFromB2DRange (const ::basegfx::B2DRange &rRange)
 Return smalltest integer range, which completely contains given floating point range. More...
 
::basegfx::B2DRange b2DSurroundingIntegerRangeFromB2DRange (const ::basegfx::B2DRange &rRange)
 Return smalltest B2DRange with integer values, which completely contains given floating point range. More...
 
BASEGFX_DLLPUBLIC css::uno::Reference< css::rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &xGraphicDevice, const ::basegfx::B2DPolygon &rPoly)
 
BASEGFX_DLLPUBLIC css::uno::Reference< css::rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolyPolygon (const css::uno::Reference< css::rendering::XGraphicDevice > &xGraphicDevice, const ::basegfx::B2DPolyPolygon &rPolyPoly)
 
::basegfx::B2DPolygon polygonFromPoint2DSequence (const css::uno::Sequence< css::geometry::RealPoint2D > &rPoints)
 
BASEGFX_DLLPUBLIC::basegfx::B2DPolyPolygon polyPolygonFromPoint2DSequenceSequence (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &rPoints)
 
::basegfx::B2DPolygon polygonFromBezier2DSequence (const css::uno::Sequence< css::geometry::RealBezierSegment2D > &rPoints)
 
BASEGFX_DLLPUBLIC::basegfx::B2DPolyPolygon polyPolygonFromBezier2DSequenceSequence (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &rPoints)
 
BASEGFX_DLLPUBLIC::basegfx::B2DPolyPolygon b2DPolyPolygonFromXPolyPolygon2D (const css::uno::Reference< css::rendering::XPolyPolygon2D > &rPoly)
 
BASEGFX_DLLPUBLIC css::geometry::AffineMatrix2D & affineMatrixFromHomMatrix (css::geometry::AffineMatrix2D &matrix, const ::basegfx::B2DHomMatrix &transform)
 
css::geometry::AffineMatrix3D & affineMatrixFromHomMatrix3D (css::geometry::AffineMatrix3D &matrix, const ::basegfx::B3DHomMatrix &transform)
 
BASEGFX_DLLPUBLIC::basegfx::B2DHomMatrix & homMatrixFromAffineMatrix (::basegfx::B2DHomMatrix &transform, const css::geometry::AffineMatrix2D &matrix)
 
BASEGFX_DLLPUBLIC::basegfx::B3DHomMatrix homMatrixFromAffineMatrix3D (const css::geometry::AffineMatrix3D &matrix)
 
BASEGFX_DLLPUBLIC::basegfx::B2DPoint b2DPointFromRealPoint2D (const css::geometry::RealPoint2D &)
 
BASEGFX_DLLPUBLIC::basegfx::B2DRange b2DRectangleFromRealRectangle2D (const css::geometry::RealRectangle2D &)
 
::basegfx::B3DRange b3DRectangleFromRealRectangle3D (const css::geometry::RealRectangle3D &)
 
BASEGFX_DLLPUBLIC css::geometry::IntegerSize2D integerSize2DFromB2ISize (basegfx::B2ISize const &rSize)
 
BASEGFX_DLLPUBLIC::basegfx::B2ISize b2ISizeFromIntegerSize2D (const css::geometry::IntegerSize2D &)
 
BASEGFX_DLLPUBLIC::basegfx::B2IRange b2IRectangleFromIntegerRectangle2D (const css::geometry::IntegerRectangle2D &)
 
BASEGFX_DLLPUBLIC::basegfx::B2IRange b2IRectangleFromAwtRectangle (const css::awt::Rectangle &)
 

Typedef Documentation

◆ UnoPolyPolygonBase

typedef comphelper::WeakComponentImplHelper< css::rendering::XLinePolyPolygon2D, css::rendering::XBezierPolyPolygon2D, css::lang::XServiceInfo > basegfx::unotools::UnoPolyPolygonBase

Definition at line 37 of file unopolypolygon.hxx.

Function Documentation

◆ affineMatrixFromHomMatrix() [1/2]

BASEGFX_DLLPUBLIC css::geometry::AffineMatrix2D & basegfx::unotools::affineMatrixFromHomMatrix ( css::geometry::AffineMatrix2D &  matrix,
const ::basegfx::B2DHomMatrix &  transform 
)

◆ affineMatrixFromHomMatrix() [2/2]

geometry::AffineMatrix2D & basegfx::unotools::affineMatrixFromHomMatrix ( geometry::AffineMatrix2D &  output,
const ::basegfx::B2DHomMatrix &  input 
)

Definition at line 343 of file canvastools.cxx.

◆ affineMatrixFromHomMatrix3D() [1/2]

css::geometry::AffineMatrix3D & basegfx::unotools::affineMatrixFromHomMatrix3D ( css::geometry::AffineMatrix3D &  matrix,
const ::basegfx::B3DHomMatrix &  transform 
)

◆ affineMatrixFromHomMatrix3D() [2/2]

geometry::AffineMatrix3D & basegfx::unotools::affineMatrixFromHomMatrix3D ( geometry::AffineMatrix3D &  output,
const ::basegfx::B3DHomMatrix &  input 
)

Definition at line 356 of file canvastools.cxx.

◆ b2DPointFromRealPoint2D() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2DPoint basegfx::unotools::b2DPointFromRealPoint2D ( const css::geometry::RealPoint2D &  )

◆ b2DPointFromRealPoint2D() [2/2]

::basegfx::B2DPoint basegfx::unotools::b2DPointFromRealPoint2D ( const geometry::RealPoint2D &  rPoint)

◆ b2DPolyPolygonFromXPolyPolygon2D() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2DPolyPolygon basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D ( const css::uno::Reference< css::rendering::XPolyPolygon2D > &  rPoly)

◆ b2DPolyPolygonFromXPolyPolygon2D() [2/2]

::basegfx::B2DPolyPolygon basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D ( const uno::Reference< rendering::XPolyPolygon2D > &  xPoly)

◆ b2DRectangleFromRealRectangle2D() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2DRange basegfx::unotools::b2DRectangleFromRealRectangle2D ( const css::geometry::RealRectangle2D &  )

◆ b2DRectangleFromRealRectangle2D() [2/2]

::basegfx::B2DRange basegfx::unotools::b2DRectangleFromRealRectangle2D ( const geometry::RealRectangle2D &  rRect)

Definition at line 413 of file canvastools.cxx.

◆ b2DSurroundingIntegerRangeFromB2DRange()

BASEGFX_DLLPUBLIC::basegfx::B2DRange basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange ( const ::basegfx::B2DRange &  rRange)

Return smalltest B2DRange with integer values, which completely contains given floating point range.

Parameters
rRangeInput range.
Returns
the closest B2DRange with integer coordinates, which completely contains rRange.

Definition at line 464 of file canvastools.cxx.

◆ b2IRectangleFromAwtRectangle() [1/2]

::basegfx::B2IRange basegfx::unotools::b2IRectangleFromAwtRectangle ( const awt::Rectangle &  rRect)

Definition at line 448 of file canvastools.cxx.

◆ b2IRectangleFromAwtRectangle() [2/2]

BASEGFX_DLLPUBLIC::basegfx::B2IRange basegfx::unotools::b2IRectangleFromAwtRectangle ( const css::awt::Rectangle &  )

◆ b2IRectangleFromIntegerRectangle2D() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2IRange basegfx::unotools::b2IRectangleFromIntegerRectangle2D ( const css::geometry::IntegerRectangle2D &  )

◆ b2IRectangleFromIntegerRectangle2D() [2/2]

::basegfx::B2IRange basegfx::unotools::b2IRectangleFromIntegerRectangle2D ( const geometry::IntegerRectangle2D &  rRectangle)

Definition at line 442 of file canvastools.cxx.

◆ b2ISizeFromIntegerSize2D() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2ISize basegfx::unotools::b2ISizeFromIntegerSize2D ( const css::geometry::IntegerSize2D &  )

◆ b2ISizeFromIntegerSize2D() [2/2]

basegfx::B2ISize basegfx::unotools::b2ISizeFromIntegerSize2D ( const geometry::IntegerSize2D &  rSize)

Definition at line 437 of file canvastools.cxx.

◆ b2ISurroundingRangeFromB2DRange()

BASEGFX_DLLPUBLIC::basegfx::B2IRange basegfx::unotools::b2ISurroundingRangeFromB2DRange ( const ::basegfx::B2DRange &  rRange)

Return smalltest integer range, which completely contains given floating point range.

Parameters
rRangeInput range. Values must be within the representable bounds of sal_Int32
Returns
the closest integer range, which completely contains rRange.

Definition at line 456 of file canvastools.cxx.

◆ b3DRectangleFromRealRectangle3D() [1/2]

::basegfx::B3DRange basegfx::unotools::b3DRectangleFromRealRectangle3D ( const css::geometry::RealRectangle3D &  )

◆ b3DRectangleFromRealRectangle3D() [2/2]

::basegfx::B3DRange basegfx::unotools::b3DRectangleFromRealRectangle3D ( const geometry::RealRectangle3D &  rRect)

Definition at line 421 of file canvastools.cxx.

◆ bezierSequenceSequenceFromB2DPolyPolygon()

css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > basegfx::unotools::bezierSequenceSequenceFromB2DPolyPolygon ( const ::basegfx::B2DPolyPolygon &  rPolyPoly)

◆ homMatrixFromAffineMatrix() [1/2]

::basegfx::B2DHomMatrix & basegfx::unotools::homMatrixFromAffineMatrix ( ::basegfx::B2DHomMatrix &  output,
const geometry::AffineMatrix2D &  input 
)

◆ homMatrixFromAffineMatrix() [2/2]

BASEGFX_DLLPUBLIC::basegfx::B2DHomMatrix & basegfx::unotools::homMatrixFromAffineMatrix ( ::basegfx::B2DHomMatrix &  transform,
const css::geometry::AffineMatrix2D &  matrix 
)

◆ homMatrixFromAffineMatrix3D() [1/2]

::basegfx::B3DHomMatrix basegfx::unotools::homMatrixFromAffineMatrix3D ( const ::css::geometry::AffineMatrix3D &  input)

Definition at line 321 of file canvastools.cxx.

References basegfx::B3DHomMatrix::set().

◆ homMatrixFromAffineMatrix3D() [2/2]

BASEGFX_DLLPUBLIC::basegfx::B3DHomMatrix basegfx::unotools::homMatrixFromAffineMatrix3D ( const css::geometry::AffineMatrix3D &  matrix)

◆ integerSize2DFromB2ISize() [1/2]

BASEGFX_DLLPUBLIC css::geometry::IntegerSize2D basegfx::unotools::integerSize2DFromB2ISize ( basegfx::B2ISize const &  rSize)

◆ integerSize2DFromB2ISize() [2/2]

geometry::IntegerSize2D basegfx::unotools::integerSize2DFromB2ISize ( const ::basegfx::B2ISize &  rSize)

Definition at line 431 of file canvastools.cxx.

◆ point2DFromB2DPoint()

BASEGFX_DLLPUBLIC css::geometry::RealPoint2D basegfx::unotools::point2DFromB2DPoint ( const ::basegfx::B2DPoint &  rPoint)

Definition at line 383 of file canvastools.cxx.

Referenced by basegfx::unotools::UnoPolyPolygon::getPoint().

◆ pointSequenceSequenceFromB2DPolyPolygon()

css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > basegfx::unotools::pointSequenceSequenceFromB2DPolyPolygon ( const ::basegfx::B2DPolyPolygon &  rPolyPoly)

Definition at line 110 of file canvastools.cxx.

References i.

Referenced by basegfx::unotools::UnoPolyPolygon::getPoints(), and xPolyPolygonFromB2DPolyPolygon().

◆ polygonFromBezier2DSequence() [1/2]

::basegfx::B2DPolygon basegfx::unotools::polygonFromBezier2DSequence ( const css::uno::Sequence< css::geometry::RealBezierSegment2D > &  rPoints)

◆ polygonFromBezier2DSequence() [2/2]

::basegfx::B2DPolygon basegfx::unotools::polygonFromBezier2DSequence ( const uno::Sequence< geometry::RealBezierSegment2D > &  curves)

◆ polygonFromPoint2DSequence() [1/2]

::basegfx::B2DPolygon basegfx::unotools::polygonFromPoint2DSequence ( const css::uno::Sequence< css::geometry::RealPoint2D > &  rPoints)

◆ polygonFromPoint2DSequence() [2/2]

::basegfx::B2DPolygon basegfx::unotools::polygonFromPoint2DSequence ( const uno::Sequence< geometry::RealPoint2D > &  points)

◆ polyPolygonFromBezier2DSequenceSequence() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2DPolyPolygon basegfx::unotools::polyPolygonFromBezier2DSequenceSequence ( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &  rPoints)

◆ polyPolygonFromBezier2DSequenceSequence() [2/2]

::basegfx::B2DPolyPolygon basegfx::unotools::polyPolygonFromBezier2DSequenceSequence ( const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > &  curves)

◆ polyPolygonFromPoint2DSequenceSequence() [1/2]

BASEGFX_DLLPUBLIC::basegfx::B2DPolyPolygon basegfx::unotools::polyPolygonFromPoint2DSequenceSequence ( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &  rPoints)

◆ polyPolygonFromPoint2DSequenceSequence() [2/2]

::basegfx::B2DPolyPolygon basegfx::unotools::polyPolygonFromPoint2DSequenceSequence ( const uno::Sequence< uno::Sequence< geometry::RealPoint2D > > &  points)

◆ rectangle2DFromB2DRectangle()

BASEGFX_DLLPUBLIC css::geometry::RealRectangle2D basegfx::unotools::rectangle2DFromB2DRectangle ( const ::basegfx::B2DRange &  rRect)

Definition at line 389 of file canvastools.cxx.

◆ rectangle3DFromB3DRectangle()

BASEGFX_DLLPUBLIC css::geometry::RealRectangle3D basegfx::unotools::rectangle3DFromB3DRectangle ( const ::basegfx::B3DRange &  rRect)

Definition at line 397 of file canvastools.cxx.

◆ size2DFromB2DSize()

BASEGFX_DLLPUBLIC css::geometry::RealSize2D basegfx::unotools::size2DFromB2DSize ( const ::basegfx::B2DSize &  rSize)

Definition at line 378 of file canvastools.cxx.

◆ xPolyPolygonFromB2DPolygon() [1/2]

BASEGFX_DLLPUBLIC css::uno::Reference< css::rendering::XPolyPolygon2D > basegfx::unotools::xPolyPolygonFromB2DPolygon ( const css::uno::Reference< css::rendering::XGraphicDevice > &  xGraphicDevice,
const ::basegfx::B2DPolygon &  rPoly 
)

◆ xPolyPolygonFromB2DPolygon() [2/2]

uno::Reference< rendering::XPolyPolygon2D > basegfx::unotools::xPolyPolygonFromB2DPolygon ( const uno::Reference< rendering::XGraphicDevice > &  xGraphicDevice,
const ::basegfx::B2DPolygon &  rPoly 
)

Definition at line 126 of file canvastools.cxx.

◆ xPolyPolygonFromB2DPolyPolygon() [1/2]

BASEGFX_DLLPUBLIC css::uno::Reference< css::rendering::XPolyPolygon2D > basegfx::unotools::xPolyPolygonFromB2DPolyPolygon ( const css::uno::Reference< css::rendering::XGraphicDevice > &  xGraphicDevice,
const ::basegfx::B2DPolyPolygon &  rPolyPoly 
)

◆ xPolyPolygonFromB2DPolyPolygon() [2/2]

uno::Reference< rendering::XPolyPolygon2D > basegfx::unotools::xPolyPolygonFromB2DPolyPolygon ( const uno::Reference< rendering::XGraphicDevice > &  xGraphicDevice,
const ::basegfx::B2DPolyPolygon &  rPolyPoly 
)