Class ClipperBase
- java.lang.Object
-
- com.itextpdf.text.pdf.parser.clipper.ClipperBase
-
- All Implemented Interfaces:
Clipper
- Direct Known Subclasses:
DefaultClipper
public abstract class ClipperBase extends java.lang.Object implements Clipper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classClipperBase.LocalMinimaprotected classClipperBase.Scanbeam-
Nested classes/interfaces inherited from interface com.itextpdf.text.pdf.parser.clipper.Clipper
Clipper.ClipType, Clipper.Direction, Clipper.EndType, Clipper.JoinType, Clipper.PolyFillType, Clipper.PolyType, Clipper.ZFillCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected ClipperBase.LocalMinimacurrentLMprivate java.util.List<java.util.List<Edge>>edgesprotected booleanhasOpenPathsprivate static longHI_RANGEprivate static java.util.logging.LoggerLOGGERprivate static longLOW_RANGEprotected ClipperBase.LocalMinimaminimaListprotected booleanpreserveCollinearprotected booleanuseFullRange-
Fields inherited from interface com.itextpdf.text.pdf.parser.clipper.Clipper
PRESERVE_COLINEAR, REVERSE_SOLUTION, STRICTLY_SIMPLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClipperBase(boolean preserveCollinear)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddPath(Path pg, Clipper.PolyType polyType, boolean Closed)booleanaddPaths(Paths ppg, Clipper.PolyType polyType, boolean closed)voidclear()private voiddisposeLocalMinimaList()private static voidinitEdge(Edge e, Edge eNext, Edge ePrev, Point.LongPoint pt)private static voidinitEdge2(Edge e, Clipper.PolyType polyType)private voidinsertLocalMinima(ClipperBase.LocalMinima newLm)booleanisPreserveCollinear()protected static Path.OutRecparseFirstLeft(Path.OutRec FirstLeft)protected voidpopLocalMinima()private EdgeprocessBound(Edge e, boolean LeftBoundIsForward)private static booleanrangeTest(Point.LongPoint Pt, boolean useFullRange)private static EdgeremoveEdge(Edge e)protected voidreset()
-
-
-
Field Detail
-
LOW_RANGE
private static final long LOW_RANGE
- See Also:
- Constant Field Values
-
HI_RANGE
private static final long HI_RANGE
- See Also:
- Constant Field Values
-
minimaList
protected ClipperBase.LocalMinima minimaList
-
currentLM
protected ClipperBase.LocalMinima currentLM
-
edges
private final java.util.List<java.util.List<Edge>> edges
-
useFullRange
protected boolean useFullRange
-
hasOpenPaths
protected boolean hasOpenPaths
-
preserveCollinear
protected final boolean preserveCollinear
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
-
Method Detail
-
initEdge
private static void initEdge(Edge e, Edge eNext, Edge ePrev, Point.LongPoint pt)
-
initEdge2
private static void initEdge2(Edge e, Clipper.PolyType polyType)
-
rangeTest
private static boolean rangeTest(Point.LongPoint Pt, boolean useFullRange)
-
addPath
public boolean addPath(Path pg, Clipper.PolyType polyType, boolean Closed)
-
addPaths
public boolean addPaths(Paths ppg, Clipper.PolyType polyType, boolean closed)
-
disposeLocalMinimaList
private void disposeLocalMinimaList()
-
insertLocalMinima
private void insertLocalMinima(ClipperBase.LocalMinima newLm)
-
isPreserveCollinear
public boolean isPreserveCollinear()
-
popLocalMinima
protected void popLocalMinima()
-
parseFirstLeft
protected static Path.OutRec parseFirstLeft(Path.OutRec FirstLeft)
-
reset
protected void reset()
-
-