iText 5

Clipper (2)

Clipper Public class

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text.pdf.parser.clipper iTextSharp.text.pdf.parser.clipper.Clipper[[Clipper]] iTextSharp.text.pdf.parser.clipper.ClipperBase[[ClipperBase]] end iTextSharp.text.pdf.parser.clipper.ClipperBase --> iTextSharp.text.pdf.parser.clipper.Clipper

Members

Properties

Public properties

Type

Name

Methods

bool

ReverseSolution

get, set

bool

StrictlySimple

get, set

Methods

Protected methods

Returns

Name

void

Reset

()

Public methods

Returns

Name

bool

Execute

(...)

Internal methods

Returns

Name

void

FixHoleLinkage

(

OutRec

outRec)

void

SwapPoints

(ref

IntPoint

pt1, ref

IntPoint

pt2)

Internal Static methods

Returns

Name

void

AddPolyNodeToPaths

(

PolyNode

polynode, NodeType nt, List<List<

IntPoint

>> paths)

List<List<

IntPoint

>>

Minkowski

(List<

IntPoint

> pattern, List<

IntPoint

> path, bool IsSum, bool IsClosed)

long

Round

(double value)

Public Static methods

Returns

Name

double

Area

(List<

IntPoint

> poly)

List<

IntPoint

>

CleanPolygon

(...)

List<List<

IntPoint

>>

CleanPolygons

(...)

List<List<

IntPoint

>>

ClosedPathsFromPolyTree

(

PolyTree

polytree)

List<List<

IntPoint

>>

MinkowskiDiff

(List<

IntPoint

> poly1, List<

IntPoint

> poly2)

List<List<

IntPoint

>>

MinkowskiSum

(...)

List<List<

IntPoint

>>

OpenPathsFromPolyTree

(

PolyTree

polytree)

bool

Orientation

(List<

IntPoint

> poly)

int

PointInPolygon

(

IntPoint

pt, List<

IntPoint

> path)

List<List<

IntPoint

>>

PolyTreeToPaths

(

PolyTree

polytree)

void

ReversePaths

(List<List<

IntPoint

>> polys)

List<List<

IntPoint

>>

SimplifyPolygon

(...)

List<List<

IntPoint

>>

SimplifyPolygons

(...)

Details

Inheritance

Nested types

Enums
  • NodeType

Constructors

Clipper [1/2]

Source code

public Clipper()

Clipper [2/2]

Source code

public Clipper(int InitOptions)

Arguments

Type

Name

Description

int

InitOptions

Methods

Reset

Source code

protected override void Reset()

Execute [1/6]

Source code

public bool Execute(ClipType clipType, List<List<IntPoint>> solution)

Arguments

Type

Name

Description

ClipType

clipType

List<List<

IntPoint

>>

solution

Execute [2/6]

Source code

public bool Execute(ClipType clipType, List<List<IntPoint>> solution, PolyFillType FillType)

Arguments

Type

Name

Description

ClipType

clipType

List<List<

IntPoint

>>

solution

PolyFillType

FillType

Execute [3/6]

Source code

public bool Execute(ClipType clipType, PolyTree polytree)

Arguments

Type

Name

Description

ClipType

clipType

PolyTree

polytree

Execute [4/6]

Source code

public bool Execute(ClipType clipType, PolyTree polytree, PolyFillType FillType)

Arguments

Type

Name

Description

ClipType

clipType

PolyTree

polytree

PolyFillType

FillType

Execute [5/6]

Source code

public bool Execute(ClipType clipType, List<List<IntPoint>> solution, PolyFillType subjFillType, PolyFillType clipFillType)

Arguments

Type

Name

Description

ClipType

clipType

List<List<

IntPoint

>>

solution

PolyFillType

subjFillType

PolyFillType

clipFillType

Execute [6/6]

Source code

public bool Execute(ClipType clipType, PolyTree polytree, PolyFillType subjFillType, PolyFillType clipFillType)

Arguments

Type

Name

Description

ClipType

clipType

PolyTree

polytree

PolyFillType

subjFillType

PolyFillType

clipFillType

FixHoleLinkage

Source code

internal void FixHoleLinkage(OutRec outRec)

Arguments

Type

Name

Description

OutRec

outRec

SwapPoints

Source code

internal void SwapPoints(ref IntPoint pt1, ref IntPoint pt2)

Arguments

Type

Name

Description

ref

IntPoint

pt1

ref

IntPoint

pt2

Round

Source code

internal static long Round(double value)

Arguments

Type

Name

Description

double

value

ReversePaths

Source code

public static void ReversePaths(List<List<IntPoint>> polys)

