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
rgbVec3dThe 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 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(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dstBox3dDestination box