Click or drag to resize
AB4D logo

MultiModelBoxUIElement3D Class

MultiMaterialBoxVisual3D class is used to create a UIElement3D that represents a 3D Box where each side of the box can have its own material.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.WindowsUIElement3D
          Ab3d.UIElementsBaseUIElement3D
            Ab3d.UIElementsMultiModelBoxUIElement3D

Namespace: Ab3d.UIElements
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public class MultiModelBoxUIElement3D : BaseUIElement3D

The MultiModelBoxUIElement3D type exposes the following members.

Constructors
 NameDescription
Public methodMultiModelBoxUIElement3D Constructor
Top
Properties
 NameDescription
Public propertyBackMaterial Gets or sets the Material of the back side of the box.
Public propertyBackSideModel Gets the GeometryModel3D for the back side of the box.
Public propertyBottomMaterial Gets or sets the Material of the bottom side of the box.
Public propertyBottomSideModel Gets the GeometryModel3D for the bottom side of the box.
Public propertyCenterPosition Gets or sets the box center position
Public propertyCode exampleFallbackMaterial Gets or sets the Material that is used when the material for the specified side is not set.
Public propertyFrontMaterial Gets or sets the Material of the front side of the box.
Public propertyFrontSideModel Gets the GeometryModel3D for the front side of the box.
Public propertyIsTwoSidedMaterial Gets or sets the Boolean that specifies if the material is set to both sides of each Model3D that define the box. This means that BackMaterial for each side is set to the same value as Material. Default value is false.
Public propertyLeftMaterial Gets or sets the Material of the left side of the box.
Public propertyLeftSideModel Gets the GeometryModel3D for the left side of the box.
Public propertyRightMaterial Gets or sets the Material of the right side of the box.
Public propertyRightSideModel Gets the GeometryModel3D for the right side of the box.
Public propertySize Gets or sets the size of the box
Public propertyTopMaterial Gets or sets the Material of the top side of the box.
Public propertyTopSideModel Gets the GeometryModel3D for the top side of the box.
Public propertyXCellsCount Gets or sets the number of cells in X direction
Public propertyYCellsCount Gets or sets the number of cells in Y direction
Public propertyZCellsCount Gets or sets the number of cells in Z direction
Top
Methods
 NameDescription
Protected methodCreateModel Creates this Model3D
Protected methodOnUpdateModel OnUpdateModel is called in response to InvalidateModel and provides a place to set the Visual3DModel property
(Overrides UIElement3DOnUpdateModel)
Protected methodRefreshMaterial Resets the content's material
Top
Fields
 NameDescription
Public fieldStatic memberBackMaterialProperty BackMaterialProperty
Public fieldStatic memberBottomMaterialProperty BottomMaterialProperty
Public fieldStatic memberCenterPositionProperty CenterPositionProperty
Public fieldStatic memberFallbackMaterialProperty FallbackMaterialProperty
Public fieldStatic memberFrontMaterialProperty FrontMaterialProperty
Public fieldStatic memberIsTwoSidedMaterialProperty IsTwoSidedMaterialProperty
Public fieldStatic memberLeftMaterialProperty LeftMaterialProperty
Public fieldStatic memberRightMaterialProperty RightMaterialProperty
Public fieldStatic memberSizeProperty SizeProperty
Public fieldStatic memberTopMaterialProperty TopMaterialProperty
Public fieldStatic memberXCellsCountProperty XCellsCountProperty
Public fieldStatic memberYCellsCountProperty YCellsCountProperty
Public fieldStatic memberZCellsCountProperty ZCellsCountProperty
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 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