Packageaway3d.core.draw
Classpublic class DrawBitmap
InheritanceDrawBitmap Inheritance DrawPrimitive

Unscaled bitmap drawing primitive

Public Properties
 PropertyDefined by
  bitmap : BitmapData
The bitmapData object used as the bitmap primitive texture.
DrawBitmap
 Inheritedcreate : Function
Placeholder function for creating new drawing primitives from a cache of objects.
DrawPrimitive
 Inheritedgenerated : Boolean
Indicator of whether primitive is the produce of a generator algorithm
DrawPrimitive
 InheritedignoreSort : Boolean
DrawPrimitive
 InheritedmaxX : Number
Indicates the maximum x value of the drawing primitive.
DrawPrimitive
 InheritedmaxY : Number
Indicates the maximum y value of the drawing primitive.
DrawPrimitive
 InheritedmaxZ : Number
Indicates the maximum z value of the drawing primitive.
DrawPrimitive
 InheritedminX : Number
Indicates the minimum x value of the drawing primitive.
DrawPrimitive
 InheritedminY : Number
Indicates the minimum y value of the drawing primitive.
DrawPrimitive
 InheritedminZ : Number
Indicates the minimum z value of the drawing primitive.
DrawPrimitive
 Inheritedquadrant : PrimitiveQuadrantTreeNode
Reference to the last quadrant used by the drawing primitive.
DrawPrimitive
  screenvertex : ScreenVertex
DrawBitmap
 InheritedscreenZ : Number
Indicates the screen z value of the drawing primitive (used for z-sorting).
DrawPrimitive
 Inheritedsource : Object3D
The parent 3d object of the drawing primitive.
DrawPrimitive
 Inheritedview : View3D
The view 3d object of the drawing primitive.
DrawPrimitive
Public Methods
 MethodDefined by
  
calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
DrawBitmap
  
clear():void
Deletes the data currently held by the drawing primitive.
DrawBitmap
  
contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
DrawBitmap
 Inherited
getZ(x:Number, y:Number):Number
Calulates the screen z value of a precise point on the drawing primitive.
DrawPrimitive
 Inherited
quarter(focus:Number):Array
Cuts the drawing primitive into 4 equally sized drawing primitives.
DrawPrimitive
  
render():void
Draws the primitive to the view.
DrawBitmap
 Inherited
toString():String
Used to trace the values of a drawing primitive.
DrawPrimitive
Property detail
bitmapproperty
public var bitmap:BitmapData

The bitmapData object used as the bitmap primitive texture.

screenvertexproperty 
public var screenvertex:ScreenVertex
Method detail
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

Parameters
x:Number — The x position of the point to be tested.
 
y:Number — The y position of the point to be tested.

Returns
Boolean — The result of the test.
render()method 
public override function render():void

Draws the primitive to the view.

Wiki link
Click to go to the wiki page for 'away3d.core.draw.DrawBitmap'

Code examples

Comments