| Package | alternativa.engine3d.containers |
| Class | public class LODContainer |
| Inheritance | LODContainer Object3DContainer Object3D |
| Method | Defined by | ||
|---|---|---|---|
![]() |
Adds a child Object3D instance to this Object3DContainer instance.
| Object3DContainer | |
![]() |
Adds a child Object3D instance to this Object3DContainer instance.
| Object3DContainer | |
![]() |
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 | |
|
Adds child object and sets distance to it.
| LODContainer | ||
![]() |
calculateBounds():void
Calculates object bounds in its space.
| Object3D | |
![]() |
calculateResolution(textureWidth:int, textureHeight:int, type:int = 1, matrix:Matrix3D = null):Number
Calculates how many units of 3D space correspond to one pixel of texture.
| Object3D | |
|
Returns an object that is an exact copy of the original object.
| LODContainer | ||
![]() |
Determines whether the specified display object is a child of the Object3DContainer instance or the instance itself.
| Object3DContainer | |
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| Object3D | |
![]() |
getChildAt(index:int):Object3D
Returns the child object instance that exists at the specified index.
| Object3DContainer | |
![]() |
getChildByName(name:String):Object3D
Returns the child object that exists with the specified name.
| Object3DContainer | |
|
getChildDistance(child:Object3D):Number
Returns the distance of supplied object.
| LODContainer | ||
![]() |
getChildIndex(child:Object3D):int
Returns the index position of a child object instance.
| Object3DContainer | |
![]() |
globalToLocal(point:Vector3D):Vector3D
Transforms a point from global space to local spce of the object.
| 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, excludedObjects:Dictionary = null, camera:Camera3D = null):RayIntersectionData
Searches for the ray intersection.
| LODContainer | ||
![]() |
localToGlobal(point:Vector3D):Vector3D
Transforms a point from local space of object to global spce.
| Object3D | |
![]() |
Removes the specified child object from the child list of the Object3DContainer instance.
| Object3DContainer | |
![]() |
removeChildAt(index:int):Object3D
Removes a child object from the specified index position in the child list of the Object3DContainer.
| Object3DContainer | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| Object3D | |
|
setChildDistance(child:Object3D, distance:Number):void
Changes the distance of an existing child in the container.
| LODContainer | ||
![]() |
setChildIndex(child:Object3D, index:int):void
Changes the position of an existing child in the Object3DContainer.
| Object3DContainer | |
![]() |
Swaps the order of the two specified child objects.
| Object3DContainer | |
![]() |
swapChildrenAt(index1:int, index2:int):void
Swaps the order of the child objects at the two specified index positions in the child list.
| Object3DContainer | |
![]() |
toString():String
Returns the string presentation 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 | |
| addLOD | () | method |
public function addLOD(lod:Object3D, distance:Number):Object3DAdds child object and sets distance to it.
Parameterslod:Object3D — The Object3D instance to add as a child of this Object3DContainer instance. |
|
distance:Number — Distance. |
Object3D — Object3D instance. |
| clone | () | method |
public override function clone():Object3DReturns an object that is an exact copy of the original object.
ReturnsObject3D — Original object clone. |
| getChildDistance | () | method |
public function getChildDistance(child:Object3D):NumberReturns the distance of supplied object.
Parameterschild:Object3D — The child object instance for which you want to change the index number. |
Number — Distance. |
| intersectRay | () | method |
public override function intersectRay(origin:Vector3D, direction:Vector3D, excludedObjects:Dictionary = null, camera:Camera3D = null):RayIntersectionDataSearches for the ray intersection.
Parametersorigin:Vector3D — Ray origin. |
|
direction:Vector3D — Ray direction. |
|
excludedObjects:Dictionary (default = null) — The objects that are keys of this dictionary will be exluded from intersection test. |
|
camera:Camera3D (default = null) — The camera for Sprite3D objects intersection test. |
RayIntersectionData — Intersection test result - RayIntersectionData object. If there is no intersection the value of null will be returned. |
| setChildDistance | () | method |
public function setChildDistance(child:Object3D, distance:Number):voidChanges the distance of an existing child in the container.
Parameterschild:Object3D — The child object instance for which you want to change the index number. |
|
distance:Number — Distance. |