| Package | org.papervision3d.core.proto |
| Class | public class SceneObject3D |
| Inheritance | SceneObject3D DisplayObjectContainer3D flash.events.EventDispatcher |
| Subclasses | Scene3D |
| Property | Defined by | ||
|---|---|---|---|
![]() | children : Object
Returns the children object.
| DisplayObjectContainer3D | |
| container : Sprite
The Sprite that you draw into when rendering.
| SceneObject3D | ||
| materials : MaterialsList
It contains a list of materials in the scene.
| SceneObject3D | ||
![]() | numChildren : int
Returns the number of children of this object.
| DisplayObjectContainer3D | |
| objects : Array
It contains a list of DisplayObject3D objects in the scene.
| SceneObject3D | ||
![]() | root : DisplayObjectContainer3D
[read-only] [read-only] The scene, which is the top-most displayObjectContainer3D in the tree structure.
| DisplayObjectContainer3D | |
| stats : Object
An object that contains total and current statistics.
| SceneObject3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
SceneObject3D(container:Sprite)
The SceneObject3D class lets you create scene classes.
| SceneObject3D | ||
|
Adds a child DisplayObject3D instance to the scene.
| SceneObject3D | ||
![]() |
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | |
![]() |
addCollada(filename:String, materials:MaterialsList = null, scale:Number = 1):void
This method has been deprecated.
| DisplayObjectContainer3D | |
![]() |
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | |
![]() |
getChildByName(name:String):DisplayObject3D
Returns the child display object that exists with the specified name.
| DisplayObjectContainer3D | |
|
Removes the specified child DisplayObject3D instance from the child and object list of the scene.
| SceneObject3D | ||
![]() |
removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | |
|
renderCamera(camera:CameraObject3D):void
Generates an image from the camera's point of view and the visible models of the scene.
| SceneObject3D | ||
![]() |
toString():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | |
| Method | Defined by | ||
|---|---|---|---|
|
renderObjects(sort:Boolean):void
[internal-use]
| SceneObject3D | ||
| container | property |
public var container:SpriteThe Sprite that you draw into when rendering.
| materials | property |
public var materials:MaterialsListIt contains a list of materials in the scene.
| objects | property |
public var objects:ArrayIt contains a list of DisplayObject3D objects in the scene.
| stats | property |
public var stats:ObjectAn object that contains total and current statistics.
| SceneObject3D | () | constructor |
public function SceneObject3D(container:Sprite)The SceneObject3D class lets you create scene classes.
Parameterscontainer:Sprite — The Sprite that you draw into when rendering. If not defined, each object must have it's own private container.
|
| addChild | () | method |
public override function addChild(child:DisplayObject3D, name:String = null):DisplayObject3DAdds a child DisplayObject3D instance to the scene. If you add a GeometryObject3D symbol, a new DisplayObject3D instance is created. [TODO: If you add a child object that already has a different display object container as a parent, the object is removed from the child list of the other display object container.]
Parameterschild:DisplayObject3D — The GeometryObject3D symbol or DisplayObject3D instance to add as a child of the scene.
|
|
name:String (default = null) — An optional name of the child to add or create. If no name is provided, the child name will be used.
|
DisplayObject3D —
The DisplayObject3D instance that you have added or created.
|
| removeChild | () | method |
public override function removeChild(child:DisplayObject3D):DisplayObject3DRemoves the specified child DisplayObject3D instance from the child and object list of the scene.
[TODO: The parent property of the removed child is set to null, and the object is garbage collected if no other references to the child exist.] The garbage collector is the process by which Flash Player reallocates unused memory space. When a variable or object is no longer actively referenced or stored somewhere, the garbage collector sweeps through and wipes out the memory space it used to occupy if no other references to it exist. Parameterschild:DisplayObject3D — The DisplayObject3D instance to remove.
|
DisplayObject3D —
The DisplayObject3D instance that you pass in the child parameter.
|
| renderCamera | () | method |
public function renderCamera(camera:CameraObject3D):voidGenerates an image from the camera's point of view and the visible models of the scene.
Parameterscamera:CameraObject3D — camera to render from.
|
| renderObjects | () | method |
protected function renderObjects(sort:Boolean):void[internal-use]
Parameterssort:Boolean |