Table of Contents

Class WrappedDisplayee

Namespace
Hi.Disp
Assembly
HiDisp.dll

A wrapper class for IDisplayee that allows customizing display and bounding box behavior.

public class WrappedDisplayee : IDisplayee, IExpandToBox3d
Inheritance
WrappedDisplayee
Implements
Inherited Members
Extension Methods

Constructors

WrappedDisplayee()

Initializes a new instance of the WrappedDisplayee class.

public WrappedDisplayee()

WrappedDisplayee(IDisplayee, Action<IDisplayee, Bind>, WrappedExpandToBox3dDel)

Initializes a new instance of the WrappedDisplayee class with specified displayee and delegates.

public WrappedDisplayee(IDisplayee displayee, Action<IDisplayee, Bind> displayDelegate, WrappedExpandToBox3dDel expandToBox3dDelegate)

Parameters

displayee IDisplayee

The displayee to wrap.

displayDelegate Action<IDisplayee, Bind>

The delegate for custom display behavior.

expandToBox3dDelegate WrappedExpandToBox3dDel

The delegate for custom bounding box expansion behavior.

Properties

DisplayDelegate

Gets or sets the delegate for custom display behavior.

public Action<IDisplayee, Bind> DisplayDelegate { get; set; }

Property Value

Action<IDisplayee, Bind>

Displayee

Gets or sets the wrapped displayee object.

public IDisplayee Displayee { get; set; }

Property Value

IDisplayee

ExpandToBox3dDelegate

Gets or sets the delegate for custom bounding box expansion behavior.

public WrappedExpandToBox3dDel ExpandToBox3dDelegate { get; set; }

Property Value

WrappedExpandToBox3dDel

Methods

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind with DispEngine. See Bind.

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