Methods
add(dataId, data) → {boolean}
Add a new data.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
data | DicomData | The data. |
False if the data cannot be added.
- Type:
- boolean
addEventListener(type, callback)
Add an event listener to this class.
| Name | Type | Description |
|---|---|---|
type | string | The event type. |
callback | function | The function associated with the provided event type, will be called with the fired event. |
get(dataId) → {DicomData|undefined}
Get a data at a given index.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
The DICOM data.
- Type:
- DicomData |
undefined
getDataIdFromSeriesUid(uid) → {string}
Get the first data id with the given SeriesInstanceUID.
| Name | Type | Description |
|---|---|---|
uid | string | The SeriesInstanceUID. |
The data id.
- Type:
- string
getDataIds() → {Array.<string>}
Get the list of ids in the data storage.
The list of data ids.
- Type:
- Array.<string>
getDataIdsFromSopUids(uids) → {Array.<string>}
Get the list of dataIds that contain the input UIDs.
| Name | Type | Description |
|---|---|---|
uids | Array.<string> | A list of UIDs. |
The list of dataIds that contain the UIDs.
- Type:
- Array.<string>
getNextDataId() → {string}
Get the next data id.
The data id.
- Type:
- string
getStashed(dataId) → {DicomData|undefined}
Get a stashed data at a given index.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
The DICOM data.
- Type:
- DicomData |
undefined
getStashedDataIds() → {Array.<string>}
Get the list of ids in the stashed data storage.
The list of data ids.
- Type:
- Array.<string>
markDataAsComplete(dataId) → {Object}
Mark a data a complete (fully loaded).
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
An object with an imageHasChanged property.
- Type:
- Object
remove(dataId)
Remove a data from the list.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
removeEventListener(type, callback)
Remove an event listener from this class.
| Name | Type | Description |
|---|---|---|
type | string | The event type. |
callback | function | The function associated with the provided event type. |
reset()
Reset the class: empty the data storage.
setImage(dataId, image)
Set the image at a given index.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
image | Image | The image to set. |
stash(dataId)
Stash a data from the list.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
unstash(dataId)
Unstash a data from the list.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
update(dataId, data)
Update the current data.
| Name | Type | Description |
|---|---|---|
dataId | string | The data id. |
data | DicomData | The data. |
Events
dataadd
Data add event.
- object
| Name | Type | Description |
|---|---|---|
type | string | The event type. |
dataid | string | The data id. |
dataimageset
Data image set event.
- object
| Name | Type | Description |
|---|---|---|
type | string | The event type. |
value | Array | The event value, first element is the image. |
dataid | string | The data id. |
dataremove
Data remove event.
- object
| Name | Type | Description |
|---|---|---|
type | string | The event type. |
dataid | string | The data id. |
dataupdate
Data udpate event.
- object
| Name | Type | Description |
|---|---|---|
type | string | The event type. |
dataid | string | The data id. |