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 class
ClipperBase.LocalMinima
protected class
ClipperBase.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.LocalMinima
currentLM
private java.util.List<java.util.List<Edge>>
edges
protected boolean
hasOpenPaths
private static long
HI_RANGE
private static java.util.logging.Logger
LOGGER
private static long
LOW_RANGE
protected ClipperBase.LocalMinima
minimaList
protected boolean
preserveCollinear
protected boolean
useFullRange
-
Fields inherited from interface com.itextpdf.text.pdf.parser.clipper.Clipper
PRESERVE_COLINEAR, REVERSE_SOLUTION, STRICTLY_SIMPLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClipperBase(boolean preserveCollinear)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPath(Path pg, Clipper.PolyType polyType, boolean Closed)
boolean
addPaths(Paths ppg, Clipper.PolyType polyType, boolean closed)
void
clear()
private void
disposeLocalMinimaList()
private static void
initEdge(Edge e, Edge eNext, Edge ePrev, Point.LongPoint pt)
private static void
initEdge2(Edge e, Clipper.PolyType polyType)
private void
insertLocalMinima(ClipperBase.LocalMinima newLm)
boolean
isPreserveCollinear()
protected static Path.OutRec
parseFirstLeft(Path.OutRec FirstLeft)
protected void
popLocalMinima()
private Edge
processBound(Edge e, boolean LeftBoundIsForward)
private static boolean
rangeTest(Point.LongPoint Pt, boolean useFullRange)
private static Edge
removeEdge(Edge e)
protected void
reset()
-
-
-
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()
-
-