Table of Contents

Class RgbWrapper

Namespace
Hi.Disp.Treat
Assembly
HiDisp.dll

A wrapper displayee that applies an RGB color to the wrapped displayee.

public class RgbWrapper : IDisplayee, IExpandToBox3d
Inheritance
RgbWrapper
Implements
Inherited Members
Extension Methods

Constructors

RgbWrapper()

Initializes a new instance of the RgbWrapper class.

public RgbWrapper()

RgbWrapper(IDisplayee)

Initializes a new instance of the RgbWrapper class with a displayee and no color of its own: the wrapped displayee draws in whatever color the binding already holds.

public RgbWrapper(IDisplayee displayee)

Parameters

displayee IDisplayee

The displayee to be wrapped.

RgbWrapper(IDisplayee, vec3d_t)

Initializes a new instance of the RgbWrapper class with a displayee and RGB color.

public RgbWrapper(IDisplayee displayee, vec3d_t rgb)

Parameters

displayee IDisplayee

The displayee to be wrapped.

rgb vec3d_t

The RGB color to apply to the wrapped displayee.

Properties

Displayee

Gets or sets the displayee to be wrapped.

public IDisplayee Displayee { get; set; }

Property Value

IDisplayee

Rgb

Gets or sets the RGB color to apply to the wrapped displayee.

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