Click or drag to resize
Node Class
A basic scene node with transformations. You can attach renderable entities to it, or child nodes that will inherit its transformations.
Inheritance Hierarchy

Namespace:  GeonBit.Core.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Node

The Node type exposes the following members.

Constructors
  NameDescription
Public methodNode
Initializes a new instance of the Node class
Top
Properties
  NameDescription
Public propertyCanHoldEntities
Get if this node can hold renderable entities (if not, it means this node is just for child nodes, and not for entities.
Public propertyEmpty
Return true if this node is empty.
Public propertyHaveEntities
Get if this node have any entities in it.
Public propertyLastDrawFrame
Last frame this node was drawn.
Public propertyLocalTransformations
Return local transformations matrix (note: will recalculate if needed).
Public propertyParent
Parent node.
Public propertyPosition
Get / Set node local position.
Public propertyPositionX
Alias to access position X directly.
Public propertyPositionY
Alias to access position Y directly.
Public propertyPositionZ
Alias to access position Z directly.
Public propertyRotation
Get / Set node local rotation.
Public propertyRotationOrder
Get / Set the order in which we apply local rotation in this node.
Public propertyRotationType
Get / Set the rotation type (euler / quaternion).
Public propertyRotationX
Alias to access rotation X directly.
Public propertyRotationY
Alias to access rotation Y directly.
Public propertyRotationZ
Alias to access rotation Z directly.
Public propertyScale
Get / Set node local scale.
Public propertyScaleX
Alias to access scale X directly.
Public propertyScaleY
Alias to access scale Y directly.
Public propertyScaleZ
Alias to access scale Z directly.
Public propertyTransformationsOrder
Get / Set the order in which we apply local transformations in this node.
Public propertyTransformVersion
Transformation version is a special identifier that changes whenever the world transformations of this node changes. Its not necessarily a sequence, but if you check this number for changes every frame its a good indication of transformation change.
Public propertyUseExternalTransformations
If true, it means transformations are coming from external source (like a physical body). If you set it true, this node will no longer calculate transformations on its own, and you'll need to use 'SetWorldTransformsMatrix()' to update the world matrix.
Public propertyVisible
Is this node currently visible?
Public propertyWasDrawnThisFrame
Get if this node was drawn in current frame.
Public propertyWorldPosition
Get position in world space.
Public propertyWorldRotation
Get Rotastion in world space.
Public propertyWorldScale
Get Scale in world space.
Public propertyWorldTransformations
Return world transformations matrix (note: will recalculate if needed).
Top
Methods
  NameDescription
Public methodAddChildNode
Add a child node to this node.
Public methodAddEntity
Add an entity to this node.
Public methodBuildTransformationsMatrix
Build matrix from node transformations.
Public methodClone
Clone this scene node.
Public methodDraw
Draw the node and its children.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFindChildNode
Find and return first child node by identifier.
Public methodForceFullUpdate
Force this node to update transformation and recalculate bounding box and sphere.
Public methodGetBoundingBox
Get up-to-date bounding box of this node and all its child nodes, and recalculate it if needed.
Public methodGetBoundingSphere
Get up-to-date bounding sphere of this node and all its child nodes, and recalculate it if needed.
Public methodGetDebugString
Get a debug string representation of this scene node and its children.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodOnChildWorldMatrixChange
Called every time one of the child nodes recalculate world transformations.
Public methodRemoveChildNode
Remove a child node from this node.
Public methodRemoveEntity
Remove an entity from this node.
Public methodRemoveFromParent
Remove this node from its parent.
Public methodResetTransformations
Reset all local transformations.
Public methodSetWorldTransforms
Set world transformations from external source. To prevent the node from overriding these changes, set 'UseExternalTransformations' to true.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform
Transform a given transformations and return the result matrix.
Public methodTranslate
Move position by vector.
Public methodUpdateBoundingBox
Recalculate bounding box of this node and all its child nodes.
Public methodUpdateBoundingSphere
Calculate bounding sphere and return results. This also set internal caching.
Public methodUpdateTransformations
Update transformations for this node and its children, if needed.
Top
Fields
  NameDescription
Public fieldStatic memberBoundingShapesTtl
For how many rendering frames bounding box / bounding sphere hold in cache.
Public fieldDisableCulling
Is culling enabled for this scene node. Note: while this is not used for based node types, its a generic property for inheriting nodes.
Public fieldIdentifier
Optional identifier we can give to nodes.
Public fieldUserData
Optional user data we can attach to nodes.
Top
See Also