Arguments

Type

Name

Description

List<List<

IntPoint

>>

polys

Orientation

Source code

public static bool Orientation(List<IntPoint> poly)

Arguments

Type

Name

Description

List<

IntPoint

>

poly

PointInPolygon

Source code

public static int PointInPolygon(IntPoint pt, List<IntPoint> path)

Arguments

Type

Name

Description

IntPoint

pt

List<

IntPoint

>

path

Area

Source code

public static double Area(List<IntPoint> poly)

Arguments

Type

Name

Description

List<

IntPoint

>

poly

SimplifyPolygon [1/2]

Source code

public static List<List<IntPoint>> SimplifyPolygon(List<IntPoint> poly)

Arguments

Type

Name

Description

List<

IntPoint

>

poly

SimplifyPolygon [2/2]

Source code

public static List<List<IntPoint>> SimplifyPolygon(List<IntPoint> poly, PolyFillType fillType)

Arguments

Type

Name

Description

List<

IntPoint

>

poly

PolyFillType

fillType

SimplifyPolygons [1/2]

Source code

public static List<List<IntPoint>> SimplifyPolygons(List<List<IntPoint>> polys)

Arguments

Type

Name

Description

List<List<

IntPoint

>>

polys

SimplifyPolygons [2/2]

Source code

public static List<List<IntPoint>> SimplifyPolygons(List<List<IntPoint>> polys, PolyFillType fillType)

Arguments

Type

Name

Description

List<List<

IntPoint

>>

polys

PolyFillType

fillType

CleanPolygon [1/2]

Source code

public static List<IntPoint> CleanPolygon(List<IntPoint> path)

Arguments

Type

Name

Description

List<

IntPoint

>

path

CleanPolygon [2/2]

Source code

public static List<IntPoint> CleanPolygon(List<IntPoint> path, double distance)

Arguments

Type

Name

Description

List<

IntPoint

>

path

double

distance

CleanPolygons [1/2]

Source code

public static List<List<IntPoint>> CleanPolygons(List<List<IntPoint>> polys)

Arguments

Type

Name

Description

List<List<

IntPoint

>>

polys

CleanPolygons [2/2]

Source code

public static List<List<IntPoint>> CleanPolygons(List<List<IntPoint>> polys, double distance)

Arguments

Type

Name

Description

List<List<

IntPoint

>>

polys

double

distance

Minkowski

Source code

internal static List<List<IntPoint>> Minkowski(List<IntPoint> pattern, List<IntPoint> path, bool IsSum, bool IsClosed)

Arguments

Type

Name

Description

List<

IntPoint

>

pattern

List<

IntPoint

>

path

bool

IsSum

bool

IsClosed

MinkowskiSum [1/2]

Source code

public static List<List<IntPoint>> MinkowskiSum(List<IntPoint> pattern, List<IntPoint> path, bool pathIsClosed)

Arguments

Type

Name

Description

List<

IntPoint

>

pattern

List<

IntPoint

>

path

bool

pathIsClosed

MinkowskiSum [2/2]

Source code

public static List<List<IntPoint>> MinkowskiSum(List<IntPoint> pattern, List<List<IntPoint>> paths, bool pathIsClosed)

Arguments

Type

Name

Description

List<

IntPoint

>

pattern

List<List<

IntPoint

>>

paths

bool

pathIsClosed

MinkowskiDiff

Source code

public static List<List<IntPoint>> MinkowskiDiff(List<IntPoint> poly1, List<IntPoint> poly2)

Arguments

Type

Name

Description

List<

IntPoint

>

poly1

List<

IntPoint

>

poly2

PolyTreeToPaths

Source code

public static List<List<IntPoint>> PolyTreeToPaths(PolyTree polytree)

Arguments

Type

Name

Description

PolyTree

polytree

AddPolyNodeToPaths

Source code

internal static void AddPolyNodeToPaths(PolyNode polynode, NodeType nt, List<List<IntPoint>> paths)

Arguments

Type

Name

Description

PolyNode

polynode

NodeType

nt

List<List<

IntPoint

>>

paths

OpenPathsFromPolyTree

Source code

public static List<List<IntPoint>> OpenPathsFromPolyTree(PolyTree polytree)

Arguments

Type

Name

Description

PolyTree

polytree

ClosedPathsFromPolyTree

Source code

public static List<List<IntPoint>> ClosedPathsFromPolyTree(PolyTree polytree)

Arguments

Type

Name

Description

PolyTree

polytree

Properties

ReverseSolution

public bool ReverseSolution { get; set; }

StrictlySimple

public bool StrictlySimple { get; set; }

Generated with ModularDoc