LibreOffice Module basegfx (master) 1
|
#include <unopolypolygon.hxx>
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 B2DPolyPolygon & | getPolyPolygonUnsafe () 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 | |
UnoPolyPolygon & | operator= (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 |
Definition at line 39 of file unopolypolygon.hxx.
|
explicit |
Definition at line 37 of file unopolypolygon.cxx.
|
privatedelete |
|
overridevirtual |
Definition at line 43 of file unopolypolygon.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::unotools::b2DPointFromRealPoint2D(), basegfx::utils::createTranslateB2DHomMatrix(), basegfx::Tuple2D< TYPE >::equalZero(), basegfx::B2DRange::getMinimum(), getPolyPolygon(), basegfx::utils::getRange(), comphelper::UnoImplBase::m_aMutex, maPolyPoly, modifying(), basegfx::unotools::polyPolygonFromBezier2DSequenceSequence(), basegfx::unotools::polyPolygonFromPoint2DSequenceSequence(), position(), and basegfx::B2DPolyPolygon::transform().
|
inlineprotected |
Check whether index is a valid polygon index.
Definition at line 75 of file unopolypolygon.hxx.
References o3tl::make_unsigned(), and nIndex.
Referenced by getBezierSegment(), getNumberOfPolygonPoints(), getPoint(), getSubsetPolyPolygon(), isClosed(), setBezierSegment(), setBezierSegments(), setClosed(), setPoint(), and setPoints().
|
overridevirtual |
Definition at line 290 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolygon::count(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolyPolygon::getB2DPolygon(), basegfx::B2DPolygon::getNextControlPoint(), basegfx::B2DPolygon::getPrevControlPoint(), basegfx::Tuple2D< TYPE >::getX(), basegfx::Tuple2D< TYPE >::getY(), comphelper::UnoImplBase::m_aMutex, o3tl::make_unsigned(), and maPolyPoly.
|
overridevirtual |
Definition at line 256 of file unopolypolygon.cxx.
References basegfx::unotools::bezierSequenceSequenceFromB2DPolyPolygon(), and getSubsetPolyPolygon().
|
overridevirtual |
Definition at line 138 of file unopolypolygon.cxx.
References comphelper::UnoImplBase::m_aMutex, and meFillRule.
|
overridevirtual |
Definition at line 422 of file unopolypolygon.cxx.
|
overridevirtual |
Definition at line 129 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), comphelper::UnoImplBase::m_aMutex, and maPolyPoly.
|
overridevirtual |
Definition at line 123 of file unopolypolygon.cxx.
References basegfx::B2DPolyPolygon::count(), comphelper::UnoImplBase::m_aMutex, and maPolyPoly.
|
overridevirtual |
Definition at line 222 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolygon::count(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolyPolygon::getB2DPolygon(), comphelper::UnoImplBase::m_aMutex, o3tl::make_unsigned(), maPolyPoly, and basegfx::unotools::point2DFromB2DPoint().
|
overridevirtual |
Definition at line 187 of file unopolypolygon.cxx.
References getSubsetPolyPolygon(), and basegfx::unotools::pointSequenceSequenceFromB2DPolyPolygon().
B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::getPolyPolygon | ( | ) | const |
Definition at line 437 of file unopolypolygon.cxx.
References comphelper::UnoImplBase::m_aMutex, and maPolyPoly.
Referenced by addPolyPolygon(), and basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D().
|
inlineprotected |
Get cow copy of internal polygon. not thread-safe outside this object.
Definition at line 87 of file unopolypolygon.hxx.
|
protected |
Definition at line 339 of file unopolypolygon.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), checkIndex(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolyPolygon::getB2DPolygon(), i, comphelper::UnoImplBase::m_aMutex, and maPolyPoly.
Referenced by getBezierSegments(), and getPoints().
|
overridevirtual |
Definition at line 432 of file unopolypolygon.cxx.
|
overridevirtual |
Definition at line 153 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolyPolygon::getB2DPolygon(), index, basegfx::B2DPolygon::isClosed(), comphelper::UnoImplBase::m_aMutex, and maPolyPoly.
|
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().
|
privatedelete |
|
overridevirtual |
Definition at line 314 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), comphelper::UnoImplBase::m_aMutex, o3tl::make_unsigned(), maPolyPoly, modifying(), basegfx::B2DPolygon::setB2DPoint(), basegfx::B2DPolyPolygon::setB2DPolygon(), basegfx::B2DPolygon::setNextControlPoint(), and basegfx::B2DPolygon::setPrevControlPoint().
|
overridevirtual |
Definition at line 269 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolyPolygon::insert(), comphelper::UnoImplBase::m_aMutex, maPolyPoly, modifying(), and basegfx::unotools::polyPolygonFromBezier2DSequenceSequence().
|
overridevirtual |
Definition at line 162 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolyPolygon::getB2DPolygon(), index, comphelper::UnoImplBase::m_aMutex, maPolyPoly, modifying(), basegfx::B2DPolyPolygon::setB2DPolygon(), basegfx::B2DPolygon::setClosed(), and basegfx::B2DPolyPolygon::setClosed().
|
overridevirtual |
Definition at line 144 of file unopolypolygon.cxx.
References comphelper::UnoImplBase::m_aMutex, meFillRule, and modifying().
|
overridevirtual |
Definition at line 237 of file unopolypolygon.cxx.
References basegfx::unotools::b2DPointFromRealPoint2D(), checkIndex(), basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), comphelper::UnoImplBase::m_aMutex, o3tl::make_unsigned(), maPolyPoly, modifying(), point(), basegfx::B2DPolygon::setB2DPoint(), and basegfx::B2DPolyPolygon::setB2DPolygon().
|
overridevirtual |
Definition at line 200 of file unopolypolygon.cxx.
References checkIndex(), basegfx::B2DPolyPolygon::insert(), comphelper::UnoImplBase::m_aMutex, maPolyPoly, modifying(), and basegfx::unotools::polyPolygonFromPoint2DSequenceSequence().
|
overridevirtual |
Definition at line 427 of file unopolypolygon.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 99 of file unopolypolygon.hxx.
Referenced by addPolyPolygon(), getBezierSegment(), getNumberOfPolygonPoints(), getNumberOfPolygons(), getPoint(), getPolyPolygon(), getSubsetPolyPolygon(), isClosed(), setBezierSegment(), setBezierSegments(), setClosed(), setPoint(), and setPoints().
|
private |
Definition at line 100 of file unopolypolygon.hxx.
Referenced by getFillRule(), and setFillRule().