Click or drag to resize
AB4D logo

BaseModelVisual3D Class

BaseModelVisual3D is a base abstract for all model Visual3D classes
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsBaseModelVisual3D
              More

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

The BaseModelVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodBaseModelVisual3D Constructor
Public methodBaseModelVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyBackMaterial Gets or sets the BackMaterial of the 3D model
Public propertyGeometry Gets the Geometry as MeshGeometry3D of this Visual3D
Public propertyMaterial Gets or sets the Material of the 3D model
Top
Methods
 NameDescription
Protected methodCreateModel Creates this Model3D
(Overrides BaseVisual3DCreateModel)
Protected methodGetGeometry Gets the MeshGeometry3D that is used for the Content of this Visual3D
Protected methodOnGeometryChanged OnGeometryChanged
Protected methodRefreshGeometry Recreates the Visual3D geometry
Protected methodRefreshMaterial Resets the Content's material
Protected methodSetGeometry Sets the Content of the Visual3D
Protected methodSetInnerTransform Sets the Transform to the GeometryModel3D used to display this Visual3D.
Public methodSubtract Subtracts the specified meshGeometry3D from this Visual3D object.
Protected methodUpdateContentIfNotInitializing Updates the content if the Visual3D is not initializing (between BeginInit and EndInit)
(Overrides BaseVisual3DUpdateContentIfNotInitializing)
Top
Events
 NameDescription
Public eventGeometryChanged Notify that the geometry was changed
Top
Fields
 NameDescription
Public fieldStatic memberBackMaterialProperty BackMaterialProperty
Public fieldStatic memberMaterialProperty MaterialProperty
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
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsBaseModelVisual3D
              Ab3d.VisualsArrowVisual3D
              Ab3d.VisualsBoxVisual3D
              Ab3d.VisualsCircleVisual3D
              Ab3d.VisualsConeTubeVisual3D
              Ab3d.VisualsConeVisual3D
              Ab3d.VisualsCylinderVisual3D
              Ab3d.VisualsHeightMapVisual3D
              Ab3d.VisualsHorizontalPlaneVisual3D
              Ab3d.VisualsIcosphereVisual3D
              Ab3d.VisualsPlaneVisual3D
              Ab3d.VisualsPyramidVisual3D
              Ab3d.VisualsSphereVisual3D
              Ab3d.VisualsSphericalZoneVisual3D
              Ab3d.VisualsTorusKnotVisual3D
              Ab3d.VisualsTrapezoidVisual3D
              Ab3d.VisualsTubeLineVisual3D
              Ab3d.VisualsTubePathVisual3D
              Ab3d.VisualsTubeVisual3D
              Ab3d.VisualsVerticalPlaneVisual3D