Class ClipperOffset
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.parser.clipper.ClipperOffset
-
public class ClipperOffset extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private doublearcToleranceprivate doublecosprivate static doubleDEFAULT_ARC_TOLERANCEprivate doubledeltaprivate PathdestPolyprivate PathsdestPolysprivate doubleinAprivate Point.LongPointlowestprivate doublemiterLimprivate doublemiterLimitprivate java.util.List<Point.DoublePoint>normalsprivate PolyNodepolyNodesprivate doublesinprivate PathsrcPolyprivate doublestepsPerRadprivate static doubleTOLERANCEprivate static doubleTWO_PI
-
Constructor Summary
Constructors Constructor Description ClipperOffset()ClipperOffset(double miterLimit)ClipperOffset(double miterLimit, double arcTolerance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPath(Path path, IClipper.JoinType joinType, IClipper.EndType endType)voidaddPaths(Paths paths, IClipper.JoinType joinType, IClipper.EndType endType)voidclear()private voiddoMiter(int j, int k, double r)private voiddoOffset(double delta)private voiddoRound(int j, int k)private voiddoSquare(int j, int k, boolean addExtra)voidexecute(Paths solution, double delta)voidexecute(PolyTree solution, double delta)private voidfixOrientations()private static booleannearZero(double val)private voidoffsetPoint(int j, int[] kV, IClipper.JoinType jointype)
-
-
-
Field Detail
-
destPolys
private Paths destPolys
-
srcPoly
private Path srcPoly
-
destPoly
private Path destPoly
-
normals
private final java.util.List<Point.DoublePoint> normals
-
delta
private double delta
-
inA
private double inA
-
sin
private double sin
-
cos
private double cos
-
miterLim
private double miterLim
-
stepsPerRad
private double stepsPerRad
-
lowest
private Point.LongPoint lowest
-
polyNodes
private final PolyNode polyNodes
-
arcTolerance
private final double arcTolerance
-
miterLimit
private final double miterLimit
-
TWO_PI
private static final double TWO_PI
- See Also:
- Constant Field Values
-
DEFAULT_ARC_TOLERANCE
private static final double DEFAULT_ARC_TOLERANCE
- See Also:
- Constant Field Values
-
TOLERANCE
private static final double TOLERANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
nearZero
private static boolean nearZero(double val)
-
addPath
public void addPath(Path path, IClipper.JoinType joinType, IClipper.EndType endType)
-
addPaths
public void addPaths(Paths paths, IClipper.JoinType joinType, IClipper.EndType endType)
-
clear
public void clear()
-
doMiter
private void doMiter(int j, int k, double r)
-
doOffset
private void doOffset(double delta)
-
doRound
private void doRound(int j, int k)
-
doSquare
private void doSquare(int j, int k, boolean addExtra)
-
execute
public void execute(Paths solution, double delta)
-
execute
public void execute(PolyTree solution, double delta)
-
fixOrientations
private void fixOrientations()
-
offsetPoint
private void offsetPoint(int j, int[] kV, IClipper.JoinType jointype)
-
-