ReadonlyappendReadonlymtxThe number of nodes of the whole branch including this node and all successors
The radius of the bounding sphere in world dimensions enclosing the geometry of this node and all successors in the branch
Shortcut to retrieve this nodes ComponentTransform
Shortcut to retrieve the local Matrix4x4 attached to this nodes ComponentTransform
Fails if no ComponentTransform is attached
Returns the number of children attached to this
Returns an iterator over this node and all its descendants in the graph below
De- / Activate this node. Inactive nodes will not be processed by the renderer.
Adds an event listener to the node. The given handler will be called when a matching event is passed to the node. Deviating from the standard EventTarget, here the _handler must be a function and _capture is the only option.
Attach the given component to this node. Identical to addComponent
Broadcasts a synthetic event to this node and from there to all nodes deeper in the hierarchy, invoking matching handlers of the nodes listening to the capture phase. Watch performance when there are many nodes involved
Recreates this instance of Serializable with the information from the given Serialization.
Detach the given component from this node. Identical to removeComponent
Dispatches a synthetic event to target. This implementation always returns true (standard: return true only if either event's cancelable attribute value is false or its preventDefault() method was not invoked) The event travels into the hierarchy to this node dispatching the event, invoking matching handlers of the nodes ancestors listening to the capture phase, than the matching handler of the target node in the target phase, and back out of the hierarchy in the bubbling phase, invoking appropriate handlers of the anvestors
Dispatches a synthetic event to target without travelling through the graph hierarchy neither during capture nor bubbling phase
Returns the position of the node in the list of children or -1 if not found
Returns a list of all components attached to this node, independent of type.
Traces back the ancestors of this node and returns the first.
Returns the readonly list of children. Create a copy to modify it.
Returns an array of references to childnodes with the supplied name.
Returns the first descendant with the supplied name. Depth first search.
Generator yielding the node and all decendants in the graph below for iteration Inactive nodes and their descendants can be filtered
Returns a reference to this nodes parent node
Returns true if this node is a descendant of the given node, directly or indirectly, else false
Returns true if the given timestamp matches the last update timestamp this node underwent, else false
Removes all references in the list of children
Removes the given component from the node, if it was attached, and sets its parent to null.
Removes all components of the given class attached to this node.
Removes an event listener from the node. The signature must match the one used with addEventListener
Returns a Serialization of this object.
Creates a string as representation of this node and its descendants
Returns a string representation of an object.
Called by the render system during Render.prepare. Override this to provide the render system with additional render data.
Called by the render system during Render.draw. Override this to provide the render system with additional render data.
Optional_mtxWorldOverride: Matrix4x4StaticFINDStaticPATH_
Represents a node in the scenetree.
Authors
Jascha Karagöl, HFU, 2019 | Jirka Dell'Oro-Friedl, HFU, 2019
Link
https://github.com/hs-furtwangen/FUDGE/wiki/Graph