Class RgbTreat
A displayee that sets the RGB color in the binding context.
public class RgbTreat : IDisplayee, IExpandToBox3d
- Inheritance
-
RgbTreat
- Implements
- Inherited Members
- Extension Methods
Constructors
RgbTreat(vec3d_t)
Initializes a new instance of the RgbTreat class.
public RgbTreat(vec3d_t rgb)
Parameters
rgbvec3d_tThe RGB color vector to set.
RgbTreat(double, double, double)
Initializes a new instance of the RgbTreat class with RGB component values.
public RgbTreat(double r, double g, double b)
Parameters
rdoubleThe red component (0.0 to 1.0).
gdoubleThe green component (0.0 to 1.0).
bdoubleThe blue component (0.0 to 1.0).
Properties
Rgb
Gets or sets the RGB color vector.
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