Options
All
  • Public
  • Public/Protected
  • All
Menu

This interface describes the bare minimum for a node of our Scenegraph.

Hierarchy

  • INode

Implemented by

Index

Properties

animations

animations: string[]

Holds the attached animations.

children

children: INode[]

Holds the next hierarchical stage of the SceneGraph lying beneath this node.

transform

transform: Matrix4

Transformation without animations.

transformation

transformation: Matrix4

Transformation of the current node, with animations.

Methods

accept

  • This method is used with the visitor to render the node and it's underlying children.

    Parameters

    • visitor: IVisitor

      The visitor must be able to accept the nodes and render them.

    Returns void

addAnimation

  • addAnimation(animation: string): INode
  • Attaches a new animation to this node.

    Parameters

    • animation: string

      Key of the animation to attach.

    Returns INode

addChild

  • Adds a node beneath this one to the Scenegraph.

    Parameters

    • node: INode

      Node to be added after this node.

    Returns INode

removeChild

  • removeChild(node: INode): boolean
  • Deletes a Node from the Scenegraph. A path from this node to the one to be removed must exist! Call from root-node to be sure to remove the node! Also deletes any children attached to the node!

    Parameters

    • node: INode

      Node to be removed.

    Returns boolean

    Returns true if one ore more nodes were deleted, false otherwise.

Generated using TypeDoc