LibreOffice Module basegfx (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
basegfx::unotools::UnoPolyPolygon Class Reference

#include <unopolypolygon.hxx>

Inheritance diagram for basegfx::unotools::UnoPolyPolygon:
[legend]
Collaboration diagram for basegfx::unotools::UnoPolyPolygon:
[legend]

Public Member Functions

 UnoPolyPolygon (B2DPolyPolygon)
 
virtual SAL_DLLPRIVATE void SAL_CALL addPolyPolygon (const css::geometry::RealPoint2D &position, const css::uno::Reference< css::rendering::XPolyPolygon2D > &polyPolygon) override
 
virtual SAL_DLLPRIVATE ::sal_Int32 SAL_CALL getNumberOfPolygons () override
 
virtual SAL_DLLPRIVATE ::sal_Int32 SAL_CALL getNumberOfPolygonPoints (::sal_Int32 polygon) override
 
virtual SAL_DLLPRIVATE css::rendering::FillRule SAL_CALL getFillRule () override
 
virtual SAL_DLLPRIVATE void SAL_CALL setFillRule (css::rendering::FillRule fillRule) override
 
virtual SAL_DLLPRIVATE sal_Bool SAL_CALL isClosed (::sal_Int32 index) override
 
virtual SAL_DLLPRIVATE void SAL_CALL setClosed (::sal_Int32 index, sal_Bool closedState) override
 
virtual SAL_DLLPRIVATE css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > SAL_CALL getPoints (::sal_Int32 nPolygonIndex, ::sal_Int32 nNumberOfPolygons, ::sal_Int32 nPointIndex, ::sal_Int32 nNumberOfPoints) override
 
virtual SAL_DLLPRIVATE void SAL_CALL setPoints (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &points, ::sal_Int32 nPolygonIndex) override
 
virtual SAL_DLLPRIVATE css::geometry::RealPoint2D SAL_CALL getPoint (::sal_Int32 nPolygonIndex, ::sal_Int32 nPointIndex) override
 
virtual SAL_DLLPRIVATE void SAL_CALL setPoint (const css::geometry::RealPoint2D &point, ::sal_Int32 nPolygonIndex, ::sal_Int32 nPointIndex) override
 
virtual SAL_DLLPRIVATE css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > SAL_CALL getBezierSegments (::sal_Int32 nPolygonIndex, ::sal_Int32 nNumberOfPolygons, ::sal_Int32 nPointIndex, ::sal_Int32 nNumberOfPoints) override
 
virtual SAL_DLLPRIVATE void SAL_CALL setBezierSegments (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &points, ::sal_Int32 nPolygonIndex) override
 
virtual SAL_DLLPRIVATE css::geometry::RealBezierSegment2D SAL_CALL getBezierSegment (::sal_Int32 nPolygonIndex, ::sal_Int32 nPointIndex) override
 
virtual SAL_DLLPRIVATE void SAL_CALL setBezierSegment (const css::geometry::RealBezierSegment2D &point, ::sal_Int32 nPolygonIndex, ::sal_Int32 nPointIndex) override
 
virtual SAL_DLLPRIVATE OUString SAL_CALL getImplementationName () override
 
virtual SAL_DLLPRIVATE sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual SAL_DLLPRIVATE css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
SAL_DLLPRIVATE B2DPolyPolygon getPolyPolygon () const
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Protected Member Functions

void checkIndex (sal_Int32 nIndex) const
 Check whether index is a valid polygon index. More...
 
SAL_DLLPRIVATE B2DPolyPolygon getSubsetPolyPolygon (sal_Int32 nPolygonIndex, sal_Int32 nNumberOfPolygons, sal_Int32 nPointIndex, sal_Int32 nNumberOfPoints) const
 
const B2DPolyPolygongetPolyPolygonUnsafe () const
 Get cow copy of internal polygon. not thread-safe outside this object. More...
 
virtual void modifying () const
 Called whenever internal polypolygon gets modified. More...
 
- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 

Private Member Functions

 UnoPolyPolygon (const UnoPolyPolygon &)=delete
 
UnoPolyPolygonoperator= (const UnoPolyPolygon &)=delete
 

Private Attributes

B2DPolyPolygon maPolyPoly
 
css::rendering::FillRule meFillRule
 

Additional Inherited Members

- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 39 of file unopolypolygon.hxx.

Constructor & Destructor Documentation

◆ UnoPolyPolygon() [1/2]

basegfx::unotools::UnoPolyPolygon::UnoPolyPolygon ( B2DPolyPolygon  aPolyPoly)
explicit

Definition at line 37 of file unopolypolygon.cxx.

◆ UnoPolyPolygon() [2/2]

basegfx::unotools::UnoPolyPolygon::UnoPolyPolygon ( const UnoPolyPolygon )
privatedelete

Member Function Documentation

◆ addPolyPolygon()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::addPolyPolygon ( const css::geometry::RealPoint2D &  position,
const css::uno::Reference< css::rendering::XPolyPolygon2D > &  polyPolygon 
)
overridevirtual

◆ checkIndex()

void basegfx::unotools::UnoPolyPolygon::checkIndex ( sal_Int32  nIndex) const
inlineprotected

◆ getBezierSegment()

geometry::RealBezierSegment2D SAL_CALL basegfx::unotools::UnoPolyPolygon::getBezierSegment ( ::sal_Int32  nPolygonIndex,
::sal_Int32  nPointIndex 
)
overridevirtual

◆ getBezierSegments()

uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > SAL_CALL basegfx::unotools::UnoPolyPolygon::getBezierSegments ( ::sal_Int32  nPolygonIndex,
::sal_Int32  nNumberOfPolygons,
::sal_Int32  nPointIndex,
::sal_Int32  nNumberOfPoints 
)
overridevirtual

◆ getFillRule()

rendering::FillRule SAL_CALL basegfx::unotools::UnoPolyPolygon::getFillRule ( )
overridevirtual

Definition at line 138 of file unopolypolygon.cxx.

References comphelper::UnoImplBase::m_aMutex, and meFillRule.

◆ getImplementationName()

OUString SAL_CALL basegfx::unotools::UnoPolyPolygon::getImplementationName ( )
overridevirtual

Definition at line 422 of file unopolypolygon.cxx.

◆ getNumberOfPolygonPoints()

sal_Int32 SAL_CALL basegfx::unotools::UnoPolyPolygon::getNumberOfPolygonPoints ( ::sal_Int32  polygon)
overridevirtual

◆ getNumberOfPolygons()

sal_Int32 SAL_CALL basegfx::unotools::UnoPolyPolygon::getNumberOfPolygons ( )
overridevirtual

◆ getPoint()

geometry::RealPoint2D SAL_CALL basegfx::unotools::UnoPolyPolygon::getPoint ( ::sal_Int32  nPolygonIndex,
::sal_Int32  nPointIndex 
)
overridevirtual

◆ getPoints()

uno::Sequence< uno::Sequence< geometry::RealPoint2D > > SAL_CALL basegfx::unotools::UnoPolyPolygon::getPoints ( ::sal_Int32  nPolygonIndex,
::sal_Int32  nNumberOfPolygons,
::sal_Int32  nPointIndex,
::sal_Int32  nNumberOfPoints 
)
overridevirtual

◆ getPolyPolygon()

B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::getPolyPolygon ( ) const

◆ getPolyPolygonUnsafe()

const B2DPolyPolygon & basegfx::unotools::UnoPolyPolygon::getPolyPolygonUnsafe ( ) const
inlineprotected

Get cow copy of internal polygon. not thread-safe outside this object.

Definition at line 87 of file unopolypolygon.hxx.

◆ getSubsetPolyPolygon()

B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::getSubsetPolyPolygon ( sal_Int32  nPolygonIndex,
sal_Int32  nNumberOfPolygons,
sal_Int32  nPointIndex,
sal_Int32  nNumberOfPoints 
) const
protected

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL basegfx::unotools::UnoPolyPolygon::getSupportedServiceNames ( )
overridevirtual

Definition at line 432 of file unopolypolygon.cxx.

◆ isClosed()

sal_Bool SAL_CALL basegfx::unotools::UnoPolyPolygon::isClosed ( ::sal_Int32  index)
overridevirtual

◆ modifying()

virtual void basegfx::unotools::UnoPolyPolygon::modifying ( ) const
inlineprotectedvirtual

Called whenever internal polypolygon gets modified.

Definition at line 93 of file unopolypolygon.hxx.

Referenced by addPolyPolygon(), setBezierSegment(), setBezierSegments(), setClosed(), setFillRule(), setPoint(), and setPoints().

◆ operator=()

UnoPolyPolygon & basegfx::unotools::UnoPolyPolygon::operator= ( const UnoPolyPolygon )
privatedelete

◆ setBezierSegment()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::setBezierSegment ( const css::geometry::RealBezierSegment2D &  point,
::sal_Int32  nPolygonIndex,
::sal_Int32  nPointIndex 
)
overridevirtual

◆ setBezierSegments()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::setBezierSegments ( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &  points,
::sal_Int32  nPolygonIndex 
)
overridevirtual

◆ setClosed()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::setClosed ( ::sal_Int32  index,
sal_Bool  closedState 
)
overridevirtual

◆ setFillRule()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::setFillRule ( css::rendering::FillRule  fillRule)
overridevirtual

Definition at line 144 of file unopolypolygon.cxx.

References comphelper::UnoImplBase::m_aMutex, meFillRule, and modifying().

◆ setPoint()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::setPoint ( const css::geometry::RealPoint2D &  point,
::sal_Int32  nPolygonIndex,
::sal_Int32  nPointIndex 
)
overridevirtual

◆ setPoints()

void SAL_CALL basegfx::unotools::UnoPolyPolygon::setPoints ( const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &  points,
::sal_Int32  nPolygonIndex 
)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL basegfx::unotools::UnoPolyPolygon::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 427 of file unopolypolygon.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maPolyPoly

B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::maPolyPoly
private

◆ meFillRule

css::rendering::FillRule basegfx::unotools::UnoPolyPolygon::meFillRule
private

Definition at line 100 of file unopolypolygon.hxx.

Referenced by getFillRule(), and setFillRule().


The documentation for this class was generated from the following files: