Class WrappedDisplayee
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
displayeeIDisplayeeThe displayee to wrap.
displayDelegateAction<IDisplayee, Bind>The delegate for custom display behavior.
expandToBox3dDelegateWrappedExpandToBox3dDelThe 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
Displayee
Gets or sets the wrapped displayee object.
public IDisplayee Displayee { get; set; }
Property Value
ExpandToBox3dDelegate
Gets or sets the delegate for custom bounding box expansion behavior.
public WrappedExpandToBox3dDel ExpandToBox3dDelegate { get; set; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bindBindBind 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
dstbox3d_tDestination box, expanded in place