Click or drag to resize
AB4D logo

BoxVisual3D Class

BoxVisual3D class is used to create Visual3D that represents a 3D Box.
Inheritance Hierarchy

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

The BoxVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodBoxVisual3D Constructor
Public methodBoxVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyCenterPosition Gets or sets the box center position
Public propertyFreezeMeshGeometry3D Gets or sets a Boolean that specifes if the Box's MeshGeometry3D is frozen. This can greatly improve performance when many BoxVisual3D objects are generated. It is recommended that this property is set before other properties. The default value is true.
Public propertySize Gets or sets the size of the box
Public propertyUseCachedMeshGeometry3D Gets or sets a boolean that specifies if cached MeshGeometry3D is used to create the Model3D. In that case the position and size of the Model3D is specified with with using transformations on the cached mesh. This mode can be used only where XCellsCount = YCellsCount = ZCellsCount = 1. If false then a new MeshGeometry3D is created for every BoxVisual3D.
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 methodStatic memberOnCenterPositionPropertyChanged OnCenterPositionPropertyChanged
Protected methodStatic memberOnSizePropertyChanged OnSizePropertyChanged
Protected methodStatic memberOnUseCachedMeshGeometry3DChanged OnUseCachedMeshGeometry3DChanged
Protected methodRefreshGeometry Recreates the Visual3D geometry
(Overrides BaseModelVisual3DRefreshGeometry)
Top
Fields
 NameDescription
Public fieldStatic memberCenterPositionProperty CenterPositionProperty
Public fieldStatic memberSizeProperty SizeProperty
Public fieldStatic memberUseCachedMeshGeometry3DProperty UseCachedMeshGeometry3DProperty
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