Packageaway3d.paths
Classpublic class QuadraticPath
InheritanceQuadraticPath Inheritance SegmentedPathBase Inheritance Object
Implements IPath

Holds information about a single Path definition. DEBUG OPTION OUT AT THIS TIME OF DEV



Public Properties
 PropertyDefined By
  averaged : Boolean
[read-only] returns true if the averagePath handler is being used.
QuadraticPath
 InheritednumSegments : uint
[read-only] The number of segments in the Path
SegmentedPathBase
 InheritedpointData : Vector.<Vector3D>
[write-only]
SegmentedPathBase
 Inheritedsegments : Vector.<IPathSegment>
[read-only] returns the Vector.<PathSegment> holding the elements (PathSegment) of the path
SegmentedPathBase
  smoothed : Boolean
[read-only] returns true if the smoothPath handler is being used.
QuadraticPath
Protected Properties
 PropertyDefined By
 Inherited_segments : Vector.<IPathSegment>
SegmentedPathBase
Public Methods
 MethodDefined By
  
QuadraticPath(data:Vector.<Vector3D> = null)
Creates a new Path object.
QuadraticPath
 Inherited
addSegment(segment:IPathSegment):void
SegmentedPathBase
  
handler will average the path using averages of the PathSegments note that this is not dynamic, the path values are overwrited
QuadraticPath
  
continuousCurve(points:Vector.<Vector3D>, closed:Boolean = false):void
QuadraticPath
 Inherited
dispose():void
SegmentedPathBase
 Inherited
getPointOnCurve(t:Number, target:Vector3D = null):Vector3D
SegmentedPathBase
 Inherited
getPointsOnCurvePerSegment(subdivision:uint):Vector.<Vector3D>
SegmentedPathBase
 Inherited
returns a given PathSegment from the path (PathSegment holds 3 Vector3D's)
SegmentedPathBase
 Inherited
removeSegment(index:uint, join:Boolean = false):void
removes a segment in the path according to id.
SegmentedPathBase
  
smoothPath():void
handler will smooth the path using anchors as control vector of the PathSegments note that this is not dynamic, the PathSegments values are overwrited
QuadraticPath
Protected Methods
 MethodDefined By
  
createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment
[override]
QuadraticPath
 Inherited
getSegmentPoints(segment:IPathSegment, n:uint, last:Boolean):Vector.<Vector3D>
SegmentedPathBase
  
[override]
QuadraticPath
Property Detail
averagedproperty
averaged:Boolean  [read-only]

returns true if the averagePath handler is being used.


Implementation
    public function get averaged():Boolean
smoothedproperty 
smoothed:Boolean  [read-only]

returns true if the smoothPath handler is being used.


Implementation
    public function get smoothed():Boolean
Constructor Detail
QuadraticPath()Constructor
public function QuadraticPath(data:Vector.<Vector3D> = null)

Creates a new Path object.

Parameters
data:Vector.<Vector3D> (default = null) — [optional] An array of a series of Vector3D's organized in the following fashion. [a,b,c,a,b,c etc...] a = pEnd, b=pControl (control point), c = v2
Method Detail
averagePath()method
public function averagePath():void

handler will average the path using averages of the PathSegments note that this is not dynamic, the path values are overwrited

continuousCurve()method 
public function continuousCurve(points:Vector.<Vector3D>, closed:Boolean = false):void

Parameters

points:Vector.<Vector3D>
 
closed:Boolean (default = false)

createSegmentFromArrayEntry()method 
override protected function createSegmentFromArrayEntry(data:Vector.<Vector3D>, offset:uint):IPathSegment

Parameters

data:Vector.<Vector3D>
 
offset:uint

Returns
IPathSegment
smoothPath()method 
public function smoothPath():void

handler will smooth the path using anchors as control vector of the PathSegments note that this is not dynamic, the PathSegments values are overwrited

stitchSegment()method 
override protected function stitchSegment(start:IPathSegment, middle:IPathSegment, end:IPathSegment):void

Parameters

start:IPathSegment
 
middle:IPathSegment
 
end:IPathSegment