Table of Contents

Class ConstructionDefectDisplayee

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

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

defectNodeInfos List<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

List<CubeTree.DefectNodeInfo>

DefectNodesToShow

Maximum number of defect nodes to show.

public int DefectNodesToShow { get; set; }

Property Value

int

HasDefects

Whether any defects were found.

public bool HasDefects { get; }

Property Value

bool

Methods

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind 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

disposing bool

ExpandToBox3d(Box3d)

Expands the destination box. This function is usually used to compute the bounding box of elements.

public void ExpandToBox3d(Box3d dst)

Parameters

dst Box3d

Destination 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

defectBox Box3d

The defect box to fit.

sketchView Mat4d

The current sketch view matrix.

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

Event Type

Action<Box3d>