MPRManager

MPRManager

A manager for MPR views

Constructor

new MPRManager(elements)

Source:

Create a manager.

Parameters:
Name Type Description
elements Object

The 3 target HTML elements {key1:{}, key2:{}, key3:{}}.

Properties
Name Type Description
element HTMLElement

The target HTML elements.

key String

The target HTML elements.

Classes

MPRManager

Members

wwwl :Array

Source:

wwwl

Type:
  • Array

Methods

destroy()

Source:

Destroy webgl content and release listeners

getInitialState() → {State}

Source:

Get initial State object

Returns:

The initial internal state

Type
State

onRotate(key, axis, angle, state)

Source:

Update slice planes on rotation

Parameters:
Name Type Description
key String

One of the initially provided keys (identify a view)

axis String

'x' or 'y' axis

angle Number

The amount of rotation [deg], absolute

state State

The current manager state

onThickness(key, axis, thickness, state)

Source:

Update slice planes on rotation

Parameters:
Name Type Description
key String

One of the initially provided keys (identify a view)

axis String

'x' or 'y' axis

thickness Number

The amount of thickness [px], absolute

state State

The current manager state

resize(key)

Source:

Force views resize

Parameters:
Name Type Description
key String

If provided, resize just its view, otherwise all views

setImage(state, image)

Source:

Set the image to render

Parameters:
Name Type Description
state State

The current manager state

image Array

The pixel data from DICOM serie

setTool(toolName, state)

Source:

Set the active tool

Parameters:
Name Type Description
toolName String

"level" or "crosshair"

state State

The current manager state