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>, Action<IDisplayee, Box3d>)
Initializes a new instance of the WrappedDisplayee class with specified displayee and delegates.
public WrappedDisplayee(IDisplayee displayee, Action<IDisplayee, Bind> displayDelegate, Action<IDisplayee, Box3d> expandToBox3dDelegate)
Parameters
displayee
IDisplayeeThe displayee to wrap.
displayDelegate
Action<IDisplayee, Bind>The delegate for custom display behavior.
expandToBox3dDelegate
Action<IDisplayee, Box3d>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
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 Action<IDisplayee, Box3d> ExpandToBox3dDelegate { get; set; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box