| Package | sandy.core.scenegraph |
| Class | public class Group |
| Inheritance | Group Node |
This class is fianl, and can not be sub classed
This group binds together, but can not transform its children.
To transform collections of objects, you should add them to a transform group.
See also
| Method | Defined by | ||
|---|---|---|---|
|
Group(p_sName:String = "")
Creates a branch group.
| Group | ||
![]() |
Adds a new child to this node.
| Node | |
![]() |
addEventListener(p_sEvt:String, p_oL:*):void
Adds a listener for the specified event.
| Node | |
|
Tests this node against the camera frustum to get its visibility.
| Group | ||
![]() |
destroy():void
Delete this node and all its child nodes.
| Node | |
![]() |
getChildByName(p_sName:String, p_bRecurs:Boolean = false):Node
Returns the child node with the specified name.
| Node | |
![]() |
getChildFromId(p_nId:uint, p_bRecurs:Boolean = false):Node
Returns the child node with the specified id.
| Node | |
![]() |
getChildList():Array
Returns an array with all child nodes of this node.
| Node | |
![]() |
hasParent():Boolean
Tests if this node has a parent.
| Node | |
![]() |
Tests if the node passed in the argument is parent of this node.
| Node | |
![]() |
remove():void
Removes this node from the node tree, saving its child nodes.
| Node | |
![]() |
removeChildById(p_nId:Number):Boolean
Removes the child node with the specified id.
| Node | |
![]() |
removeChildByName(p_sName:String):Boolean
Removes the child node with the specified name.
| Node | |
![]() |
removeEventListener(p_sEvt:String, p_oL:*):void
Removes a listener for the specified event.
| Node | |
|
Renders all children of this group.
| Group | ||
![]() |
swapParent(p_oNewParent:Node):void
Moves this node to another parent node.
| Node | |
![]() |
toString():String
Returns a string representation of this object
| Node | |
![]() |
Updates this node.
| Node | |
| Group | () | constructor |
public function Group(p_sName:String = "")Creates a branch group.
Parametersp_sName:String (default = "") — A string identifier for this object
|
| cull | () | method |
public override function cull(p_oScene:Scene3D, p_oFrustum:Frustum, p_oViewMatrix:Matrix4, p_bChanged:Boolean):voidTests this node against the camera frustum to get its visibility.
If this node and its children are not within the frustum, the node is culled and will not be displayed.
This method also updates the bounding volumes to make the more accurate culling system possible.
First the bounding sphere is updated, and if intersecting,
the bounding box is updated to perform the more precise culling.
[MANDATORY] The update method must be called first!
Parametersp_oScene:Scene3D — The current scene
|
|
p_oFrustum:Frustum — The frustum of the current camera
|
|
p_oViewMatrix:Matrix4 — The view martix of the curren camera
|
|
p_bChanged:Boolean |
| render | () | method |
public override function render(p_oScene:Scene3D, p_oCamera:Camera3D):voidRenders all children of this group.
Parametersp_oScene:Scene3D — The current scene
|
|
p_oCamera:Camera3D — The current camera
|