Class RgbWrapper
A wrapper displayee that applies an RGB color to the wrapped displayee.
public class RgbWrapper : IDisplayee, IExpandToBox3d
- Inheritance
-
RgbWrapper
- Implements
- Inherited Members
- Extension Methods
Constructors
RgbWrapper()
Initializes a new instance of the RgbWrapper class.
public RgbWrapper()
RgbWrapper(IDisplayee, Vec3d)
Initializes a new instance of the RgbWrapper class with a displayee and RGB color.
public RgbWrapper(IDisplayee displayee, Vec3d rgb = null)
Parameters
displayee
IDisplayeeThe displayee to be wrapped.
rgb
Vec3dThe RGB color to apply to the wrapped displayee.
Properties
Displayee
Gets or sets the displayee to be wrapped.
public IDisplayee Displayee { get; set; }
Property Value
Rgb
Gets or sets the RGB color to apply to the wrapped displayee.
public Vec3d Rgb { 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