Package | away3d.core.draw |
Class | public class DrawScaledBitmap |
Inheritance | DrawScaledBitmap ![]() |
Property | Defined by | ||
---|---|---|---|
bitmap : BitmapData
The bitmapData object used as the scaled bitmap primitive texture.
| DrawScaledBitmap | ||
![]() | create : Function
Placeholder function for creating new drawing primitives from a cache of objects.
| 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 | |
![]() | projection : Projection
Reference to the last projection object used for the primitive
| DrawPrimitive | |
![]() | quadrant : PrimitiveQuadrantTreeNode
Reference to the last quadrant used by the drawing primitive.
| DrawPrimitive | |
rotation : Number
A rotation value used to rotate the scaled bitmap primitive.
| DrawScaledBitmap | ||
scale : Number
A scaling value used to scale the scaled bitmap primitive.
| DrawScaledBitmap | ||
screenvertex : ScreenVertex
The screenvertex used to position the scaled bitmap primitive in the view.
| DrawScaledBitmap | ||
![]() | screenZ : Number
Indicates the screen z value of the drawing primitive (used for z-sorting).
| DrawPrimitive | |
smooth : Boolean
Determines whether the texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| DrawScaledBitmap | ||
![]() | source : Object3D
The parent 3d object of the drawing primitive.
| DrawPrimitive |
Method | Defined by | ||
---|---|---|---|
calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
| DrawScaledBitmap | ||
clear():void
Deletes the data currently held by the drawing primitive.
| DrawScaledBitmap | ||
contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
| DrawScaledBitmap | ||
![]() |
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.
| DrawScaledBitmap | ||
![]() |
toString():String
Used to trace the values of a drawing primitive.
| DrawPrimitive |
bitmap | property |
public var bitmap:BitmapData
The bitmapData object used as the scaled bitmap primitive texture.
rotation | property |
public var rotation:Number
A rotation value used to rotate the scaled bitmap primitive.
scale | property |
public var scale:Number
A scaling value used to scale the scaled bitmap primitive.
screenvertex | property |
public var screenvertex:ScreenVertex
The screenvertex used to position the scaled bitmap primitive in the view.
smooth | property |
public var smooth:Boolean
Determines whether the texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
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.