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, Vec3d)

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

public RgbWrapper(IDisplayee displayee, Vec3d rgb = null)

Parameters

displayee IDisplayee

The displayee to be wrapped.

rgb Vec3d

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