Click or drag to resize
AB4D logo

LinesUpdater Class

LinesUpdater class is a helper class that updates all the shown 3D Lines.
Inheritance Hierarchy
SystemObject
  Ab3d.UtilitiesLinesUpdater

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class LinesUpdater

The LinesUpdater type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberInstance Gets a static instance of LinesUpdater.
Public propertyIsEmissiveMaterialUsed Gets or sets a bool that specifies if EmissiveMaterial is used to display the lines. The default value is true.
Public propertyLineArrowAngle Gets or sets the angle of the line arrows. Default value is 15 degrees. Note that if the line is short so that the arrow length exceeds the amount defined by MaxLineArrowLength, the arrow is shortened which increased the arrow angle.
Public propertyMaxLineArrowLength Gets or sets a double value that specifies the maximum arrow length set as fraction of the line length - e.g. 0.333 means that the maximum arrow length will be 1 / 3 (=0.333) of the line length. If the line is short so that the arrow length exceeds the amount defined by MaxLineArrowLength, the arrow is shortened (the arrow angle is increased).
Public propertyRegisteredLinesCount Gets count of RegisteredLines
Public propertyUpdateMode Gets or sets a LinesUpdated mode that defines how often the LinesUpdater automatically updates the lines.
Top
Methods
 NameDescription
Public methodRefresh Manually updates all the registered lines. This will regenerate the geometry of 3D lines that are on Viewport3D objects that are not visible (for example for offline rendering to bitmap).
Public methodRegisterViewport3DObsolete.
RegisterViewport3D is OBSOLETE and does nothing. In the previous version it was used to prevent updating lines in Viewport3D in case it was unloaded from visual tree.
Public methodReset Manually clears all the registered lines.
Public methodUnregisterLine(BaseLineVisual3D) UnregisterLine method can be called to manually remove the line Visual3D from being updated with LinesUpdater.
Public methodUnregisterLine(Model3D) UnregisterLine method can be called to manually remove the line model from being updated with LinesUpdater.
Public methodUnregisterViewport3DObsolete.
UnregisterViewport3D is OBSOLETE and does nothing. In the previous version it was used to unregister Viewport3D that was registered with RegisterViewport3D(Viewport3D) method.
Public methodUpdateDXEngineSettings Update the DXEngine settings. Can is called when DXScene in DXViewportView is initialized. It can be also called if HardwareAccelerate3DLines or HardwareAccelerate3DLineCaps are manually changed.
Top
See Also