Package | flare.core |
Class | public class ShadowBase |
Inheritance | ShadowBase ![]() ![]() |
Subclasses | ShadowProjector3D |
Property | Defined By | ||
---|---|---|---|
projection : Matrix3D | ShadowBase | ||
view : Matrix3D [read-only] | ShadowBase |
Method | Defined By | ||
---|---|---|---|
ShadowBase | |||
![]() |
Add a new object as a child. | Pivot3D | |
![]() | Pivot3D | ||
![]() | addComponent(component:IComponent):Boolean
Adds a new component to the object. | Pivot3D | |
![]() | addFrameScript(frame:int, callback:Function):void | Pivot3D | |
![]() |
Adds a label that refers to a given animation. | Pivot3D | |
[override] | ShadowBase | ||
![]() |
Copy basic pivot properties to anotheer pivot. | Pivot3D | |
![]() | copyTransformFrom(source:Pivot3D, local:Boolean = true):void
Copies all transformations (position, rotation and scale) from another Pivot3D object. | Pivot3D | |
![]() | dispose():void
Disposes the pivot and all associated resources. | Pivot3D | |
![]() | download(includeChildren:Boolean = true):void | Pivot3D | |
![]() | draw(includeChildren:Boolean = true, material:Material3D = null):void
Draws the object. | Pivot3D | |
![]() | forEach(callback:Function, filterClass:Class = null, params:Object = null, includeChildren:Boolean = true):void
Excecutes a calback functions for each of his children. | Pivot3D | |
![]() | getBackward(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the direction vector that points to the back of the object. | Pivot3D | |
![]() | getChildByName(name:String, startIndex:int = 0, includeChildren:Boolean = true):Pivot3D
Returns the first child that matches the specified name. | Pivot3D | |
![]() | getDir(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the direction vector that points to the front of the object. | Pivot3D | |
![]() | getDown(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the direction vector that points to the bottom side of the object. | Pivot3D | |
![]() | getLeft(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the direction vector that points to the left side of the object. | Pivot3D | |
![]() | getMaterialByName(name:String, includeChildren:Boolean = true):Material3D
Returns the first material that matches the specified name. | Pivot3D | |
![]() |
Returns an unique vector of pivot materials. | Pivot3D | |
![]() | getPosition(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the current position of the object. | Pivot3D | |
![]() | getRight(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the direction vector that points to the right side of the object. | Pivot3D | |
![]() | getRotation(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the current rotation of the object in euler angles. | Pivot3D | |
![]() | getScale(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the current scale of the object. | Pivot3D | |
![]() | getScreenCoords(out:Vector3D = null, camera:Camera3D = null, viewPort:Rectangle = null):Vector3D
Returns the coordinates of an object with respect to the screen. | Pivot3D | |
![]() | getUp(local:Boolean = true, out:Vector3D = null):Vector3D
Returns the direction vector that points to the upper side of the object. | Pivot3D | |
![]() | globalToLocal(point:Vector3D, out:Vector3D = null):Vector3D
Transforms a point of the global space of the object into a local space. | Pivot3D | |
![]() | globalToLocalVector(vector:Vector3D, out:Vector3D = null):Vector3D
Transforms a point of the global space of the object into a local space without translation. | Pivot3D | |
![]() | gotoAndPlay(frame:Object, blendFrames:Number = 0, animationMode:int):void
Starts playing the animation at the specified frame
| Pivot3D | |
![]() | gotoAndStop(frame:Object, blendFrames:Number = 0):void
Stops the animation at the specified frame. | Pivot3D | |
![]() | hide():void
Sets whether the object is visible. | Pivot3D | |
![]() | localToGlobal(point:Vector3D, out:Vector3D = null):Vector3D
Transforms a point of the local space into the global space. | Pivot3D | |
![]() | localToGlobalVector(vector:Vector3D, out:Vector3D = null):Vector3D
Transforms a point of the local space of the object into a global space without translation. | Pivot3D | |
![]() | lookAt(x:Number, y:Number, z:Number, up:Vector3D = null, smooth:Number = 1):void
Directs the object towards the specified position. | Pivot3D | |
![]() | nextFrame():void | Pivot3D | |
![]() | play(animationMode:int = 0):void | Pivot3D | |
![]() | prevFrame():void | Pivot3D | |
![]() |
Removes a child of the object. | Pivot3D | |
![]() | removeComponent(component:IComponent):Boolean
Removes a component from the object. | Pivot3D | |
![]() |
Removes a label. | Pivot3D | |
![]() |
Replaces an existing material of the object with another material. | Pivot3D | |
![]() | resetTransforms():void
Resets the object position, rotation and scale. | Pivot3D | |
![]() | rotateAxis(angle:Number, axis:Vector3D, pivotPoint:Vector3D = null):void
Rotates the object on the specified axis from its current position. | Pivot3D | |
![]() | rotateX(angle:Number, local:Boolean = true, pivotPoint:Vector3D = null):void
Rotates the object on the X axis from its current position. | Pivot3D | |
![]() | rotateY(angle:Number, local:Boolean = true, pivotPoint:Vector3D = null):void
Rotates the object on the Y axis from its current position. | Pivot3D | |
![]() | rotateZ(angle:Number, local:Boolean = true, pivotPoint:Vector3D = null):void
Rotates the pivot on the Z axis from its current position. | Pivot3D | |
![]() | setLayer(value:int, includeChildren:Boolean = true):void
Sets the layer to render the object and all of his children. | Pivot3D | |
![]() | setMaterial(material:Material3D, includeChildren:Boolean = true):void
Sets a material for the object and, optionally, all its descendants. | Pivot3D | |
![]() | setNormalOrientation(normal:Vector3D, smooth:Number = 1):void
Aligns the object to a normal. | Pivot3D | |
![]() | setOrientation(dir:Vector3D, up:Vector3D = null, smooth:Number = 1):void
Orients the object in a specific direction. | Pivot3D | |
![]() | setPosition(x:Number, y:Number, z:Number, smooth:Number = 1, local:Boolean = true):void
Sets the position of the object. | Pivot3D | |
![]() | setRotation(x:Number, y:Number, z:Number):void
Sets the object rotation using euler angles. | Pivot3D | |
![]() | setScale(x:Number, y:Number, z:Number, smooth:Number = 1):void
Sets the object scale. | Pivot3D | |
![]() | setTranslation(x:Number = 0, y:Number = 0, z:Number = 0, local:Boolean = true):void
Translates the object from its current position to the specified distance. | Pivot3D | |
![]() | show():void
Sets whether the object is visible. | Pivot3D | |
![]() | startDrag(lockCenter:Boolean = false, reference:Vector3D = null):void
Lets the user drag the specified Pivot3D. | Pivot3D | |
![]() | stop():void | Pivot3D | |
![]() | stopDrag():void
Ends the startDrag() method. | Pivot3D | |
![]() | translateAxis(distance:Number, axis:Vector3D):void
Translates the object on a certain axis from its current position. | Pivot3D | |
![]() | translateX(distance:Number, local:Boolean = true):void
Translates the object on the X axis from its current position. | Pivot3D | |
![]() | translateY(distance:Number, local:Boolean = true):void
Translates the object on the Y axis from its current position. | Pivot3D | |
![]() | translateZ(distance:Number, local:Boolean = true):void
Translates the object on the Z axis from its current position. | Pivot3D | |
![]() | update():void | Pivot3D | |
![]() | updateTransforms(includeChildren:Boolean = false):void
This method is used to force the system to update the object in those cases where its matrices have been modified manually. | Pivot3D | |
![]() | Pivot3D |
Method | Defined By | ||
---|---|---|---|
buildOthoGraphicsMatrix(right:Number, left:Number, top:Number, bottom:Number, near:Number, far:Number):Matrix3D
The othoGraphicsMatrix which has a center in the middle of the screen, so right top corner is (n,n), left bottom corner is(-n,-n);
all params also indicates the range in the world space. | ShadowBase |
Constant | Defined By | ||
---|---|---|---|
![]() | ADDED_EVENT : String = added [static]
Defines the value for the 'added' event. | Pivot3D | |
![]() | ADDED_TO_SCENE_EVENT : String = addedToScene [static]
Defines the value for the 'addedToScene' event. | Pivot3D | |
![]() | ANIMATION_COMPLETE_EVENT : String = animationComplete [static]
Defines the value for the 'animationComplete' event. | Pivot3D | |
![]() | ANIMATION_LOOP_MODE : int = 0 [static] | Pivot3D | |
![]() | ANIMATION_PING_PONG_MODE : int = 1 [static] | Pivot3D | |
![]() | ANIMATION_STOP_MODE : int = 2 [static] | Pivot3D | |
![]() | ENTER_DRAW_EVENT : String = enterDraw [static]
Defines the value for the 'enterDraw' event. | Pivot3D | |
![]() | ENTER_FRAME_EVENT : String = enterFrame [static]
Defines the value for the 'enterFrame' event. | Pivot3D | |
![]() | EXIT_DRAW_EVENT : String = exitDraw [static]
Defines the value for the 'exitDraw' event. | Pivot3D | |
![]() | EXIT_FRAME_EVENT : String = exitFrame [static]
Defines the value for the 'exitFrame' event. | Pivot3D | |
NORMAL : int = 0 [static] | ShadowBase | ||
PCF : int = 1 [static] | ShadowBase | ||
![]() | REMOVED_EVENT : String = removed [static]
Defines the value for the 'removed' event. | Pivot3D | |
![]() | REMOVED_FROM_SCENE_EVENT : String = removedFromScene [static]
Defines the value for the 'removedFromScene' event. | Pivot3D | |
![]() | SORT_CENTER : int = 1 [static] | Pivot3D | |
![]() | SORT_FAR : int = 4 [static] | Pivot3D | |
![]() | SORT_NEAR : int = 2 [static] | Pivot3D | |
![]() | SORT_NONE : int = 0 [static] | Pivot3D | |
![]() | UNLOAD_EVENT : String = unload [static]
Defines the value for the 'unload' event. | Pivot3D | |
![]() | UPDATE_TRANSFORM_EVENT : String = updateTransform [static]
Defines the value for the 'updateTransform' event. | Pivot3D |
projection | property |
protected var projection:Matrix3D
view | property |
view:Matrix3D
[read-only] protected function get view():Matrix3D
ShadowBase | () | Constructor |
public function ShadowBase()
buildOthoGraphicsMatrix | () | method |
protected function buildOthoGraphicsMatrix(right:Number, left:Number, top:Number, bottom:Number, near:Number, far:Number):Matrix3D
The othoGraphicsMatrix which has a center in the middle of the screen, so right top corner is (n,n), left bottom corner is(-n,-n); all params also indicates the range in the world space.
Parameters
right:Number | |
left:Number | |
top:Number | |
bottom:Number | |
near:Number | |
far:Number |
Matrix3D — matrix3D incetance
|
clone | () | method |
NORMAL | Constant |
public static const NORMAL:int = 0
PCF | Constant |
public static const PCF:int = 1