Table of Contents

Class RgbTreat

Namespace
Hi.Disp.Treat
Assembly
HiDisp.dll

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

rgb vec3d_t

The 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 double

The red component (0.0 to 1.0).

g double

The green component (0.0 to 1.0).

b double

The blue component (0.0 to 1.0).

Properties

Rgb

Gets or sets the RGB color vector.

public vec3d_t Rgb { get; set; }

Property Value

vec3d_t

Methods

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind 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

dst box3d_t

Destination box, expanded in place