Class CAAT.PathUtil.RectPath
Extends
CAAT.PathUtil.PathSegment.
Defined in: RectPath.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Traverse this path clockwise or counterclockwise (false).
|
|
spare point for calculations
|
|
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.
|
|
getControlPoint(index)
|
|
getPosition(time)
|
|
getPositionFromLength(iLength)
|
|
Returns initial path segment point's x coordinate.
|
|
Get the number of control points.
|
|
paint(director, bDrawHandles)
Draws this path segment on screen.
|
|
setClockWise(cw)
|
|
setFinalPosition(finalX, finalY)
Set a rectangle from points[0] to (finalX, finalY)
|
|
setInitialPosition(x, y)
Set this path segment's starting position.
|
|
setPoint(point, index)
|
|
setPoints(points)
An array of {CAAT.Point} composed of two points.
|
|
updatePath(point)
|
- Methods borrowed from class CAAT.PathUtil.PathSegment:
- drawHandle, endPath, getBoundingBox, getLength, setColor, setParent, transform
Field Detail
cw
Traverse this path clockwise or counterclockwise (false).
newPosition
spare point for calculations
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()
getControlPoint(index)
- Parameters:
- index
getPosition(time)
- Parameters:
- time
getPositionFromLength(iLength)
- Parameters:
- iLength
{number}
initialPositionX()
Returns initial path segment point's x coordinate.
- Returns:
- {number}
isClockWise()
{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}
setClockWise(cw)
- Parameters:
- cw
setFinalPosition(finalX, finalY)
Set a rectangle from points[0] to (finalX, finalY)
- Parameters:
- finalX
- {number}
- finalY
- {number}
setInitialPosition(x, y)
Set this path segment's starting position.
This method should not be called again after setFinalPosition has been called.
- Parameters:
- x
- {number}
- y
- {number}
setPoint(point, index)
- Parameters:
- point
- index
setPoints(points)
An array of {CAAT.Point} composed of two points.
- Parameters:
- points
- {Array
}
startCurvePosition()
updatePath(point)
- Parameters:
- point