Packageaway3d.core.block
Classpublic class Blocker
InheritanceBlocker Inheritance DrawPrimitive
SubclassesConvexBlocker

Abstract primitive that can block other primitives from drawing

Public Properties
 PropertyDefined by
 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
 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
  
block(pri:DrawPrimitive):Boolean
Return value signifies whether the given drawprimitive should be blocked.
Blocker
 Inherited
calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
DrawPrimitive
 Inherited
clear():void
Deletes the data currently held by the drawing primitive.
DrawPrimitive
 Inherited
contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
DrawPrimitive
 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
 Inherited
render():void
Draws the primitive to the view.
DrawPrimitive
 Inherited
toString():String
Used to trace the values of a drawing primitive.
DrawPrimitive
Method detail
block()method
public function block(pri:DrawPrimitive):Boolean

Return value signifies whether the given drawprimitive should be blocked. Called from the PrimitiveArray object on each blocker in the blockers array.

Parameters
pri:DrawPrimitive

Returns
Boolean

See also

away3d.core.draw.PrimitiveArray
Wiki link
Click to go to the wiki page for 'away3d.core.block.Blocker'

Code examples

Comments