Node class

represents a hierarchy of objects that well be rendered by rendered RenderProgram. Typically that hierarchy is a tree but DAGs are supported. Only leaf Nodes will cause draw calls by providing MeshData and Material. Non leaf Nodes are just containers for other Nodes Each Node is a Spatial so it be re-oriented with respect to its parent

Inheritance

Constructors

Node(String name, MeshData? _meshData, Material? _material)
Node.Container(String name, [Node? child])

Properties

children List<Node>
final
debug bool
getter/setter pairinherited
enabled bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
material Material
no setter
meshData MeshData
getter/setter pair
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transform → Matrix4
finalinherited

Methods

add(Node node) → void
addPos(double x, double y, double z) → void
inherited
addPosFromVec(Vector3 vector) → void
inherited
getBack() → Vector3
inherited
getEyePosition() → Vector3
inherited
getPos() → Vector3
inherited
getRight() → Vector3
inherited
getUp() → Vector3
inherited
getViewMatrix(Matrix4 m) → void
inherited
lookAt(Vector3 target, [Vector3? up]) → void
inherited
lookDown(double amount) → void
inherited
lookLeft(double amount) → void
inherited
lookRight(double amount) → void
inherited
lookUp(double amount) → void
inherited
moveBackward(double amount) → void
inherited
moveDown(double amount) → void
inherited
moveForward(double amount) → void
inherited
moveLeft(double amount) → void
inherited
moveRight(double amount) → void
inherited
moveUp(double amount) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollLeft(double amount) → void
inherited
rollRight(double amount) → void
inherited
rotX(double angle) → void
inherited
rotY(double angle) → void
inherited
rotZ(double angle) → void
inherited
setPos(double x, double y, double z) → void
inherited
setPosFromSpherical(double radius, double azimuth, double polar) → void
inherited
setPosFromVec(Vector3 vector) → void
inherited
SomethingToDraw() bool
toString() String
A string representation of this object.
override
translate(double x, double y, double z, [double factor = 1.0]) → void
inherited
translateFromVec(Vector3 vector, [double factor = 1.0]) → void
inherited
UpdateModelMatrix(Matrix4 parent) → Matrix4
UpdateTransforms(UniformGroup transforms) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited