Package | alternativa.engine3d.lights |
Class | public class DirectionalLight |
Inheritance | DirectionalLight ![]() ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
DirectionalLight(color:uint)
Creates a new instance. | DirectionalLight | ||
![]() |
Adds given Object3D instance as a child to the end of this Object3D's children list. | Object3D | |
![]() |
Adds a child Object3D instance to this Object3D instance. | Object3D | |
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object
so that the listener receives notification of an event. | Object3D | |
calculateBoundBox():void [override]
Does not do anything. | DirectionalLight | ||
![]() | clearExcludedLights(updateChildren:Boolean = false):void
Resets list of lights excluded from lighting this object. | Object3D | |
[override]
Returns a copy of object. | DirectionalLight | ||
![]() |
Check if given object is child of this Object3D. | Object3D | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | Object3D | |
![]() | excludeLight(light:Light3D, updateChildren:Boolean = false):void
Disables lighting of the object by given light. | Object3D | |
![]() | getChildAt(index:int):Object3D
Returns the child Object3D instance that exists at the specified index. | Object3D | |
![]() | getChildByName(name:String):Object3D
Returns child Object3D instance with given name. | Object3D | |
![]() | getChildIndex(child:Object3D):int
Returns index of given child Object3D instance. | Object3D | |
![]() | getResources(hierarchy:Boolean = false, resourceType:Class = null):Vector.<Resource>
Gather the resources of this Object3D. | Object3D | |
![]() | globalToLocal(point:Vector3D):Vector3D
Converts the Vector3D object from the root Object3D (global) coordinates to the local Object3D's own coordinates. | Object3D | |
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | Object3D | |
![]() | intersectRay(origin:Vector3D, direction:Vector3D):RayIntersectionData
Searches for the intersection of an Object3D and given ray, defined by origin and direction. | Object3D | |
![]() | localToGlobal(point:Vector3D):Vector3D
Converts the Vector3D object from the Object3D's own (local) coordinates to the root Object3D (global) coordinates. | Object3D | |
lookAt(x:Number, y:Number, z:Number):void
Sets direction of DirectionalLight to given coordinates. | DirectionalLight | ||
![]() |
Removes the specified child Object3D instance from the child list of the
this Object3D instance. | Object3D | |
![]() | removeChildAt(index:int):Object3D
Removes a child Object3D from the specified index position in the child list of
the Object3D. | Object3D | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void
Removes child objects in given range of indexes. | Object3D | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | Object3D | |
![]() | setChildIndex(child:Object3D, index:int):void
Sets index for child Object3D instance. | Object3D | |
![]() |
Swaps index positions of two specified child objects. | Object3D | |
![]() | swapChildrenAt(index1:int, index2:int):void
Swaps index positions of two child objects by its index. | Object3D | |
![]() | toString():String
Returns the string representation of the specified object. | Object3D | |
![]() | willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | Object3D |
DirectionalLight | () | Constructor |
public function DirectionalLight(color:uint)
Creates a new instance.
Parameterscolor:uint — Color of light source.
|
calculateBoundBox | () | method |
override public function calculateBoundBox():void
Does not do anything.
clone | () | method |
override public function clone():Object3D
Returns a copy of object.
ReturnsObject3D — A copy of this Object3D .
|
lookAt | () | method |
public function lookAt(x:Number, y:Number, z:Number):void
Sets direction of DirectionalLight to given coordinates.
Parameters
x:Number | |
y:Number | |
z:Number |