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)
Initializes a new instance of the RgbWrapper class with a displayee and no color of its own: the wrapped displayee draws in whatever color the binding already holds.
public RgbWrapper(IDisplayee displayee)
Parameters
displayeeIDisplayeeThe displayee to be wrapped.
RgbWrapper(IDisplayee, vec3d_t)
Initializes a new instance of the RgbWrapper class with a displayee and RGB color.
public RgbWrapper(IDisplayee displayee, vec3d_t rgb)
Parameters
displayeeIDisplayeeThe displayee to be wrapped.
rgbvec3d_tThe 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_t? Rgb { 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