Package | away3d.core.clip |
Class | public class Clipping |
Inheritance | Clipping flash.events.EventDispatcher |
Subclasses | FrustumClipping, NearfieldClipping, RectangleClipping |
Property | Defined By | ||
---|---|---|---|
maxX : Number
Maximum allowed x value for primitives
| Clipping | ||
maxY : Number
Maximum allowed y value for primitives
| Clipping | ||
maxZ : Number
Maximum allowed z value for primitives
| Clipping | ||
minX : Number
Minimum allowed x value for primitives
| Clipping | ||
minY : Number
Minimum allowed y value for primitives
| Clipping | ||
minZ : Number
Minimum allowed z value for primitives
| Clipping | ||
objectCulling : Boolean | Clipping | ||
view : View3D | Clipping |
Method | Defined By | ||
---|---|---|---|
Clipping(init:Object = null)
Creates a new Clipping object. | Clipping | ||
addOnClippingUpdate(listener:Function):void
Default method for adding a clippingUpdated event listener
| Clipping | ||
addOnScreenUpdate(listener:Function):void
Default method for adding a screenUpdated event listener
| Clipping | ||
Clipping | |||
checkPrimitive(renderer:Renderer, priIndex:uint):Boolean
Checks a drawing primitive for clipping. | Clipping | ||
Clipping | |||
rect(minX:Number, minY:Number, maxX:Number, maxY:Number):Boolean
Checks a bounding rectangle for clipping. | Clipping | ||
removeOnClippingUpdate(listener:Function):void
Default method for removing a clippingUpdated event listener
| Clipping | ||
removeOnScreenUpdate(listener:Function):void
Default method for removing a screenUpdated event listener
| Clipping | ||
Returns a clipping object initilised with the edges of the flash movie as the clipping bounds. | Clipping | ||
toString():String [override]
Used to trace the values of a rectangle clipping object. | Clipping |
ini | property |
protected var ini:Init
maxX | property |
maxX:Number
Maximum allowed x value for primitives
public function get maxX():Number
public function set maxX(value:Number):void
maxY | property |
maxY:Number
Maximum allowed y value for primitives
public function get maxY():Number
public function set maxY(value:Number):void
maxZ | property |
maxZ:Number
Maximum allowed z value for primitives
public function get maxZ():Number
public function set maxZ(value:Number):void
minX | property |
minX:Number
Minimum allowed x value for primitives
public function get minX():Number
public function set minX(value:Number):void
minY | property |
minY:Number
Minimum allowed y value for primitives
public function get minY():Number
public function set minY(value:Number):void
minZ | property |
minZ:Number
Minimum allowed z value for primitives
public function get minZ():Number
public function set minZ(value:Number):void
objectCulling | property |
objectCulling:Boolean
public function get objectCulling():Boolean
public function set objectCulling(value:Boolean):void
view | property |
view:View3D
public function get view():View3D
public function set view(value:View3D):void
Clipping | () | Constructor |
public function Clipping(init:Object = null)
Creates a new Clipping
object.
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
addOnClippingUpdate | () | method |
public function addOnClippingUpdate(listener:Function):void
Default method for adding a clippingUpdated event listener
Parameters
listener:Function — The listener function
|
addOnScreenUpdate | () | method |
public function addOnScreenUpdate(listener:Function):void
Default method for adding a screenUpdated event listener
Parameters
listener:Function — The listener function
|
checkElements | () | method |
public function checkElements(mesh:Mesh, clippedFaceVOs:Vector.<FaceVO>, clippedSegmentVOs:Vector.<SegmentVO>, clippedSpriteVOs:Vector.<SpriteVO>, clippedVertices:Vector.<Vertex>, clippedVerts:Vector.<Number>, clippedIndices:Vector.<int>, startIndices:Vector.<int>):void
Parameters
mesh:Mesh | |
clippedFaceVOs:Vector.<FaceVO> | |
clippedSegmentVOs:Vector.<SegmentVO> | |
clippedSpriteVOs:Vector.<SpriteVO> | |
clippedVertices:Vector.<Vertex> | |
clippedVerts:Vector.<Number> | |
clippedIndices:Vector.<int> | |
startIndices:Vector.<int> |
checkPrimitive | () | method |
public function checkPrimitive(renderer:Renderer, priIndex:uint):Boolean
Checks a drawing primitive for clipping.
Parameters
renderer:Renderer — The drawing primitive being checked.
| |
priIndex:uint |
Boolean — The clipping result - false for clipped, true for non-clipped.
|
clone | () | method |
public function clone(object:Clipping = null):Clipping
Parameters
object:Clipping (default = null )
|
Clipping |
rect | () | method |
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.
|
Boolean — The clipping result - false for clipped, true for non-clipped.
|
removeOnClippingUpdate | () | method |
public function removeOnClippingUpdate(listener:Function):void
Default method for removing a clippingUpdated event listener
Parameters
listener:Function — The listener function
|
removeOnScreenUpdate | () | method |
public function removeOnScreenUpdate(listener:Function):void
Default method for removing a screenUpdated event listener
Parameters
listener:Function — The listener function
|
screen | () | method |
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 |
Clipping |
toString | () | method |
override public function toString():String
Used to trace the values of a rectangle clipping object.
ReturnsString — A string representation of the rectangle clipping object.
|