Class FuncDisplayee
A displayee implementation that delegates display functionality to function delegates.
public class FuncDisplayee : IDisplayee, IExpandToBox3d
- Inheritance
-
FuncDisplayee
- Implements
- Inherited Members
- Extension Methods
Constructors
FuncDisplayee()
Initializes a new instance of the FuncDisplayee class.
public FuncDisplayee()
FuncDisplayee(Action<Bind>, ExpandToBox3dDel)
Initializes a new instance of the FuncDisplayee class with display and expand delegates.
public FuncDisplayee(Action<Bind> displayDelegate, ExpandToBox3dDel expandToBox3dDelegate)
Parameters
displayDelegateAction<Bind>The delegate for the Display method.
expandToBox3dDelegateExpandToBox3dDelThe delegate for the ExpandToBox3d method.
Properties
DisplayDelegate
Gets or sets the delegate for the Display method.
public Action<Bind> DisplayDelegate { get; set; }
Property Value
ExpandToBox3dDelegate
Gets or sets the delegate for the ExpandToBox3d method.
public ExpandToBox3dDel 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