Click or drag to resize
AB4D logo

BaseLineVisual3D Class

BaseLineVisual3D is a base abstract for all 3D line Visual3D classes
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsBaseLineVisual3D
              Ab3d.VisualsBaseMultiLineVisual3D
              Ab3d.VisualsLineVisual3D
              Ab3d.VisualsLineWithTextVisual3D
              Ab3d.VisualsWireGridVisual3D

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

The BaseLineVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodBaseLineVisual3D Constructor
Public methodBaseLineVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyIsSoftwareGeneratedMesh Gets a Boolean that specifies if the mesh for this line is generated by the CPU in the LinesUpdater class. This value is set to true after the first mesh was generated. When false, then the value was either not yet set the line's mesh is generated on the graphics card by Ab3d.DXEngine (if value is false and the line was already shown).
Public propertyLineColor Gets or sets the color of the line
Public propertyLineThickness Gets or sets the thickness of the line in screen coordinates.
Top
Methods
 NameDescription
Protected methodCreateLineMaterial Creates line Material from line color
Protected methodStatic memberOnColorPropertyChanged OnColorPropertyChanged
Protected methodOnIsVisibleChanged OnIsVisibleChanged is called when the IsVisible property is changed
(Overrides BaseVisual3DOnIsVisibleChanged(Boolean))
Protected methodOnLineColorPropertyChanged OnColorPropertyChanged is called when LineColor property is changed.
Protected methodUpdateContentIfNotInitializing Recreates the models if the Visual3D is visible (IsVisible is true) and it is not initializing (between BeginInit and EndInit)
(Overrides BaseVisual3DUpdateContentIfNotInitializing)
Protected methodStatic memberValidateLineThicknessPropertyValue Returns true if line thickness is valid double and bigger or equal to 0
Top
Fields
 NameDescription
Public fieldStatic memberDXLineInfoProperty DXLineInfoProperty is used to annotate GeometryModel3D objects that are used to show 3D lines with 3D line data that can be used by DXEngine to create the 3D line in geometry shader
Public fieldStatic memberEndLineCapCapProperty EndLineCapCapProperty
Public fieldStatic memberLineColorProperty LineColorProperty
Public fieldStatic memberLineThicknessProperty LineThicknessProperty
Public fieldStatic memberStartLineCapProperty StartLineCapProperty
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