LibreOffice Module basegfx (master) 1
|
Public Types | |
enum | Operation { UNION , INTERSECT , XOR , SUBTRACT } |
Public Member Functions | |
ImplB2DClipState () | |
ImplB2DClipState (B2DPolyPolygon aPoly) | |
bool | isCleared () const |
bool | isNullClipPoly () const |
bool | isNull () const |
void | makeNull () |
bool | operator== (const ImplB2DClipState &rRHS) const |
void | addRange (const B2DRange &rRange, Operation eOp) |
void | addPolyPolygon (const B2DPolyPolygon &aPoly, Operation eOp) |
void | unionRange (const B2DRange &rRange) |
void | unionPolyPolygon (const B2DPolyPolygon &rPolyPoly) |
void | intersectRange (const B2DRange &rRange) |
void | intersectPolyPolygon (const B2DPolyPolygon &rPolyPoly) |
void | subtractRange (const B2DRange &rRange) |
void | subtractPolyPolygon (const B2DPolyPolygon &rPolyPoly) |
void | xorRange (const B2DRange &rRange) |
void | xorPolyPolygon (const B2DPolyPolygon &rPolyPoly) |
void | transform (const basegfx::B2DHomMatrix &rTranslate) |
B2DPolyPolygon const & | getClipPoly () const |
Private Member Functions | |
void | commitPendingPolygons () const |
void | commitPendingRanges () const |
Private Attributes | |
B2DPolyPolygon | maPendingPolygons |
B2DPolyRange | maPendingRanges |
B2DPolyPolygon | maClipPoly |
Operation | mePendingOps |
Definition at line 34 of file b2dclipstate.cxx.
Enumerator | |
---|---|
UNION | |
INTERSECT | |
XOR | |
SUBTRACT |
Definition at line 37 of file b2dclipstate.cxx.
|
inline |
Definition at line 39 of file b2dclipstate.cxx.
|
inlineexplicit |
Definition at line 43 of file b2dclipstate.cxx.
|
inline |
Definition at line 100 of file b2dclipstate.cxx.
References basegfx::B2DPolyPolygon::append(), commitPendingPolygons(), commitPendingRanges(), maPendingPolygons, and mePendingOps.
Referenced by intersectPolyPolygon(), subtractPolyPolygon(), unionPolyPolygon(), and xorPolyPolygon().
Definition at line 85 of file b2dclipstate.cxx.
References basegfx::B2DPolyRange::appendElement(), commitPendingPolygons(), commitPendingRanges(), basegfx::Range2D< TYPE, TRAITS >::isEmpty(), maPendingRanges, mePendingOps, and basegfx::Positive.
Referenced by intersectRange(), subtractRange(), unionRange(), and xorRange().
|
inlineprivate |
Definition at line 184 of file b2dclipstate.cxx.
References basegfx::B2DPolyPolygon::clear(), basegfx::B2DPolyPolygon::count(), basegfx::utils::createPolygonFromRect(), INTERSECT, isNullClipPoly(), maClipPoly, maPendingPolygons, mePendingOps, basegfx::utils::prepareForPolygonOperation(), basegfx::utils::solveCrossovers(), basegfx::utils::solvePolygonOperationAnd(), basegfx::utils::solvePolygonOperationDiff(), basegfx::utils::solvePolygonOperationOr(), basegfx::utils::solvePolygonOperationXor(), basegfx::utils::stripDispensablePolygons(), basegfx::utils::stripNeutralPolygons(), SUBTRACT, UNION, and XOR.
Referenced by addPolyPolygon(), addRange(), and getClipPoly().
|
inlineprivate |
Definition at line 276 of file b2dclipstate.cxx.
References basegfx::B2DPolyRange::clear(), basegfx::utils::correctOrientations(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyRange::count(), basegfx::utils::createPolygonFromRect(), INTERSECT, isNullClipPoly(), maClipPoly, maPendingRanges, mePendingOps, basegfx::B2DPolyRange::solveCrossovers(), basegfx::utils::solvePolygonOperationAnd(), basegfx::utils::solvePolygonOperationDiff(), basegfx::utils::solvePolygonOperationOr(), basegfx::utils::solvePolygonOperationXor(), basegfx::utils::stripDispensablePolygons(), basegfx::utils::stripNeutralPolygons(), SUBTRACT, UNION, and XOR.
Referenced by addPolyPolygon(), addRange(), and getClipPoly().
|
inline |
Definition at line 175 of file b2dclipstate.cxx.
References commitPendingPolygons(), commitPendingRanges(), and maClipPoly.
|
inline |
Definition at line 134 of file b2dclipstate.cxx.
References addPolyPolygon(), INTERSECT, and isNull().
|
inline |
Definition at line 126 of file b2dclipstate.cxx.
References addRange(), INTERSECT, and isNull().
|
inline |
Definition at line 48 of file b2dclipstate.cxx.
References basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyRange::count(), maClipPoly, maPendingPolygons, and maPendingRanges.
Referenced by unionPolyPolygon(), and unionRange().
|
inline |
Definition at line 61 of file b2dclipstate.cxx.
References basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyRange::count(), isNullClipPoly(), maPendingPolygons, and maPendingRanges.
Referenced by intersectPolyPolygon(), intersectRange(), subtractPolyPolygon(), and subtractRange().
|
inline |
Definition at line 55 of file b2dclipstate.cxx.
References basegfx::B2DPolygon::count(), basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), and maClipPoly.
Referenced by commitPendingPolygons(), commitPendingRanges(), and isNull().
|
inline |
Definition at line 68 of file b2dclipstate.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolyPolygon::clear(), basegfx::B2DPolyRange::clear(), maClipPoly, maPendingPolygons, maPendingRanges, mePendingOps, and UNION.
|
inline |
Definition at line 77 of file b2dclipstate.cxx.
References maClipPoly, maPendingPolygons, maPendingRanges, and mePendingOps.
|
inline |
Definition at line 150 of file b2dclipstate.cxx.
References addPolyPolygon(), isNull(), and SUBTRACT.
|
inline |
Definition at line 142 of file b2dclipstate.cxx.
References addRange(), isNull(), and SUBTRACT.
|
inline |
Definition at line 168 of file b2dclipstate.cxx.
References maClipPoly, maPendingPolygons, maPendingRanges, basegfx::B2DPolyRange::transform(), and basegfx::B2DPolyPolygon::transform().
|
inline |
Definition at line 118 of file b2dclipstate.cxx.
References addPolyPolygon(), isCleared(), and UNION.
|
inline |
Definition at line 110 of file b2dclipstate.cxx.
References addRange(), isCleared(), and UNION.
|
inline |
Definition at line 163 of file b2dclipstate.cxx.
References addPolyPolygon(), and XOR.
|
inline |
Definition at line 158 of file b2dclipstate.cxx.
References addRange(), and XOR.
|
mutableprivate |
Definition at line 380 of file b2dclipstate.cxx.
Referenced by commitPendingPolygons(), commitPendingRanges(), getClipPoly(), isCleared(), isNullClipPoly(), makeNull(), operator==(), and transform().
|
mutableprivate |
Definition at line 378 of file b2dclipstate.cxx.
Referenced by addPolyPolygon(), commitPendingPolygons(), isCleared(), isNull(), makeNull(), operator==(), and transform().
|
mutableprivate |
Definition at line 379 of file b2dclipstate.cxx.
Referenced by addRange(), commitPendingRanges(), isCleared(), isNull(), makeNull(), operator==(), and transform().
|
mutableprivate |
Definition at line 381 of file b2dclipstate.cxx.
Referenced by addPolyPolygon(), addRange(), commitPendingPolygons(), commitPendingRanges(), makeNull(), and operator==().