Class ConstructionDefectDisplayee
Encapsulates cube tree construction defect results, including both defect data and visualization drawings.
public class ConstructionDefectDisplayee : IDisplayee, IExpandToBox3d, IDisposable
- Inheritance
-
ConstructionDefectDisplayee
- Implements
- Inherited Members
- Extension Methods
Constructors
ConstructionDefectDisplayee(List<DefectNodeInfo>)
Ctor.
public ConstructionDefectDisplayee(List<CubeTree.DefectNodeInfo> defectNodeInfos)
Parameters
defectNodeInfosList<CubeTree.DefectNodeInfo>Defect node infos from cube tree construction.
Properties
DefectNodeInfos
Defect node infos collected during cube tree construction.
public List<CubeTree.DefectNodeInfo> DefectNodeInfos { get; }
Property Value
DefectNodesToShow
Maximum number of defect nodes to show.
public int DefectNodesToShow { get; set; }
Property Value
HasDefects
Whether any defects were found.
public bool HasDefects { get; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bindBindBind with DispEngine. See Bind.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dstBox3dDestination box
GetFittingView(Box3d, Mat4d)
Gets a fitting view matrix for a defect box, preserving the current view rotation.
public static Mat4d GetFittingView(Box3d defectBox, Mat4d sketchView)
Parameters
Returns
- Mat4d
A view matrix that fits the defect box, or the original sketch view if inputs are invalid.
Events
DefectBoxSelected
Fired when a defect box flag is selected (clicked). The parameter is the Box3d of the selected defect box.
public event Action<Box3d> DefectBoxSelected