Class CAAT.PathUtil.LinearPath
Extends
CAAT.PathUtil.PathSegment.
Defined in: LinearPath.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
spare holder for getPosition coordinate return.
|
|
A collection of points.
|
- Fields borrowed from class CAAT.PathUtil.PathSegment:
- bbox, color, length, parent
Method Attributes | Method Name and Description |
---|---|
<private> |
__init()
|
applyAsPath(director)
|
|
Returns final path segment point's x coordinate.
|
|
getContour(iSize)
|
|
getControlPoint(index)
|
|
getPosition(time)
|
|
Returns initial path segment point's x coordinate.
|
|
Get the number of control points.
|
|
paint(director, bDrawHandles)
Draws this path segment on screen.
|
|
setFinalPosition(finalX, finalY)
Set this path segment's ending position.
|
|
setInitialPosition(x, y)
Set this path segment's starting position.
|
|
setPoint(point, index)
|
|
setPoints(points)
|
|
updatePath(point)
Update this segments length and bounding box info.
|
- Methods borrowed from class CAAT.PathUtil.PathSegment:
- drawHandle, endPath, getBoundingBox, getLength, setColor, setParent, transform
Field Detail
newPosition
spare holder for getPosition coordinate return.
points
A collection of points.
Method Detail
<private>
__init()
applyAsPath(director)
- Parameters:
- director
endCurvePosition()
{number}
finalPositionX()
Returns final path segment point's x coordinate.
- Returns:
- {number}
getContour(iSize)
- Parameters:
- iSize
getControlPoint(index)
- Parameters:
- index
getPosition(time)
- Parameters:
- time
getPositionFromLength(len)
- Parameters:
- len
{number}
initialPositionX()
Returns initial path segment point's x coordinate.
- Returns:
- {number}
{number}
numControlPoints()
Get the number of control points. For this type of path segment, start and
ending path segment points. Defaults to 2.
- Returns:
- {number}
paint(director, bDrawHandles)
Draws this path segment on screen. Optionally it can draw handles for every control point, in
this case, start and ending path segment points.
- Parameters:
- director
- {CAAT.Director}
- bDrawHandles
- {boolean}
setFinalPosition(finalX, finalY)
Set this path segment's ending position.
- Parameters:
- finalX
- {number}
- finalY
- {number}
setInitialPosition(x, y)
Set this path segment's starting position.
- Parameters:
- x
- {number}
- y
- {number}
setPoint(point, index)
- Parameters:
- point
- index
setPoints(points)
- Parameters:
- points
startCurvePosition()
updatePath(point)
Update this segments length and bounding box info.
- Parameters:
- point