JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.math.geom.plane.Path2F.Iterator Class Reference
Collaboration diagram for com.jogamp.math.geom.plane.Path2F.Iterator:

Public Member Functions

 Iterator (final Path2F path, final AffineTransform at)
 Constructs a new GeneralPath.Iterator for given general path and transformation. More...
 
WindingRule getWindingRule ()
 Return the WindingRule set. More...
 
Winding getWinding ()
 Compute the general winding of the vertices. More...
 
float[] points ()
 Returns reference of the point array covering the whole iteration of Path2D, use index() to access the current point. More...
 
int index ()
 Return the points() index for the current segment. More...
 
SegmentType getType ()
 Return current segment type. More...
 
SegmentType currentSegment (final float[] coords)
 Return the current segment type and copies the current segment's points to given storage. More...
 
boolean hasNext ()
 Returns true if the iteration has more elements. More...
 
SegmentType next ()
 Returns the current segment type in the iteration, then moving to the next path segment. More...
 

Detailed Description

Definition at line 120 of file Path2F.java.

Constructor & Destructor Documentation

◆ Iterator()

com.jogamp.math.geom.plane.Path2F.Iterator.Iterator ( final Path2F  path,
final AffineTransform  at 
)

Constructs a new GeneralPath.Iterator for given general path and transformation.

Parameters
path- the source GeneralPath object
at- the AffineTransform object to apply rectangle path

Definition at line 155 of file Path2F.java.

Member Function Documentation

◆ currentSegment()

SegmentType com.jogamp.math.geom.plane.Path2F.Iterator.currentSegment ( final float[]  coords)

Return the current segment type and copies the current segment's points to given storage.

Parameters
coordsstorage for current segment's points
Returns
current segment type
See also
points()
#type_index()
getType()
Deprecated:
try to use index(), points() and next() to avoid copying

Definition at line 198 of file Path2F.java.

Here is the call graph for this function:

◆ getType()

SegmentType com.jogamp.math.geom.plane.Path2F.Iterator.getType ( )

Return current segment type.

Definition at line 186 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWinding()

Winding com.jogamp.math.geom.plane.Path2F.Iterator.getWinding ( )

Compute the general winding of the vertices.

Returns
CCW or CW Winding

Definition at line 175 of file Path2F.java.

Here is the caller graph for this function:

◆ getWindingRule()

WindingRule com.jogamp.math.geom.plane.Path2F.Iterator.getWindingRule ( )

Return the WindingRule set.

Definition at line 167 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasNext()

boolean com.jogamp.math.geom.plane.Path2F.Iterator.hasNext ( )

Returns true if the iteration has more elements.

Definition at line 212 of file Path2F.java.

Here is the caller graph for this function:

◆ index()

int com.jogamp.math.geom.plane.Path2F.Iterator.index ( )

Return the points() index for the current segment.

Definition at line 183 of file Path2F.java.

Here is the caller graph for this function:

◆ next()

SegmentType com.jogamp.math.geom.plane.Path2F.Iterator.next ( )

Returns the current segment type in the iteration, then moving to the next path segment.

Definition at line 217 of file Path2F.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ points()

float[] com.jogamp.math.geom.plane.Path2F.Iterator.points ( )

Returns reference of the point array covering the whole iteration of Path2D, use index() to access the current point.

Definition at line 180 of file Path2F.java.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: