LibreOffice Module basegfx (master) 1
|
This class provides an optimized, symbolic clip state for graphical output. More...
#include <b2dclipstate.hxx>
Public Types | |
typedef o3tl::cow_wrapper< ImplB2DClipState > | ImplType |
Public Member Functions | |
B2DClipState () | |
Init clip, in 'cleared' state - everything is visible. More... | |
~B2DClipState () | |
B2DClipState (const B2DClipState &) | |
B2DClipState (B2DClipState &&) | |
B2DClipState (const B2DPolyPolygon &) | |
B2DClipState & | operator= (const B2DClipState &) |
B2DClipState & | operator= (B2DClipState &&) |
void | makeNull () |
Set clip to 'null' - nothing is visible. More... | |
bool | isCleared () const |
returns true when clip is 'cleared' - everything is visible More... | |
bool | operator== (const B2DClipState &) const |
bool | operator!= (const B2DClipState &) const |
void | unionRange (const B2DRange &) |
void | unionPolyPolygon (const B2DPolyPolygon &) |
void | intersectRange (const B2DRange &) |
void | intersectPolyPolygon (const B2DPolyPolygon &) |
void | subtractRange (const B2DRange &) |
void | subtractPolyPolygon (const B2DPolyPolygon &) |
void | xorRange (const B2DRange &) |
void | xorPolyPolygon (const B2DPolyPolygon &) |
void | transform (const B2DHomMatrix &) |
B2DPolyPolygon const & | getClipPoly () const |
Private Attributes | |
ImplType | mpImpl |
This class provides an optimized, symbolic clip state for graphical output.
Having a current 'clip' state is a common attribute of almost all graphic output APIs, most of which internally represent it via a list of rectangular bands. In contrast, this implementation purely uses symbolic clips, but in a quite efficient manner, deferring actual evaluation until a clip representation is requested, and using faster code paths for common special cases (like all-rectangle clips)
Definition at line 47 of file b2dclipstate.hxx.
Definition at line 50 of file b2dclipstate.hxx.
|
default |
Init clip, in 'cleared' state - everything is visible.
|
default |
|
default |
|
default |
|
explicit |
Definition at line 392 of file b2dclipstate.cxx.
B2DPolyPolygon const & basegfx::utils::B2DClipState::getClipPoly | ( | ) | const |
Definition at line 463 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::intersectPolyPolygon | ( | const B2DPolyPolygon & | rPolyPoly | ) |
Definition at line 438 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::intersectRange | ( | const B2DRange & | rRange | ) |
Definition at line 433 of file b2dclipstate.cxx.
References mpImpl.
bool basegfx::utils::B2DClipState::isCleared | ( | ) | const |
returns true when clip is 'cleared' - everything is visible
Definition at line 405 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::makeNull | ( | ) |
Set clip to 'null' - nothing is visible.
Definition at line 400 of file b2dclipstate.cxx.
References mpImpl.
bool basegfx::utils::B2DClipState::operator!= | ( | const B2DClipState & | rRHS | ) | const |
Definition at line 418 of file b2dclipstate.cxx.
|
default |
References operator!=(), and operator==().
|
default |
bool basegfx::utils::B2DClipState::operator== | ( | const B2DClipState & | rRHS | ) | const |
Definition at line 410 of file b2dclipstate.cxx.
References mpImpl, and o3tl::cow_wrapper< typename T, class MTPolicy >::same_object().
void basegfx::utils::B2DClipState::subtractPolyPolygon | ( | const B2DPolyPolygon & | rPolyPoly | ) |
Definition at line 448 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::subtractRange | ( | const B2DRange & | rRange | ) |
Definition at line 443 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::transform | ( | const B2DHomMatrix & | rTranslate | ) |
Definition at line 468 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::unionPolyPolygon | ( | const B2DPolyPolygon & | rPolyPoly | ) |
Definition at line 428 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::unionRange | ( | const B2DRange & | rRange | ) |
Definition at line 423 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::xorPolyPolygon | ( | const B2DPolyPolygon & | rPolyPoly | ) |
Definition at line 458 of file b2dclipstate.cxx.
References mpImpl.
void basegfx::utils::B2DClipState::xorRange | ( | const B2DRange & | rRange | ) |
Definition at line 453 of file b2dclipstate.cxx.
References mpImpl.
|
private |
Definition at line 53 of file b2dclipstate.hxx.
Referenced by getClipPoly(), intersectPolyPolygon(), intersectRange(), isCleared(), makeNull(), operator==(), subtractPolyPolygon(), subtractRange(), transform(), unionPolyPolygon(), unionRange(), xorPolyPolygon(), and xorRange().