Package | twaver.threed.network |
Class | public class Overview |
Inheritance | Overview ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
Constructor. | Overview | ||
![]() | addLight(lp:LightProfile):void
Adds a light into the scene. | Network3D | |
![]() | addMouseOnCanvasListener(type:String, listener:Function):void | Network3D | |
![]() | addMouseOnElementListener(type:String, listener:Function):void | Network3D | |
![]() | applyCommonCamera(pos:Vector3D, panAngle:Number = 180, tiltAngle:Number = 90):void
Applies the first-person view in the scene. | Network3D | |
![]() | applyDragCamera(panAngle:Number = -180, tiltAngle:Number = 10, distance:Number = 500):void
Applies the orbit camera on the scene. | Network3D | |
![]() | applyHoverCamera(panAngle:Number = -180, tiltAngle:Number = 10, distance:Number = 500):void
Applies the orbit camera on the scene. | Network3D | |
![]() | clearLights():void
Clears all the lights in the scene. | Network3D | |
![]() | dispose():void
Releases the resource occupied by a Network3D object, especially the Stage3D resource. | Network3D | |
![]() | getElementVertexAnimationNames(id:*):Array
Gets all the names of the animations defined in external model files. | Network3D | |
![]() | getEnviromentID():Object
Retrives the enviroment element's id. | Network3D | |
![]() | getHeightAt(x:Number, z:Number):Number
Gets the y value by specifing the x and z coordinate according the terrain of the scene. | Network3D | |
![]() | getReferenceTerrainID():Object
Retrives the terrain element's id. | Network3D | |
![]() | hideAxises():void
Hides the axises in the scene. | Network3D | |
![]() | isValidatedLocation(x:Number, y:Number, z:Number):Boolean
Decides whether the camera can be moved to the specified postion described by x, y and z coordinates. | Network3D | |
![]() | isVisible(element:Element):Boolean
Decides whether a twaver.Element can be seen in the 3D scene. | Network3D | |
![]() | refreshUIs():void | Network3D | |
![]() | removeLight(tag:String):void
Removes a light from the scene by specifing its tag. | Network3D | |
![]() | removeMouseOnCanvasListener(type:String, listener:Function):void | Network3D | |
![]() | removeMouseOnElementListener(type:String, listener:Function):void | Network3D | |
![]() | saveAsBitmapData():BitmapData
Exports the current visible scene to a BitmapData object. | Network3D | |
![]() | scrafe(d:Number):void | Network3D | |
![]() | setEnviromentByID(id:Object):void
Specifies which element is used as the enviroment. | Network3D | |
![]() | setReferenceTerrainByID(id:Object):void
Specifies which element is used as the terrain. | Network3D | |
![]() | shareSceneWith(n:Network3D):void
Shares the whole 3D scene with another Network3D object. | Network3D | |
![]() | showAxises():void
Displays the axises in the scene. | Network3D | |
![]() | updateLight(lp:LightProfile):void
Updates the properties of a light which has been added into the scene. | Network3D | |
![]() | walk(d:Number):void | Network3D |
Overview | () | Constructor |
public function Overview(network:Network3D, w:int, h:int)
Constructor.
Parametersnetwork:Network3D — Network3D instance, which shares the scene with the Overview component.
| |
w:int — int the width of the Overview component.
| |
h:int — int the height of the Overview component.
|
var overview:Overview = new Overview(network,128,128); overview.x = 10; overview.y = 10; network.addChild(overview);