Base clipping class for no clipping.
maxX:Number
[read-write]
Maximum allowed x value for primitives
Implementation
public function get maxX():Number
public function set maxX(value:Number):void
maxY:Number
[read-write]
Maximum allowed y value for primitives
Implementation
public function get maxY():Number
public function set maxY(value:Number):void
maxZ:Number
[read-write]
Maximum allowed z value for primitives
Implementation
public function get maxZ():Number
public function set maxZ(value:Number):void
minX:Number
[read-write]
Minimum allowed x value for primitives
Implementation
public function get minX():Number
public function set minX(value:Number):void
minY:Number
[read-write]
Minimum allowed y value for primitives
Implementation
public function get minY():Number
public function set minY(value:Number):void
minZ:Number
[read-write]
Minimum allowed z value for primitives
Implementation
public function get minZ():Number
public function set minZ(value:Number):void
objectCulling:Boolean
[read-write]Implementation
public function get objectCulling():Boolean
public function set objectCulling(value:Boolean):void
view:View3D
[read-write]
Implementation
public function get view():View3D
public function set view(value:View3D):void
public function Clipping(init:Object = null)
Parameters
| init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
Init Parameters
| minX:Number (default = -Infinity) |
| minY:Number (default = -Infinity) |
| minZ:Number (default = -Infinity) |
| maxX:Number (default = Infinity) |
| maxY:Number (default = Infinity) |
| maxZ:Number (default = Infinity) |
public function addOnClippingUpdate(listener:Function):void
Default method for adding a clippingUpdated event listener
Parameters
| listener:Function — The listener function
|
public function addOnScreenUpdate(listener:Function):void
Default method for adding a screenUpdated event listener
Parameters
| listener:Function — The listener function
|
public 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 |
public function checkPrimitive(pri:DrawPrimitive):Boolean
Checks a drawing primitive for clipping.
Parameters
Returns
| Boolean — The clipping result - false for clipped, true for non-clipped.
|
public function clone(object:Clipping = null):Clipping
Parameters
Returns
public 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.
|
public function removeOnClippingUpdate(listener:Function):void
Default method for removing a clippingUpdated event listener
Parameters
| listener:Function — The listener function
|
public function removeOnScreenUpdate(listener:Function):void
Default method for removing a screenUpdated event listener
Parameters
| listener:Function — The listener function
|
public function screen(container:Sprite, _loaderWidth:Number, _loaderHeight:Number):Clipping
Returns a clipping object initilised with the edges of the flash movie as the clipping bounds.
Parameters
| container:Sprite |
|
| _loaderWidth:Number |
|
| _loaderHeight:Number |
Returns
public override function toString():String
Used to trace the values of a rectangle clipping object.
Returns
| String — A string representation of the rectangle clipping object.
|