Click or drag to resize
AB4D logo

MultiMaterialBoxVisual3D Class

MultiMaterialBoxVisual3D class is used to create Visual3D that represents a 3D Box where each side of the box can have its own material.
Inheritance Hierarchy

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

The MultiMaterialBoxVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodMultiMaterialBoxVisual3D Constructor
Public methodMultiMaterialBoxVisual3D(String) 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 propertyModel Gets the Model3D of this Visual3D
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
(Overrides BaseVisual3DCreateModel)
Protected methodRefreshMaterial Resets the content's material
Protected methodSetModel Sets the Content of the Visual3D
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 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