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)

Initializes a new instance of the RgbTreat class.

public RgbTreat(Vec3d rgb = null)

Parameters

rgb Vec3d

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 Rgb { get; set; }

Property Value

Vec3d

Methods

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind 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 Box3d

Destination box