Click or drag to resize
AB4D logo

ColoredAxisVisual3D Class

AxisVisual3D class is used to create Visual3D that represents a simple 3D axis that is created from 3 lines - one for x axis, one for y axis and one for z axis.
Inheritance Hierarchy

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

The ColoredAxisVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodColoredAxisVisual3D Constructor
Public methodColoredAxisVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyLength Gets or sets the length of the axis lines. Default length is 100.
Public propertyLineThickness Gets or sets the
Public propertyPosition Gets or sets the position of the axes origin. Default value is (0, 0, 0).
Public propertyXAxisColor Gets or sets the color of X axis
Public propertyYAxisColor Gets or sets the color of Y axis
Public propertyZAxisColor Gets or sets the color of Z axis
Top
Methods
 NameDescription
Protected methodCreateLineMaterial Creates line Material from line color
Protected methodCreateModel Creates this Model3D
(Overrides BaseVisual3DCreateModel)
Top
Fields
 NameDescription
Public fieldStatic memberLengthProperty LengthProperty
Public fieldStatic memberLineThicknessProperty LineThicknessProperty
Public fieldStatic memberPositionProperty CenterPositionProperty
Public fieldStatic memberXAxisColorProperty XAxisColorProperty
Public fieldStatic memberYAxisColorProperty YAxisColorProperty
Public fieldStatic memberZAxisColorProperty ZAxisColorProperty
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