Click or drag to resize
AB4D logo

WpfVisual3DCollectionNode Class

WpfVisual3DCollectionNode represents a SceneNode that is created from WPF's Visual3DCollection. WpfVisual3DCollectionNode creates child SceneNode objects from the Children of the Visual3DCollection. It can dynamically add new SceneNodes or remove them to reflect the changes in the Visual3DCollection.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXSharedDXResource
      Ab3d.DirectXSharedDXSceneResource
        Ab3d.DirectXSceneNode
          Ab3d.DirectXObjectNode
            Ab3d.DirectX.ModelsBaseWpfObjectNode
              Ab3d.DirectX.ModelsWpfVisual3DCollectionNode

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

The WpfVisual3DCollectionNode type exposes the following members.

Constructors
 NameDescription
Public methodWpfVisual3DCollectionNode(Visual3DCollection, String) Initializes a new instance of the WpfVisual3DCollectionNode class.
Public methodWpfVisual3DCollectionNode(Visual3DCollection, DictionaryObject, String, String, Effect) Initializes a new instance of the WpfVisual3DCollectionNode class.
Public methodWpfVisual3DCollectionNode(Visual3DCollection, DictionaryString, Object, String, Effect) Initializes a new instance of the WpfVisual3DCollectionNode class.
Top
Properties
 NameDescription
Public propertyIsCheckingForChanges Gets or sets a Boolean that specifies if WpfVisual3DCollectionNode is automatically checking for changes in the Visuals (Visual3DCollection). When true (by default), then in each Update call the Visual3DCollection is checked for changes. When false, then user should call NotifyChanges(ListVisual3D, ListVisual3D) method when the Visual3DCollection is changed. It is recommended to set this property before the InitializeResources is called (before this SceneNodes is added to parent SceneNode).
Public propertyMaterialEffect Gets or sets the Effect that will render this WpfGeometryModel3DNode. If null, a standard effect will be used (effect set in EffectsManager as standard effect)
Public propertyVisuals Gets the WPF's Visual3DCollection that is used to initialize this WpfVisual3DCollectionNode
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 methodNotifyChanges NotifyChanges method should be called when IsCheckingForChanges is set to false and it informs this WpfVisual3DCollectionNode about the changes in the Visual3DCollection. If both parameters are null, then all the child SceneNodes are recreated.
Public methodUpdate Update method is called on each update phase (before render phase)
(Overrides SceneNodeUpdate)
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