|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Path2F represents and provides construction method for a 2D shape using float[2] points. More...
Classes | |
| class | Iterator |
| enum | SegmentType |
| A Path2D segment type. More... | |
Public Member Functions | |
| Path2F () | |
| Path2F (final WindingRule rule) | |
| Path2F (final WindingRule rule, final int initialCapacity) | |
| Path2F (final WindingRule rule, final int initialTypeCapacity, final int initialPointCapacity) | |
| Path2F (final Path2F path) | |
| void | setWindingRule (final WindingRule rule) |
Set the WindingRule set. More... | |
| WindingRule | getWindingRule () |
Return the WindingRule set. More... | |
| void | moveTo (final float x, final float y) |
| Start a new position for the next line segment at given point x/y (P1). More... | |
| void | lineTo (final float x, final float y) |
| Add a line segment, intersecting the last point and the given point x/y (P1). More... | |
| void | quadTo (final float x1, final float y1, final float x2, final float y2) |
| Add a quadratic curve segment, intersecting the last point and the second given point x2/y2 (P2). More... | |
| void | cubicTo (final float x1, final float y1, final float x2, final float y2, final float x3, final float y3) |
| Add a cubic Bézier curve segment, intersecting the last point and the second given point x3/y3 (P3). More... | |
| void | closePath () |
| Closes the current sub-path segment by drawing a straight line back to the coordinates of the last moveTo. More... | |
| final int | size () |
| final boolean | isClosed () |
| Returns true if the last sub-path is closed, otherwise false. More... | |
| Winding | getWinding () |
| Compute the general winding of the vertices. More... | |
| String | toString () |
| void | append (final Path2F path, final boolean connect) |
| Append the given path geometry to this instance. More... | |
| void | append (final Iterator path, boolean connect) |
| Append the given path geometry to this instance. More... | |
| void | printSegments (final PrintStream out) |
| void | reset () |
| void | transform (final AffineTransform t) |
| Path2F | createTransformedShape (final AffineTransform t) |
| final synchronized AABBox | getBounds2D () |
| boolean | contains (final float px, final float py) |
| boolean | contains (final float rx, final float ry, final float rw, final float rh) |
| boolean | intersects (final float rx, final float ry, final float rw, final float rh) |
| boolean | contains (final AABBox r) |
| boolean | intersects (final AABBox r) |
| Iterator | iterator () |
| Iterator | iterator (final AffineTransform t) |
Path2F represents and provides construction method for a 2D shape using float[2] points.
Definition at line 31 of file Path2F.java.
| com.jogamp.math.geom.plane.Path2F.Path2F | ( | ) |
| com.jogamp.math.geom.plane.Path2F.Path2F | ( | final WindingRule | rule | ) |
Definition at line 271 of file Path2F.java.
| com.jogamp.math.geom.plane.Path2F.Path2F | ( | final WindingRule | rule, |
| final int | initialCapacity | ||
| ) |
Definition at line 275 of file Path2F.java.
| com.jogamp.math.geom.plane.Path2F.Path2F | ( | final WindingRule | rule, |
| final int | initialTypeCapacity, | ||
| final int | initialPointCapacity | ||
| ) |
| com.jogamp.math.geom.plane.Path2F.Path2F | ( | final Path2F | path | ) |
| void com.jogamp.math.geom.plane.Path2F.append | ( | final Iterator | path, |
| boolean | connect | ||
| ) |
Append the given path geometry to this instance.
| path | the Path2F.Iterator to append to this instance |
| connect | pass true to turn an initial moveTo segment into a lineTo segment to connect the new geometry to the existing path, otherwise pass false. |
Definition at line 436 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.append | ( | final Path2F | path, |
| final boolean | connect | ||
| ) |
Append the given path geometry to this instance.
| path | the Path2F to append to this instance |
| connect | pass true to turn an initial moveTo segment into a lineTo segment to connect the new geometry to the existing path, otherwise pass false. |
Definition at line 427 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.closePath | ( | ) |
Closes the current sub-path segment by drawing a straight line back to the coordinates of the last moveTo.
If the path is already closed then this method has no effect.
Definition at line 390 of file Path2F.java.
| boolean com.jogamp.math.geom.plane.Path2F.contains | ( | final AABBox | r | ) |
| boolean com.jogamp.math.geom.plane.Path2F.contains | ( | final float | px, |
| final float | py | ||
| ) |
| boolean com.jogamp.math.geom.plane.Path2F.contains | ( | final float | rx, |
| final float | ry, | ||
| final float | rw, | ||
| final float | rh | ||
| ) |
Definition at line 561 of file Path2F.java.
| Path2F com.jogamp.math.geom.plane.Path2F.createTransformedShape | ( | final AffineTransform | t | ) |
| void com.jogamp.math.geom.plane.Path2F.cubicTo | ( | final float | x1, |
| final float | y1, | ||
| final float | x2, | ||
| final float | y2, | ||
| final float | x3, | ||
| final float | y3 | ||
| ) |
Add a cubic Bézier curve segment, intersecting the last point and the second given point x3/y3 (P3).
| x1 | Bézier control point (P1) |
| y1 | Bézier control point (P1) |
| x2 | Bézier control point (P2) |
| y2 | Bézier control point (P2) |
| x3 | final interpolated control point (P3) |
| y3 | final interpolated control point (P3) |
Definition at line 376 of file Path2F.java.
| final synchronized AABBox com.jogamp.math.geom.plane.Path2F.getBounds2D | ( | ) |
Definition at line 517 of file Path2F.java.
| Winding com.jogamp.math.geom.plane.Path2F.getWinding | ( | ) |
Compute the general winding of the vertices.
| vertices | array of Vertices |
Winding Definition at line 413 of file Path2F.java.
| WindingRule com.jogamp.math.geom.plane.Path2F.getWindingRule | ( | ) |
Return the WindingRule set.
Definition at line 298 of file Path2F.java.
| boolean com.jogamp.math.geom.plane.Path2F.intersects | ( | final AABBox | r | ) |
| boolean com.jogamp.math.geom.plane.Path2F.intersects | ( | final float | rx, |
| final float | ry, | ||
| final float | rw, | ||
| final float | rh | ||
| ) |
| final boolean com.jogamp.math.geom.plane.Path2F.isClosed | ( | ) |
Returns true if the last sub-path is closed, otherwise false.
Definition at line 404 of file Path2F.java.
| Iterator com.jogamp.math.geom.plane.Path2F.iterator | ( | ) |
| Iterator com.jogamp.math.geom.plane.Path2F.iterator | ( | final AffineTransform | t | ) |
Definition at line 583 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.lineTo | ( | final float | x, |
| final float | y | ||
| ) |
Add a line segment, intersecting the last point and the given point x/y (P1).
| x | final point (P1) |
| y | final point (P1) |
Definition at line 344 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.moveTo | ( | final float | x, |
| final float | y | ||
| ) |
Start a new position for the next line segment at given point x/y (P1).
| x | point (P1) |
| y | point (P1) |
Definition at line 327 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.printSegments | ( | final PrintStream | out | ) |
| void com.jogamp.math.geom.plane.Path2F.quadTo | ( | final float | x1, |
| final float | y1, | ||
| final float | x2, | ||
| final float | y2 | ||
| ) |
Add a quadratic curve segment, intersecting the last point and the second given point x2/y2 (P2).
| x1 | quadratic parametric control point (P1) |
| y1 | quadratic parametric control point (P1) |
| x2 | final interpolated control point (P2) |
| y2 | final interpolated control point (P2) |
Definition at line 358 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.reset | ( | ) |
Definition at line 500 of file Path2F.java.
| void com.jogamp.math.geom.plane.Path2F.setWindingRule | ( | final WindingRule | rule | ) |
Set the WindingRule set.
Definition at line 293 of file Path2F.java.
| final int com.jogamp.math.geom.plane.Path2F.size | ( | ) |
| String com.jogamp.math.geom.plane.Path2F.toString | ( | ) |
| void com.jogamp.math.geom.plane.Path2F.transform | ( | final AffineTransform | t | ) |
Definition at line 505 of file Path2F.java.