Click or drag to resize
AB4D logo

ContentVisual3D Class

ContentVisual3D class is showing a GeometryModel3D or a Model3DGroup that is specified to its Content property or other Visual3D objects that are added to its Children collection. The class is very similar to standard WPF's ModelVisual3D. A difference is that ContentVisual3D also supports IsVisible property. This means that when rendered with Ab3d.DXEngine the processing of IsVisible property can be optimized (DirectX resources stay im memory when object is hidden and can be therefore shown very fast).
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsContentVisual3D
              Ab3d.VisualsAxesBoxVisual3D
              Ab3d.VisualsBaseAxisWithLabelsVisual3D

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class ContentVisual3D : BaseVisual3D

The ContentVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodContentVisual3D Constructor
Public methodContentVisual3D(Model3D) Constructor that takes GeometryModel3D or Model3DGroup
Public methodContentVisual3D(String) Constructor
Top
Methods
 NameDescription
Protected methodCreateModel Creates this Model3D
(Overrides BaseVisual3DCreateModel)
Protected methodOnIsVisibleChanged OnIsVisibleChanged is called when the value of IsActuallyVisible property is changed.
(Overrides BaseVisual3DOnIsVisibleChanged(Boolean))
Protected methodOnVisualChildrenChangedCalled when the Visual3DCollection of the visual object is modified.
(Overrides Visual3DOnVisualChildrenChanged(DependencyObject, DependencyObject))
Top
Events
 NameDescription
Public eventChildrenChanged VisualChildrenChanged event in triggered when Children collection of this ContentVisual3D is changed.
Top
Extension Methods
 NameDescription
Public Extension MethodDumpHierarchy Display details about the hierarchy of Visual3D children to Debug console (for example to Visual Studio's Immediate window).
(Defined by Extensions)
Public Extension MethodForEachGeometryModel3D Performs the specified action on each GeometryModel3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodForEachVisual3D Performs the specified action on each ModelVisual3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodGetName Gets name of the Visual3D that was previously set by SetName extension method.
(Defined by Extensions)
Public Extension MethodSetName Sets Name property to Visual3D. Note that if name is not correct for WPF, it can be corrected (name must start with a letter or the underscore character (_), and must contain only letters, digits, or underscores). In this case the SetName method will set the corrected name to the object and return false (in this case you can call GetName to get the corrected name). True is returned when the original name is set to the object.
(Defined by Extensions)
Top
See Also