Click or drag to resize
AB4D logo

CustomRenderableNode Class

CustomRenderableNode is a SceneNode that can be used to fully customize the rendering process. This can be done with creating the CustomRenderableNode object with a Func that create a custom RenderablePrimitiveBase object that is then added to the rendering queue. The CustomRenderableNode object can be also created with a custom Action that is called when this SceneNode needs to be rendered (this creates CustomRenderablePrimitive object and adds it to the rendering queue).
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXSceneResource
        Ab3d.DirectXSceneNode
          Ab3d.DirectXObjectNode
            Ab3d.DirectXCustomRenderableNode

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class CustomRenderableNode : ObjectNode

The CustomRenderableNode type exposes the following members.

Constructors
 NameDescription
Public methodCustomRenderableNode(RenderablePrimitiveBase, Bounds, Object) Constructor that takes custom RenderablePrimitiveBase as parameter.
Public methodCustomRenderableNode(ActionRenderingContext, CustomRenderableNode, Object, Bounds, Object, Material) Constructor that takes custom Action as parameter. The action is called to provide custom rendering logic.
Top
Properties
 NameDescription
Public propertyInitializeResourcesAction Gets or sets an Action that is called when DXEngine's resources that are used by this CustomRenderableNode need to be created. The Action is called with two parameters: this CustomRenderableNode and DXScene
Public propertyUpdateAction Gets or sets an Action that is called when the Update method is called on this SceneNode. The action is called with this CustomRenderableNode as parameter.
Top
Methods
 NameDescription
Public methodCollectRenderableObjects The task of the CollectRenderableObjects method is to create objects derived from RenderablePrimitiveBase and add them to the appropriate RenderingQueue. This method is called at the beginning of RenderScene method call but only when the scene was significantly changed (number of SceneNodes is changed, material is significantly changed, etc.)
(Overrides ObjectNodeCollectRenderableObjects)
Public methodUpdate Update method is called on each update phase (before render phase)
(Overrides SceneNodeUpdate)
Public methodUpdateBounds Updates the bounds of this SceneNode if the dirty flags indicates that the bounds could be changed of if the forceUpdate parameter is set to true
(Overrides SceneNodeUpdateBounds(Boolean))
Top
Fields
 NameDescription
Public fieldOriginalObject OriginalObject that was used to create this CustomRenderablePrimitive (can be null).
Top
Extension Methods
 NameDescription
Public Extension MethodGetGeometryModel3D Returns a WPF's GeometryModel3D that was used to create the specified sceneNode. If the sceneNode does not define a GeometryModel3D object, then null is returned.
(Defined by Extensions)
Public Extension MethodGetModel3D Returns a WPF's Model3D that was used to create the specified sceneNode. If the sceneNode does not define a Model3D object, then null is returned.
(Defined by Extensions)
Public Extension MethodGetModelVisual3D Returns a WPF's ModelVisual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true). If a SceneNode that defines a ModelVisual3D is not found, then null is returned.
(Defined by Extensions)
Public Extension MethodGetVisual3D Returns a WPF's Visual3D that was used to create the specified sceneNode or any parent SceneNode (in case searchParentSceneNodes is true). If a SceneNode that defines a Visual3D is not found, then null is returned.
(Defined by Extensions)
Top
See Also