Table of Contents

Class BufferedVisualizer

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

Provides an abstract base class for type visualizers with an update frequency potentially much higher than the screen refresh rate.

public abstract class BufferedVisualizer : DialogTypeVisualizer
Inheritance
BufferedVisualizer
Derived
Inherited Members

Properties

TargetInterval

Gets or sets the target interval, in milliseconds, between visualizer updates.

protected virtual int TargetInterval { get; }

Property Value

int

Methods

Show(DateTime, object)

Updates the type visualizer to display a buffered value object received at the specified time.

protected virtual void Show(DateTime time, object value)

Parameters

time DateTime

The time at which the value was received.

value object

The value to visualize.

ShowBuffer(IList<Timestamped<object>>)

Updates the type visualizer with a new buffer of timestamped values.

protected virtual void ShowBuffer(IList<Timestamped<object>> values)

Parameters

values IList<Timestamped<object>>

A buffer of timestamped values where each timestamp indicates the time at which the value was received.

Visualize(IObservable<IObservable<object>>, IServiceProvider)

Creates an observable sequence used to visualize all notifications emitted by a workflow operator, using this type visualizer and the specified service provider.

public override IObservable<object> Visualize(IObservable<IObservable<object>> source, IServiceProvider provider)

Parameters

source IObservable<IObservable<object>>

An observable sequence that multicasts notifications from all the active subscriptions to the workflow operator.

provider IServiceProvider

A service provider object which can be used to obtain visualization, runtime inspection, or other editing services.

Returns

IObservable<object>

An observable sequence where every notification updates the type visualizer object in the UI thread.