Package | away3d.core.draw |
Class | public class DrawDisplayObject |
Inheritance | DrawDisplayObject DrawPrimitive |
Property | Defined by | ||
---|---|---|---|
create : Function
Placeholder function for creating new drawing primitives from a cache of objects.
| DrawPrimitive | ||
displayobject : DisplayObject
A reference to the displayobject used by the drawing primitive.
| DrawDisplayObject | ||
generated : Boolean
Indicator of whether primitive is the produce of a generator algorithm
| DrawPrimitive | ||
ignoreSort : Boolean | DrawPrimitive | ||
maxX : Number
Indicates the maximum x value of the drawing primitive.
| DrawPrimitive | ||
maxY : Number
Indicates the maximum y value of the drawing primitive.
| DrawPrimitive | ||
maxZ : Number
Indicates the maximum z value of the drawing primitive.
| DrawPrimitive | ||
minX : Number
Indicates the minimum x value of the drawing primitive.
| DrawPrimitive | ||
minY : Number
Indicates the minimum y value of the drawing primitive.
| DrawPrimitive | ||
minZ : Number
Indicates the minimum z value of the drawing primitive.
| DrawPrimitive | ||
quadrant : PrimitiveQuadrantTreeNode
Reference to the last quadrant used by the drawing primitive.
| DrawPrimitive | ||
screenZ : Number
Indicates the screen z value of the drawing primitive (used for z-sorting).
| DrawPrimitive | ||
session : AbstractRenderSession
A reference to the session used by the drawing primitive.
| DrawDisplayObject | ||
source : Object3D
The parent 3d object of the drawing primitive.
| DrawPrimitive | ||
view : View3D
The view 3d object of the drawing primitive.
| DrawPrimitive | ||
vx : Number
The x value of the screenvertex used to position the drawing primitive in the view.
| DrawDisplayObject | ||
vy : Number
The y value of the screenvertex used to position the drawing primitive in the view.
| DrawDisplayObject | ||
vz : Number
The z value of the screenvertex used to position the drawing primitive in the view.
| DrawDisplayObject |
Method | Defined by | ||
---|---|---|---|
calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
| DrawDisplayObject | ||
clear():void
Deletes the data currently held by the drawing primitive.
| DrawDisplayObject | ||
contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
| DrawDisplayObject | ||
getZ(x:Number, y:Number):Number
Calulates the screen z value of a precise point on the drawing primitive.
| DrawPrimitive | ||
quarter(focus:Number):Array
Cuts the drawing primitive into 4 equally sized drawing primitives.
| DrawPrimitive | ||
render():void
Draws the primitive to the view.
| DrawDisplayObject | ||
toString():String
Used to trace the values of a drawing primitive.
| DrawPrimitive |
displayobject | property |
public var displayobject:DisplayObject
A reference to the displayobject used by the drawing primitive.
session | property |
public var session:AbstractRenderSession
A reference to the session used by the drawing primitive.
vx | property |
public var vx:Number
The x value of the screenvertex used to position the drawing primitive in the view.
vy | property |
public var vy:Number
The y value of the screenvertex used to position the drawing primitive in the view.
vz | property |
public var vz:Number
The z value of the screenvertex used to position the drawing primitive in the view.
calc | () | method |
public override function calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
clear | () | method |
public override function clear():void
Deletes the data currently held by the drawing primitive.
contains | () | method |
public override function contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
Parametersx:Number — The x position of the point to be tested.
|
|
y:Number — The y position of the point to be tested.
|
Boolean — The result of the test.
|
render | () | method |
public override function render():void
Draws the primitive to the view.