Packagecom.yogurt3d.core.sceneobjects
Classpublic class Scene
InheritanceScene Inheritance EngineObject Inheritance Object
Implements IScene

IScene interface abstract type.



Public Properties
 PropertyDefined By
  cameraSet : Vector.<ICamera>
[read-only] ICamera objects added to this IScene instance (including hierarchical ones, children, grand children) in a one dimensional (flattened) vector.
Scene
  children : Vector.<ISceneObject>
[read-only] Top level children objects contained in this IScene instance
Scene
  lightSet : Vector.<ILight>
[read-only]
Scene
  objectSet : Vector.<ISceneObject>
[read-only] All objects added to this IScene instance (including hierarchical ones, children, grand children) in a one dimensional (flattened) vector.
Scene
  renderableSet : Vector.<ISceneObjectRenderable>
[read-only] ISceneObjectRenderable objects added to this IScene instance (including hierarchical ones, children, grand children) in a one dimensional (flattened) vector.
Scene
  sceneColor : uint
Scene
  sceneColorSplit : Vector.<Number>
[read-only]
Scene
  skyBox : SkyBox
Scene
 InheritedsystemID : String
[read-only] Automatically assigned id.
EngineObject
  triangleCount : int
[read-only]
Scene
 InheriteduserID : String
Identification string can be assigned by developer to identify objects.
EngineObject
Public Methods
 MethodDefined By
  
Scene(_initInternals:Boolean = true)
Scene
  
addChild(_value:ISceneObject):void
Adds given child object into this IScene instance
Scene
 Inherited
Creates new clone object.
EngineObject
  
containsChild(_child:ISceneObject, _recursive:Boolean = false):Boolean
Determines whether the specified ISceneObject instance is a child of the IScene instance.
Scene
 Inherited
dispose():void
Removes all external referances and clears internals.
EngineObject
  
Returns child object that has given systemID.
Scene
  
Returns child object that has given userID.
Scene
 Inherited
Removes all external referances and clears internals.
EngineObject
  
Removes given child object from this IScene instance
Scene
  
removeChildBySystemID(_value:String):void
Removes child object that has given systemID from this IScene instance.
Scene
  
removeChildByUserID(_value:String):void
Removes child object that has given userID from this IScene instance.
Scene
 Inherited
renew():void
Renews object internals and resets properties of object.
EngineObject
 Inherited
toString():String
Returns a string identifier on this object
EngineObject
Protected Methods
 MethodDefined By
  
[override]
Scene
  
[override]
Scene
Property Detail
cameraSetproperty
cameraSet:Vector.<ICamera>  [read-only]

ICamera objects added to this IScene instance (including hierarchical ones, children, grand children) in a one dimensional (flattened) vector.


Implementation
    public function get cameraSet():Vector.<ICamera>
childrenproperty 
children:Vector.<ISceneObject>  [read-only]

Top level children objects contained in this IScene instance


Implementation
    public function get children():Vector.<ISceneObject>
lightSetproperty 
lightSet:Vector.<ILight>  [read-only]


Implementation
    public function get lightSet():Vector.<ILight>
m_rootObjectproperty 
YOGURT3D_INTERNAL var m_rootObject:ISceneObjectContainer

objectSetproperty 
objectSet:Vector.<ISceneObject>  [read-only]

All objects added to this IScene instance (including hierarchical ones, children, grand children) in a one dimensional (flattened) vector.


Implementation
    public function get objectSet():Vector.<ISceneObject>
renderableSetproperty 
renderableSet:Vector.<ISceneObjectRenderable>  [read-only]

ISceneObjectRenderable objects added to this IScene instance (including hierarchical ones, children, grand children) in a one dimensional (flattened) vector.


Implementation
    public function get renderableSet():Vector.<ISceneObjectRenderable>
sceneColorproperty 
sceneColor:uint


Implementation
    public function get sceneColor():uint
    public function set sceneColor(value:uint):void
sceneColorSplitproperty 
sceneColorSplit:Vector.<Number>  [read-only]


Implementation
    public function get sceneColorSplit():Vector.<Number>
skyBoxproperty 
skyBox:SkyBox


Implementation
    public function get skyBox():SkyBox
    public function set skyBox(value:SkyBox):void
triangleCountproperty 
triangleCount:int  [read-only]


Implementation
    public function get triangleCount():int
Constructor Detail
Scene()Constructor
public function Scene(_initInternals:Boolean = true)



Parameters
_initInternals:Boolean (default = true)
Method Detail
addChild()method
public function addChild(_value:ISceneObject):void

Adds given child object into this IScene instance

Parameters

_value:ISceneObject

containsChild()method 
public function containsChild(_child:ISceneObject, _recursive:Boolean = false):Boolean

Determines whether the specified ISceneObject instance is a child of the IScene instance.

Parameters

_child:ISceneObject — Child to check.
 
_recursive:Boolean (default = false) — If this argument is false the check only works for the highest hierarchy. If argument is set true the check will work for all children containers.

Returns
Boolean
getChildBySystemID()method 
public function getChildBySystemID(_value:String):ISceneObject

Returns child object that has given systemID.

Parameters

_value:String

Returns
ISceneObject
getChildByUserID()method 
public function getChildByUserID(_value:String):ISceneObject

Returns child object that has given userID.

Parameters

_value:String

Returns
ISceneObject
initInternals()method 
override protected function initInternals():void

removeChild()method 
public function removeChild(_value:ISceneObject):void

Removes given child object from this IScene instance

Parameters

_value:ISceneObject

removeChildBySystemID()method 
public function removeChildBySystemID(_value:String):void

Removes child object that has given systemID from this IScene instance.

Parameters

_value:String

removeChildByUserID()method 
public function removeChildByUserID(_value:String):void

Removes child object that has given userID from this IScene instance.

Parameters

_value:String

trackObject()method 
override protected function trackObject():void