|
int | countPoints () |
|
| RContour (RPoint[] contourpoints) |
|
| RContour () |
|
| RContour (RContour c) |
|
void | draw (PGraphics g) |
|
void | draw (PApplet g) |
|
void | addPoint (RPoint p) |
|
void | addPoint (float x, float y) |
|
void | addPoints (RPoint[] morePoints) |
|
void | addPoints (List morePoints) |
|
RPoint[] | getHandles () |
|
RPoint[] | getPoints () |
|
RPoint | getPoint (float t) |
|
RPoint | getTangent (float t) |
|
RPoint[] | getTangents () |
|
RPoint[][] | getPointsInPaths () |
|
RPoint[][] | getHandlesInPaths () |
|
RPoint[][] | getTangentsInPaths () |
|
boolean | contains (RPoint p) |
|
void | addClose () |
|
RPolygon | toPolygon () |
|
RShape | toShape () throws RuntimeException |
|
RMesh | toMesh () |
|
int | getType () |
|
abstract void | draw (PGraphics g) |
|
abstract void | draw (PApplet g) |
|
void | draw () |
|
abstract RPoint | getPoint (float t) |
|
abstract RPoint | getTangent (float t) |
|
abstract RPoint[] | getHandles () |
|
abstract RPoint[] | getPoints () |
|
abstract RPoint[] | getTangents () |
|
abstract RPoint[][] | getHandlesInPaths () |
|
abstract RPoint[][] | getPointsInPaths () |
|
abstract RPoint[][] | getTangentsInPaths () |
|
abstract boolean | contains (RPoint p) |
|
abstract int | getType () |
|
abstract RShape | toShape () |
|
void | print () |
|
void | setFill (boolean _fill) |
|
void | setFill (int _fillColor) |
|
void | setFill (String str) |
|
void | setStroke (boolean _stroke) |
|
void | setStroke (int _strokeColor) |
|
void | setStroke (String str) |
|
void | setStrokeWeight (float value) |
|
void | setStrokeWeight (String str) |
|
void | setStrokeCap (String str) |
|
void | setStrokeJoin (String str) |
|
void | setStrokeAlpha (int opacity) |
|
void | setStrokeAlpha (String str) |
|
void | setFillAlpha (int opacity) |
|
void | setFillAlpha (String str) |
|
void | setAlpha (float opacity) |
|
void | setAlpha (int opacity) |
|
void | setAlpha (String str) |
|
RStyle | getStyle () |
|
void | setStyle (RStyle s) |
|
void | setName (String str) |
|
float[] | getCurveLengths () |
|
float | getCurveLength () |
|
RPolygon | toPolygon () |
|
RMesh | toMesh () |
|
void | transform (RMatrix m) |
|
void | transform (float x, float y, float w, float h) |
|
boolean | isIn (PGraphics g) |
|
boolean | isIn (PApplet g) |
|
RMatrix | getCenteringTransf (PGraphics g) throws RuntimeException |
|
RMatrix | getCenteringTransf (PGraphics g, float margin) throws RuntimeException |
|
void | centerIn (PGraphics g) |
|
void | centerIn (PGraphics g, float margin) |
|
void | centerIn (PGraphics g, float margin, float sclDamping, float trnsDamping) throws RuntimeException |
|
void | rotate (float angle) |
|
void | scale (float sx, float sy) |
|
void | scale (float s) |
|
|
(Note that these are not member functions.)
|
RPoint[] | points |
|
boolean | isHole () |
|
boolean | contains (RGeomElem shp) |
|
boolean | containsBounds (RGeomElem shp) |
|
boolean | containsHandles (RGeomElem shp) |
|
boolean | contains (RPoint[] ps) |
|
boolean | intersects (RGeomElem shp) |
|
boolean | intersectsBounds (RGeomElem shp) |
|
boolean | intersectsHandles (RGeomElem shp) |
|
boolean | intersects (RPoint[] ps) |
|
void | transform (float x, float y, float w, float h, boolean keepAspectRatio) |
|
RRectangle | getBounds () |
|
RPoint[] | getBoundsPoints () |
|
RPoint | getTopLeft () |
|
RPoint | getTopRight () |
|
RPoint | getBottomLeft () |
|
RPoint | getBottomRight () |
|
float | getX () |
|
float | getY () |
|
float | getOrigHeight () |
|
float | getOrigWidth () |
|
float | getWidth () |
|
float | getHeight () |
|
RPoint | getCenter () |
|
RPoint | getCentroid () |
|
float | getArea () |
|
RMatrix | getCenteringTransf (PGraphics g, float margin, float sclDamping, float trnsDamping) throws RuntimeException |
|
void | translate (float tx, float ty) |
|
void | translate (RPoint t) |
|
void | rotate (float angle, float vx, float vy) |
|
void | rotate (float angle, RPoint v) |
|
void | scale (float sx, float sy, RPoint p) |
|
void | scale (float sx, float sy, float x, float y) |
|
void | scale (float s, RPoint p) |
|
void | scale (float s, float x, float y) |
|
void | skewX (float angle) |
|
void | skewY (float angle) |
|
void | shear (float shx, float shy) |
|
RContour is a reduced interface for creating, holding and drawing contours. Contours are ordered lists of points (RPoint) which define the outlines of polygons. Contours can be self-intersecting. RContour Geometry