com.ignotus.aifile
Class BezCurveShape

java.lang.Object
  extended by com.ignotus.aifile.DisplayComponent
      extended by com.ignotus.aifile.BezShape
          extended by com.ignotus.aifile.BezCurveShape
All Implemented Interfaces:
ColorableINF, Visitable

public class BezCurveShape
extends BezShape

Provides factory methods to construct a closed path consisting of Bezier curves.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ignotus.aifile.BezShape
BezShape.BezType
 
Field Summary
 
Fields inherited from class com.ignotus.aifile.BezShape
bezType, CURVE_SEGMENT, KAPPA, LINE_SEGMENT
 
Method Summary
static BezCurveShape makeCurvePoly(PApplet parent, float[] coords)
          Returns a multi-segment Bˇzier curve from an array of float.
 
Methods inherited from class com.ignotus.aifile.BezShape
accept, accept, add, add, append, append, append, asPolygon, asPolygon, asPolygon, asPolygon, bezCircle, bezCurve, bezCurveShape, bezEllipse, bezLine, bezMultiCurve, bezMultiLine, bezPoly, bezRectangle, bezRegularPoly, bezTriangle, bezTriangle, bezType, bounds, bounds, boundsRect, calculateCenter, centerVertex, children, clone, containsPoint, containsPoint, curveIterator, curves, curvesCopy, draw, draw, drawQuick, fillColor, fillOpacity, get, getAnchorCenter, getBoundsCenter, getCoords, getCtm, getGeoCenter, getMatrix, hasFill, hasStroke, isClosed, isTerminal, iterator, moveTo, polySize, polySize, polySteps, remove, rotateShape, rotateShape, scaleShape, scaleShape, scaleShape, scaleShape, setBezType, setCenter, setCenter, setCenter, setColors, setCtm, setCtm, setCtm, setCurves, setFillColor, setFillOpacity, setHasFill, setHasStroke, setIsClosed, setNoFill, setNoStroke, setPolySteps, setStartPoint, setStartPoint, setStartPoint, setStrokeColor, setStrokeOpacity, setUseTransparency, setWeight, setX, setY, startVertex, startVertexArray, strokeColor, strokeOpacity, transform, transform, transformShape, translateShape, useTransparency, weight, write, write, x, xcoords, xcoords, xctr, y, ycoords, ycoords, yctr
 
Methods inherited from class com.ignotus.aifile.DisplayComponent
hide, id, isLocked, isVisible, parentComponent, setLocked, setParentComponent, setVisible, show
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeCurvePoly

public static BezCurveShape makeCurvePoly(PApplet parent,
                                          float[] coords)
Returns a multi-segment Bˇzier curve from an array of float. Fill, stroke, and weight are set from their values in the Processing environment. The first coordinate pair is the initial anchor point, the following coordinate pairs correspond to the first control point, second control point, and final anchor point of each additional curve. The final anchor point and the first coordinate pair should be identical for a properly closed shape. The shape will be closed and consist only of Bezier curves with no straight lines.

Parameters:
coords - an array of coordinate pairs
Returns:
a multi-segment curved line of type BezShape.BEZ_MULTICURVE


processing library IgnoCodeLib by Paul Hertz. (c) 2011