Click or drag to resize
AB4D logo

WpfModel3DGroupNode Class

WpfModel3DGroupNode represents a WPF's Model3DGroup as a SceneNode and can render the Model3DGroup with DXEngine. WpfModel3DGroupNode creates child SceneNode objects from the Children of the Model3DGroup. It can dynamically add new SceneNodes or remove them to reflect the changes in the Model3DGroup.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXSceneResource
        Ab3d.DirectXSceneNode
          Ab3d.DirectXObjectNode
            Ab3d.DirectX.ModelsBaseWpfObjectNode
              Ab3d.DirectX.ModelsWpfModel3DGroupNode

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public class WpfModel3DGroupNode : BaseWpfObjectNode

The WpfModel3DGroupNode type exposes the following members.

Constructors
 NameDescription
Public methodWpfModel3DGroupNode(Model3DGroup, String) Initializes a new instance of the WpfModel3DGroupNode class.
Public methodWpfModel3DGroupNode(Model3DGroup, DictionaryObject, String, String, Effect) Initializes a new instance of the WpfModel3DGroupNode class.
Public methodWpfModel3DGroupNode(Model3DGroup, DictionaryString, Object, String, Effect) Initializes a new instance of the WpfModel3DGroupNode class.
Top
Properties
 NameDescription
Public propertyMaterialEffect Gets the Effect that will be used as default effect to generate the child SceneNodes.
Public propertyModel3DGroup Gets the WPF's Model3DGroup or GeometryModel3D that was used to create this WpfModel3DGroupNode
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 methodRecreateChildNodes RecreateChildNodes method clears the existing child nodes and creates them again.
Public methodUpdate Update method is called on each update phase (before render phase)
(Overrides SceneNodeUpdate)
Top
Fields
 NameDescription
Public fieldIsCheckingChildrenForChanges Gets or sets a Boolean that specifies if on each Update call (on each WPF's Rendering event) WpfModel3DGroupNode is checking if fModel3DGroup.Children has changed. Default value is true.
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