Class Index | File Index

Classes


Class CAAT.PathUtil.CurvePath


Extends CAAT.PathUtil.PathSegment.

Defined in: CurvePath.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
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 Summary
Method Attributes Method Name and Description
<private>  
 
applyAsPath(director)
 
 
Get path segment's last point's y coordinate.
 
getContour(iSize)
 
 
 
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
Class Detail
CAAT.PathUtil.CurvePath()
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

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)