Table of Contents

Class SceneTransform

Namespace
Bonsai.Shaders.Rendering
Assembly
Bonsai.Shaders.Rendering.dll

Represents an operator that gets the transform matrix of the specified scene node.

public class SceneTransform : Source<Matrix4>
Inheritance
SceneTransform
Inherited Members

Properties

NodeName

Gets or sets the name of the scene node to get the transform from. If no name is specified, the root node will be used.

public string NodeName { get; set; }

Property Value

string

SceneName

Gets or sets the name of the scene where the node is located.

[TypeConverter(typeof(SceneNameConverter))]
public string SceneName { get; set; }

Property Value

string

Methods

Generate()

Gets the transform matrix of the specified scene node and surfaces it through an observable sequence.

public override IObservable<Matrix4> Generate()

Returns

IObservable<Matrix4>

A sequence containing the Matrix4 object representing the transform of the specified scene node.

Generate<TSource>(IObservable<TSource>)

Gets the transform matrix of the specified scene node whenever an observable sequence emits a notification.

public IObservable<Matrix4> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence of notifications used to extract the node transform.

Returns

IObservable<Matrix4>

A sequence of Matrix4 objects representing the transform of the specified scene node.

Type Parameters

TSource

The type of the elements in the source sequence.