Table of Contents

Class TransformationWrapper

Namespace
Hi.Disp.Treat
Assembly
HiDisp.dll

A wrapper displayee that applies a transformation matrix to the wrapped displayees.

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

Constructors

TransformationWrapper(mat4d_t, params IDisplayee[])

Initializes a new instance of the TransformationWrapper class.

public TransformationWrapper(mat4d_t mat, params IDisplayee[] displayees)

Parameters

mat mat4d_t

The transformation matrix to apply.

displayees IDisplayee[]

The displayees to be transformed.

Properties

Displayees

Gets or sets the collection of displayees to be transformed.

public SynList<IDisplayee> Displayees { get; set; }

Property Value

SynList<IDisplayee>

TransformingMat

Gets or sets the transformation matrix to apply to the wrapped displayees. Defaults to the identity.

public mat4d_t TransformingMat { get; set; }

Property Value

mat4d_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