Class CAAT.PathUtil.CurvePath
Extends
CAAT.PathUtil.PathSegment.
Defined in: CurvePath.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
A CAAT.Math.Curve instance.
|
|
spare holder for getPosition coordinate return.
|
- Fields borrowed from class CAAT.PathUtil.PathSegment:
- bbox, color, length, parent
Method Attributes | Method Name and Description |
---|---|
<private> |
__init()
|
applyAsPath(director)
|
|
Get path segment's last point's y coordinate.
|
|
getContour(iSize)
|
|
getControlPoint(index)
|
|
getPosition(time)
|
|
getPositionFromLength(iLength)
Gets the coordinate on the path relative to the path length.
|
|
Get path segment's first point's x coordinate.
|
|
paint(director, bDrawHandles)
|
|
setCubic(p0x, p0y, p1x, p1y, p2x, p2y, p3x, p3y)
Set the pathSegment as a CAAT.Bezier cubic instance.
|
|
setPoint(point, index)
|
|
setPoints(points)
Set this curve segment's points.
|
|
setQuadric(p0x, p0y, p1x, p1y, p2x, p2y)
Set the pathSegment as a CAAT.Bezier quadric instance.
|
|
updatePath(point)
|
- Methods borrowed from class CAAT.PathUtil.PathSegment:
- drawHandle, endPath, getBoundingBox, getLength, setColor, setParent, transform
Field Detail
curve
A CAAT.Math.Curve instance.
newPosition
spare holder for getPosition coordinate return.
Method Detail
<private>
__init()
applyAsPath(director)
- Parameters:
- director
endCurvePosition()
{number}
finalPositionX()
Get path segment's last point's y coordinate.
- Returns:
- {number}
getContour(iSize)
- Parameters:
- iSize
getControlPoint(index)
- Parameters:
- index
getPosition(time)
- Parameters:
- time
{CAAT.Point}
getPositionFromLength(iLength)
Gets the coordinate on the path relative to the path length.
- Parameters:
- iLength
- {number} the length at which the coordinate will be taken from.
- Returns:
- {CAAT.Point} a CAAT.Point instance with the coordinate on the path corresponding to the iLenght parameter relative to segment's length.
{number}
initialPositionX()
Get path segment's first point's x coordinate.
- Returns:
- {number}
numControlPoints()
paint(director, bDrawHandles)
- Parameters:
- director
- {CAAT.Director}
- bDrawHandles
- {boolean}
setCubic(p0x, p0y, p1x, p1y, p2x, p2y, p3x, p3y)
Set the pathSegment as a CAAT.Bezier cubic instance.
Parameters are cubic coordinates control points.
- Parameters:
- p0x
- {number}
- p0y
- {number}
- p1x
- {number}
- p1y
- {number}
- p2x
- {number}
- p2y
- {number}
- p3x
- {number}
- p3y
- {number}
- Returns:
- this
setPoint(point, index)
- Parameters:
- point
- index
setPoints(points)
Set this curve segment's points.
- Parameters:
- points
- {Array
}
setQuadric(p0x, p0y, p1x, p1y, p2x, p2y)
Set the pathSegment as a CAAT.Bezier quadric instance.
Parameters are quadric coordinates control points.
- Parameters:
- p0x
- {number}
- p0y
- {number}
- p1x
- {number}
- p1y
- {number}
- p2x
- {number}
- p2y
- {number}
- Returns:
- this
startCurvePosition()
updatePath(point)
- Parameters:
- point