ImFusion Web SDK

RadiologyViewGroup

Class representing a set of views typically available in radiology workstations.

Extends

Methods

MethodDescription
showData()Appends data to the visible data on all compatible views of this group by calling showData() on them.
hideData()Removes data from the set of visible data by calling hideData() on all specified views comprising this group.
visibleData()Returns the union of the currently visible data in all views comprising this group.
setVisibleData()Replace the visible data of all views with the one in datasets.
centerOnData()Reset view matrices of MPR and 3D views so that they are centered on the provided data.
reset()Reset all view settings of all views in this group to their default values.
onVisibleDataChanged()Fires when the visible data changes.

Inherited from ClassHandle

MethodDescription
isAliasOf()Returns true if this handle and other alias the same underlying C++ object.
delete()Releases this JavaScript handle.
deleteLater()Schedules this handle for deferred deletion and returns this handle.
isDeleted()Returns true if this handle has already been deleted.
[dispose]()Releases this handle when the enclosing scope exits, so a handle can be declared with using instead of calling delete() later manually.
clone()Returns a new JavaScript handle aliasing the same underlying C++ object.

showData()

ts
showData(data: Data | null): number;

Appends data to the visible data on all compatible views of this group by calling showData() on them.

Parameters

ParameterType
dataData | null

Returns

number


hideData()

ts
hideData(data: Data | null): void;

Removes data from the set of visible data by calling hideData() on all specified views comprising this group.

Parameters

ParameterType
dataData | null

Returns

void


visibleData()

ts
visibleData(): HandleArray<Data>;

Returns the union of the currently visible data in all views comprising this group.

Returns

HandleArray<Data>


setVisibleData()

ts
setVisibleData(datasets: Data[]): void;

Replace the visible data of all views with the one in datasets.

Parameters

ParameterType
datasetsData[]

Returns

void


centerOnData()

ts
centerOnData(data: Data): void;

Reset view matrices of MPR and 3D views so that they are centered on the provided data.

Parameters

ParameterType
dataData

Returns

void


reset()

ts
reset(): void;

Reset all view settings of all views in this group to their default values.

Returns

void


onVisibleDataChanged()

ts
onVisibleDataChanged(callback: (before: HandleArray<Data>, after: HandleArray<Data>) => void): () => void;

Fires when the visible data changes.

Parameters

ParameterTypeDescription
callback(before: HandleArray<Data>, after: HandleArray<Data>) => voidCalled with the data arrays before and after the change.

Returns

Unsubscribe function.

() => void

On this page