Packagelaya.webgl.shapes
Classpublic class BasePoly
InheritanceBasePoly Inheritance Object
Implements IShape
Subclasses Ellipse, Line, LoopLine, Polygon



Public Properties
 PropertyDefined By
  color : uint
BasePoly
  fill : Boolean = true
BasePoly
  x : Number
BasePoly
Protected Properties
 PropertyDefined By
  mFloat32Array : Float32Array
BasePoly
  mUint16Array : Uint16Array
BasePoly
Public Methods
 MethodDefined By
  
BasePoly(x:Number, y:Number, width:Number, height:Number, edges:Number, color:uint, borderWidth:int, borderColor:uint, round:uint = 0)
BasePoly
  
createLoopLine(p:Array, indices:Array, lineWidth:Number, len:Number, outVertex:Array = null, outIndex:Array = null):Array
BasePoly
  
getData(ib:Buffer2D, vb:Buffer2D, start:int):void
BasePoly
  
needUpdate(mat:Matrix):Boolean
BasePoly
  
rebuild(points:Array):void
BasePoly
  
setMatrix(mat:Matrix):void
BasePoly
Protected Methods
 MethodDefined By
  
createLine(p:Array, indices:Array, lineWidth:Number, len:Number):Array
BasePoly
  
createLine2(p:Array, indices:Array, lineWidth:Number, len:Number, outVertex:Array, indexCount:int):Array
BasePoly
  
sector(outVert:Array, outIndex:Array, start:int):void
BasePoly
Property Detail
colorproperty
public var color:uint

fillproperty 
public var fill:Boolean = true

mFloat32Arrayproperty 
protected var mFloat32Array:Float32Array

mUint16Arrayproperty 
protected var mUint16Array:Uint16Array

xproperty 
public var x:Number

Constructor Detail
BasePoly()Constructor
public function BasePoly(x:Number, y:Number, width:Number, height:Number, edges:Number, color:uint, borderWidth:int, borderColor:uint, round:uint = 0)



Parameters
x:Number
 
y:Number
 
width:Number
 
height:Number
 
edges:Number
 
color:uint
 
borderWidth:int
 
borderColor:uint
 
round:uint (default = 0)
Method Detail
createLine()method
protected function createLine(p:Array, indices:Array, lineWidth:Number, len:Number):Array

Parameters

p:Array
 
indices:Array
 
lineWidth:Number
 
len:Number

Returns
Array
createLine2()method 
protected function createLine2(p:Array, indices:Array, lineWidth:Number, len:Number, outVertex:Array, indexCount:int):Array

Parameters

p:Array
 
indices:Array
 
lineWidth:Number
 
len:Number
 
outVertex:Array
 
indexCount:int

Returns
Array
createLoopLine()method 
public function createLoopLine(p:Array, indices:Array, lineWidth:Number, len:Number, outVertex:Array = null, outIndex:Array = null):Array

Parameters

p:Array
 
indices:Array
 
lineWidth:Number
 
len:Number
 
outVertex:Array (default = null)
 
outIndex:Array (default = null)

Returns
Array
getData()method 
public function getData(ib:Buffer2D, vb:Buffer2D, start:int):void

Parameters

ib:Buffer2D
 
vb:Buffer2D
 
start:int

needUpdate()method 
public function needUpdate(mat:Matrix):Boolean

Parameters

mat:Matrix

Returns
Boolean
rebuild()method 
public function rebuild(points:Array):void

Parameters

points:Array

sector()method 
protected function sector(outVert:Array, outIndex:Array, start:int):void

Parameters

outVert:Array
 
outIndex:Array
 
start:int

setMatrix()method 
public function setMatrix(mat:Matrix):void

Parameters

mat:Matrix