Click or drag to resize
AB4D logo

PlaneVisual3D Class

PlaneVisual3D class is used to create Visual3D that represents a 3D Plane.
Inheritance Hierarchy

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

The PlaneVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodPlaneVisual3D Constructor
Public methodPlaneVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyCenterPosition Gets or sets the plane center position
Public propertyHeightCellsCount Gets or sets the cells count in height direction
Public propertyHeightDirection Gets or sets the Vector3D that defines the direction of the height (used in size)
Public propertyNormal Gets or sets the Vector3D that is perpendicular to the plane
Public propertySize Gets or sets the size of the plane
Public propertyUseMatrixTransform3D When UseMatrixTransform3D is true then this PlaneVisual3D is created with a standard and shared MeshGeometry3D and uses a UseMatrixTransform3D to position, scale and orient the plane to the desired location, size and direction. This gives a big performance improvement. When false, each PlaneVisual3D is created with a unique MeshGeometry3D that is updated according to the position, scale and direction. This means that on each property change a new MeshGeometry3D is created. Default value is true (false can be used to make PlaneVisual3D work as before version 8.2).
Public propertyWidthCellsCount Gets or sets the cells count in width direction
Top
Methods
 NameDescription
Public methodAlignWithCamera(BaseCamera) AlignWithCamera method aligns the PlaneVisual3D to be oriented so that it faces the specified camera.
Public methodAlignWithCamera(ProjectionCamera) AlignWithCamera method aligns the PlaneVisual3D to be oriented so that it faces the specified camera.
Protected methodStatic memberOnBasicPropertyChanged OnBasicPropertyChanged method is called when position, scale or orientation of this PlaneVisual3D is changed. In case the UseMatrixTransform3D is true, then this method calls UpdateTransformationMatrix3D method, otherwise RefreshGeometry method is called.
Protected methodRefreshGeometry Recreates the Visual3D geometry
(Overrides BaseModelVisual3DRefreshGeometry)
Protected methodUpdateTransformationMatrix3D When UseMatrixTransform3D is true, then this method updates the MatrixTransform3D to position, scale and orient the plane to the desired location, size and direction.
Public methodStatic memberUpdateTransformationMatrix3D(Vector3D, Vector3D, Vector3D, Double, Double, Matrix3D) UpdateTransformationMatrix3D updates the specified transformationMatrix3D so that it will transform a standard plane MeshGeometry3D (StandardPlaneMeshGeometry3D) according to the specified parameters.
Top
Fields
 NameDescription
Public fieldStatic memberCenterPositionProperty CenterPositionProperty
Public fieldStatic memberHeightCellsCountProperty HeightCellsCountProperty
Public fieldStatic memberHeightDirectionProperty HeightDirectionProperty
Public fieldStatic memberNormalProperty NormalProperty
Public fieldStatic memberSizeProperty SizeProperty
Public fieldStatic memberWidthCellsCountProperty WidthCellsCountProperty
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