Packageaway3d.core.clip
Classpublic class NearfieldClipping
InheritanceNearfieldClipping Inheritance Clipping Inheritance flash.events.EventDispatcher

Rectangle clipping combined with nearfield clipping

Public Properties
 PropertyDefined by
 InheritedmaxX : Number
Maximum allowed x value for primitives
Clipping
 InheritedmaxY : Number
Maximum allowed y value for primitives
Clipping
 InheritedmaxZ : Number
Maximum allowed z value for primitives
Clipping
 InheritedminX : Number
Minimum allowed x value for primitives
Clipping
 InheritedminY : Number
Minimum allowed y value for primitives
Clipping
 InheritedminZ : Number
Minimum allowed z value for primitives
Clipping
  objectCulling : Boolean
[write-only]
NearfieldClipping
 Inheritedview : View3D
Clipping
Protected Properties
 PropertyDefined by
 Inheritedini : Init
Clipping
Public Methods
 MethodDefined by
  
NearfieldClipping
(init:Object = null)
NearfieldClipping
 Inherited
addOnClippingUpdate(listener:Function):void
Default method for adding a clippingUpdated event listener
Clipping
 Inherited
addOnScreenUpdate(listener:Function):void
Default method for adding a screenUpdated event listener
Clipping
  
checkElements(mesh:Mesh, clippedFaceVOs:Array, clippedSegmentVOs:Array, clippedBillboards:Array, clippedVertices:Array, clippedCommands:Array, clippedIndices:Array, startIndices:Array):void
NearfieldClipping
  
Checks a drawing primitive for clipping.
NearfieldClipping
  
clone(object:Clipping = null):Clipping
NearfieldClipping
  
rect(minX:Number, minY:Number, maxX:Number, maxY:Number):Boolean
Checks a bounding rectangle for clipping.
NearfieldClipping
 Inherited
removeOnClippingUpdate(listener:Function):void
Default method for removing a clippingUpdated event listener
Clipping
 Inherited
removeOnScreenUpdate(listener:Function):void
Default method for removing a screenUpdated event listener
Clipping
 Inherited
screen(container:Sprite, _loaderWidth:Number, _loaderHeight:Number):Clipping
Returns a clipping object initilised with the edges of the flash movie as the clipping bounds.
Clipping
 Inherited
toString():String
Used to trace the values of a rectangle clipping object.
Clipping
Property detail
objectCullingproperty
objectCulling:Boolean  [write-only]Implementation
    public function set objectCulling(value:Boolean):void
Constructor detail
NearfieldClipping()constructor
public function NearfieldClipping(init:Object = null)Parameters
init:Object (default = null)
Init Parameters
 objectCulling:Boolean (default = true)
Method detail
checkElements()method
public override function checkElements(mesh:Mesh, clippedFaceVOs:Array, clippedSegmentVOs:Array, clippedBillboards:Array, clippedVertices:Array, clippedCommands:Array, clippedIndices:Array, startIndices:Array):void Parameters
mesh:Mesh
 
clippedFaceVOs:Array
 
clippedSegmentVOs:Array
 
clippedBillboards:Array
 
clippedVertices:Array
 
clippedCommands:Array
 
clippedIndices:Array
 
startIndices:Array
checkPrimitive()method 
public override function checkPrimitive(pri:DrawPrimitive):Boolean

Checks a drawing primitive for clipping.

Parameters
pri:DrawPrimitive — The drawing primitive being checked.

Returns
Boolean — The clipping result - false for clipped, true for non-clipped.
clone()method 
public override function clone(object:Clipping = null):Clipping Parameters
object:Clipping (default = null)

Returns
Clipping
rect()method 
public override function rect(minX:Number, minY:Number, maxX:Number, maxY:Number):Boolean

Checks a bounding rectangle for clipping.

Parameters
minX:Number — The x value for the left side of the rectangle.
 
minY:Number — The y value for the top side of the rectangle.
 
maxX:Number — The x value for the right side of the rectangle.
 
maxY:Number — The y value for the bottom side of the rectangle.

Returns
Boolean — The clipping result - false for clipped, true for non-clipped.
Wiki link
Click to go to the wiki page for 'away3d.core.clip.NearfieldClipping'

Code examples

Comments