Click or drag to resize
CullingNode Class
A base culling node class for nodes capable of culling optimization.
Inheritance Hierarchy

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

The CullingNode type exposes the following members.

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.
(Inherited from Node.)
Public propertyEmpty
Return true if this node is empty.
(Inherited from Node.)
Public propertyHaveEntities
Get if this node have any entities in it.
(Inherited from Node.)
Public propertyIsInScreen
Get if this node is currently visible in camera.
Public propertyIsPartlyInScreen
Get if this node is partly inside screen (eg intersects with camera frustum).
Public propertyLastDrawFrame
Last frame this node was drawn.
(Inherited from Node.)
Public propertyLocalTransformations
Return local transformations matrix (note: will recalculate if needed).
(Inherited from Node.)
Public propertyParent
Parent node.
(Inherited from Node.)
Public propertyPosition
Get / Set node local position.
(Inherited from Node.)
Public propertyPositionX
Alias to access position X directly.
(Inherited from Node.)
Public propertyPositionY
Alias to access position Y directly.
(Inherited from Node.)
Public propertyPositionZ
Alias to access position Z directly.
(Inherited from Node.)
Public propertyRotation
Get / Set node local rotation.
(Inherited from Node.)
Public propertyRotationOrder
Get / Set the order in which we apply local rotation in this node.
(Inherited from Node.)
Public propertyRotationType
Get / Set the rotation type (euler / quaternion).
(Inherited from Node.)
Public propertyRotationX
Alias to access rotation X directly.
(Inherited from Node.)
Public propertyRotationY
Alias to access rotation Y directly.
(Inherited from Node.)
Public propertyRotationZ
Alias to access rotation Z directly.
(Inherited from Node.)
Public propertyScale
Get / Set node local scale.
(Inherited from Node.)
Public propertyScaleX
Alias to access scale X directly.
(Inherited from Node.)
Public propertyScaleY
Alias to access scale Y directly.
(Inherited from Node.)
Public propertyScaleZ
Alias to access scale Z directly.
(Inherited from Node.)
Public propertyShouldCull
Return if we should cull this node in current frame.
Public propertyTransformationsOrder
Get / Set the order in which we apply local transformations in this node.
(Inherited from 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.
(Inherited from Node.)
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.
(Inherited from Node.)
Public propertyVisible
Is this node currently visible?
(Inherited from Node.)
Public propertyWasDrawnThisFrame
Get if this node was drawn in current frame.
(Inherited from Node.)
Public propertyWorldPosition
Get position in world space.
(Inherited from Node.)
Public propertyWorldRotation
Get Rotastion in world space.
(Inherited from Node.)
Public propertyWorldScale
Get Scale in world space.
(Inherited from Node.)
Public propertyWorldTransformations
Return world transformations matrix (note: will recalculate if needed).
(Inherited from Node.)
Top
Methods
  NameDescription
Public methodAddChildNode
Add a child node to this node.
(Inherited from Node.)
Public methodAddEntity
Add an entity to this node.
(Inherited from Node.)
Public methodBuildTransformationsMatrix
Build matrix from node transformations.
(Inherited from Node.)
Public methodClone
Clone this scene node.
(Inherited from Node.)
Public methodDraw
Draw the node and its children.
(Inherited from Node.)
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.
(Inherited from Node.)
Public methodForceFullUpdate
Force this node to update transformation and recalculate bounding box and sphere.
(Inherited from Node.)
Public methodGetBoundingBox
Get up-to-date bounding box of this node and all its child nodes, and recalculate it if needed.
(Inherited from Node.)
Public methodGetBoundingSphere
Get up-to-date bounding sphere of this node and all its child nodes, and recalculate it if needed.
(Inherited from Node.)
Public methodGetDebugString
Get a debug string representation of this scene node and its children.
(Inherited from Node.)
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.
(Overrides NodeOnChildWorldMatrixChange(Node).)
Public methodRemoveChildNode
Remove a child node from this node.
(Inherited from Node.)
Public methodRemoveEntity
Remove an entity from this node.
(Inherited from Node.)
Public methodRemoveFromParent
Remove this node from its parent.
(Inherited from Node.)
Public methodResetTransformations
Reset all local transformations.
(Inherited from Node.)
Public methodSetWorldTransforms
Set world transformations from external source. To prevent the node from overriding these changes, set 'UseExternalTransformations' to true.
(Inherited from Node.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform
Transform a given transformations and return the result matrix.
(Inherited from Node.)
Public methodTranslate
Move position by vector.
(Inherited from Node.)
Public methodUpdateBoundingBox
Recalculate bounding box of this node and all its child nodes.
(Inherited from Node.)
Public methodUpdateBoundingSphere
Calculate bounding sphere and return results. This also set internal caching.
(Inherited from Node.)
Public methodUpdateTransformations
Update transformations for this node and its children, if needed.
(Inherited from Node.)
Top
Fields
  NameDescription
Public fieldStatic memberCurrentCameraFrustum
The camera frustum to cull by. You need to update this every time the camera frustum changes in order to make the culling work currectly.
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.
(Inherited from Node.)
Public fieldIdentifier
Optional identifier we can give to nodes.
(Inherited from Node.)
Public fieldUserData
Optional user data we can attach to nodes.
(Inherited from Node.)
Top
See Also