protected var _segments:Vector.<IPathSegment>numSegments:uint [read-only]
The number of segments in the Path
Implementation public function get numSegments():uintpointData:Vector.<Vector3D> [write-only]
Implementation public function set pointData(value:Vector.<Vector3D>):voidsegments:Vector.<IPathSegment> [read-only]
returns the Vector.<PathSegment> holding the elements (PathSegment) of the path
Implementation public function get segments():Vector.<IPathSegment>public function SegmentedPathBase(pointsPerSegment:uint, data:Vector.<Vector3D> = null) Parameters | pointsPerSegment:uint |
| |
| data:Vector.<Vector3D> (default = null) |
public function addSegment(segment:IPathSegment):void Parameters
protected function createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment Parameters
| data:Vector.<Vector3D> |
| |
| offset:uint |
Returns public function dispose():void public function getPointOnCurve(t:Number, target:Vector3D = null):Vector3D Parameters
| t:Number |
| |
| target:Vector3D (default = null) |
Returns public function getPointsOnCurvePerSegment(subdivision:uint):Vector.<Vector3D> Parameters
Returns public function getSegmentAt(index:uint):IPathSegment
returns a given PathSegment from the path (PathSegment holds 3 Vector3D's)
Parameters
| index:uint — uint. the indice of a given PathSegment
|
Returns protected function getSegmentPoints(segment:IPathSegment, n:uint, last:Boolean):Vector.<Vector3D> Parameters
Returns public function removeSegment(index:uint, join:Boolean = false):void
removes a segment in the path according to id.
Parameters
| index:uint — int. The index in path of the to be removed curvesegment
|
| |
| join:Boolean (default = false) — Boolean. If true previous and next segments coordinates are reconnected
|
protected function stitchSegment(start:IPathSegment, middle:IPathSegment, end:IPathSegment):void
Stitches two segments together based on a segment between them. This is an abstract method used by the template method removeSegment and must be overridden by concrete subclasses!
Parameters
| start:IPathSegment — The section of which the end points must be connected with "end"
|
| |
| middle:IPathSegment — The section that was removed and forms the position hint
|
| |
| end:IPathSegment — The section of which the start points must be connected with "start"
|
Tue May 7 2013, 10:42 PM +01:00