Click or drag to resize
AB4D logo

LinesUpdaterReset Method

Manually clears all the registered lines.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public void Reset()
Remarks

Reset method manually clears all the registered lines.

All the lines that are created with Ab3d.PowerToys library are registered with LinesUpdater. LinesUpdater checks the camera and when it is changed it updates the lines accordingly. The LinesUpdater also checks if the lines, parent Visuals or Viewport3D are removed from the visual tree. In this case it unregisters the line. But it is also possible to unregister the lines manually with Reset or UnregisterLine(Model3D) method.

Note that the Reset method removed all the lines from all the Viewport3D controls. For example if one Viewport3D is showing a wireframe and a CameraAxisPanel is also shown, the Reset method will remove all the wireframe lines and also the lines from the CameraAxisPanel. When a line is removed from the LinesUpdater, it will stop being updated when the camera is changed.

Therefore the Reset method must be used with caution. It is recommended to use the UnregisterLine(Model3D) method instead because it gives you more predicted results.

See Also