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)
Initializes a new instance of the RgbTreat class.
public RgbTreat(Vec3d rgb = null)
Parameters
rgb
Vec3dThe 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
r
doubleThe red component (0.0 to 1.0).
g
doubleThe green component (0.0 to 1.0).
b
doubleThe blue component (0.0 to 1.0).
Properties
Rgb
Gets or sets the RGB color vector.
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