MCPcopy Create free account
hub / github.com/Gecode/gecode / isClipped

Method isClipped

gecode/gist/drawingcursor.hpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 forceinline bool
44 DrawingCursor::isClipped(void) {
45 if (clippingRect.width() == 0 && clippingRect.x() == 0
46 && clippingRect.height() == 0 && clippingRect.y() == 0)
47 return false;
48 BoundingBox b = node()->getBoundingBox();
49 return (x + b.left > clippingRect.x() + clippingRect.width() ||
50 x + b.right < clippingRect.x() ||
51 y > clippingRect.y() + clippingRect.height() ||
52 y + (node()->getShape()->depth()+1) * Layout::dist_y <
53 clippingRect.y());
54 }
55
56 inline bool
57 DrawingCursor::mayMoveDownwards(void) {

Callers

nothing calls this directly

Calls 7

getBoundingBoxMethod · 0.80
getShapeMethod · 0.80
widthMethod · 0.45
xMethod · 0.45
heightMethod · 0.45
yMethod · 0.45
depthMethod · 0.45

Tested by

no test coverage detected