Table of Contents

Class MillingToolEditorDisplayee

Namespace
Hi.Milling.MillingTools
Assembly
HiMech.dll

Display host for a milling tool composed of a cutter and a holder.

public class MillingToolEditorDisplayee : ITopoDisplayee, ITopo, IGetAsmb, IGetAnchoredDisplayeeList, IAnchoredDisplayee, IGetAnchor, IGetTopoIndex, IDisplayee, IExpandToBox3d, IClearCache, IDisposable
Inheritance
MillingToolEditorDisplayee
Implements
Inherited Members
Extension Methods

Remarks

The GL drawings of the cutter shown here belong to this displayee, through MillingCutterEditorDisplayee, and not to the tool; the holder's displayee holds none (the holder's solid is the holder's). Whoever shows it on a canvas disposes it once that canvas is gone, never while a frame may still be displaying it: displayed again, the cutter's displayee makes its drawings anew.

Properties

HolderEditorDisplayee

Gets the displayee for the holder.

public HolderEditorDisplayee HolderEditorDisplayee { get; }

Property Value

HolderEditorDisplayee

MillingCutterEditorDisplayee

Gets the displayee for the milling cutter.

public MillingCutterEditorDisplayee MillingCutterEditorDisplayee { get; }

Property Value

MillingCutterEditorDisplayee

MillingTool

Gets the current MillingTool instance.

public MillingTool MillingTool { get; }

Property Value

MillingTool

MillingToolGetter

Gets or sets the delegate that provides the MillingTool instance.

public Func<MillingTool> MillingToolGetter { get; set; }

Property Value

Func<MillingTool>

ShowCutter

Gets or sets whether to show the cutter.

public bool ShowCutter { get; set; }

Property Value

bool

ShowHolder

Gets or sets whether to show the holder.

public bool ShowHolder { get; set; }

Property Value

bool

Methods

ClearCache()

Clears any cached data held by the implementing object.

public void ClearCache()

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind with DispEngine. See Bind.

Dispose()

Disposes of the drawings this displayee holds (see the class remarks); a second call does nothing.

public void Dispose()

Dispose(bool)

Disposes of MillingCutterEditorDisplayee, which holds the drawings of the cutter shown here. A second call does nothing.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

True if disposing, false if finalizing

ExpandToBox3d(ref box3d_t)

Expands the destination box. This function is usually used to compute the bounding box of elements. box3d_t is a value type, so the destination is passed by reference (the C++ expand_to_box3d(box3&) shape); an implementation writes dst = dst.Expanded(...) or forwards ref dst to its parts.

public void ExpandToBox3d(ref box3d_t dst)

Parameters

dst box3d_t

Destination box, expanded in place

GetAnchor()

Get key anchor. (i.e. root anchor)

public Anchor GetAnchor()

Returns

Anchor

key anchor

GetAnchoredDisplayeeList()

Gets a list of anchored displayable objects.

public List<IAnchoredDisplayee> GetAnchoredDisplayeeList()

Returns

List<IAnchoredDisplayee>

A list of IAnchoredDisplayee objects

GetAsmb()

Gets the key asmb.

public Asmb GetAsmb()

Returns

Asmb

The key asmb.