Table of Contents

Class CbtrPickable

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

Pickable of CubeTree grids.

public class CbtrPickable : Pickable, IGetPickable, IDisposable
Inheritance
CbtrPickable
Implements
Derived
Inherited Members
Extension Methods

Constructors

CbtrPickable()

Initializes a new instance of the CbtrPickable class with default white color.

public CbtrPickable()

CbtrPickable(vec3f_t)

Initializes a new instance of the CbtrPickable class with specified color.

public CbtrPickable(vec3f_t rgb)

Parameters

rgb vec3f_t

The RGB color for the pickable object.

CbtrPickable(vec3f_t, int)

Initializes a new instance with a bucket-count hint for the native node map. The default map is sized for a machining attachment (1024 buckets, 8-16 KB); an attachment that holds one leaf plus the stems that pick it as dominant, such as a Diff leaf, passes 1.

protected CbtrPickable(vec3f_t rgb, int nodeMapBucketHint)

Parameters

rgb vec3f_t

The RGB color for the pickable object.

nodeMapBucketHint int

Initial bucket count of the native attached-node map.

Properties

AttachmentPriority

The color and Pickable priority if several attachments occupied at the same pixel. NAN is the lowest priority. the smaller number is the lower priority.

public virtual double AttachmentPriority { get; set; }

Property Value

double

IsColorTableCovered

True when this attachment's color is served by the native attachment color table, i.e. a Rgb change reaches the screen without cleaning the affected drawing caches. When false (no picking id, or the id exceeds the table ceiling) callers must keep the legacy CleanAttachedCbtrNodesDrawingCache() after a recolor.

public bool IsColorTableCovered { get; }

Property Value

bool

Rgb

Color RGB.

public virtual vec3d_t Rgb { get; set; }

Property Value

vec3d_t

Methods

CleanAttachedCbtrNodesDrawingCache()

CleanAttachedNodesDrawingCache. Not thread safe with substraction process.

public void CleanAttachedCbtrNodesDrawingCache()

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

Highlight(bool)

Highlight the CbtrPickable by triangles line. Only one CbtrPickable can be highlighted on a CubeTree.

public void Highlight(bool b)

Parameters

b bool

highligt or not

OnMouseEnter(ui_event_type, DispEngine)

Behavior on mouse enter

public override void OnMouseEnter(ui_event_type e, DispEngine dispEngine)

Parameters

e ui_event_type

event type

dispEngine DispEngine

display engine

OnMouseLeave(ui_event_type, DispEngine)

Behavior on mouse leave

public override void OnMouseLeave(ui_event_type e, DispEngine dispEngine)

Parameters

e ui_event_type

event type

dispEngine DispEngine

display engine

ShrinkToFitNodeMap()

ShrinkToFitNodeMap. Not thread safe with substraction process.

public void ShrinkToFitNodeMap()