Methods
addDataRow(id, dataViewConfigs)
- Source:
Add a data row.
Parameters:
Name | Type | Description |
---|---|---|
id |
number | The data index. |
dataViewConfigs |
object | The view configurations. |
addLayerGroup(id)
- Source:
Append a layer div in the root 'dwv' one.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the layer. |
checkLanguage(language, keys, assert)
- Source:
Initialise i18n and check it.
Parameters:
Name | Type | Description |
---|---|---|
language |
string | The test language. |
keys |
Array | The language keys. |
assert |
function | The QUnit assert. |
checkSelected(parser) → {boolean}
- Source:
Check if a parser is checked.
Parameters:
Name | Type | Description |
---|---|---|
parser |
object | The parser to check. |
Returns:
True isf selected.
- Type
- boolean
checkTags(tags, image) → {boolean}
- Source:
Check tags are coherent with image size.
Parameters:
Name | Type | Description |
---|---|---|
tags |
object | The tags to check. |
image |
object | The associated image. |
Returns:
True if the tags are ok.
- Type
- boolean
checkTags(tags, image) → {boolean}
- Source:
Check tags are coherent with image size.
Parameters:
Name | Type | Description |
---|---|---|
tags |
object | The tags to check. |
image |
object | The associated image. |
Returns:
True if the tags are ok.
- Type
- boolean
clearDataTable()
- Source:
Clear the data table.
createAndPutHtml(data, id)
- Source:
Create and append html.
Parameters:
Name | Type | Description |
---|---|---|
data |
object | Data configuration object. |
id |
string | The html list element. |
createImage(colourMapName, colourMap)
- Source:
Create the colour map image and add it to the document.
Parameters:
Name | Type | Description |
---|---|---|
colourMapName |
string | The colour map name. |
colourMap |
object | The colour map values. |
flipK(size, k) → {number}
- Source:
Flip the K index.
Parameters:
Name | Type | Description |
---|---|---|
size |
dwv.image.Size | The image size. |
k |
number | The index. |
Returns:
The flipped index.
- Type
- number
generateSlice(pixelGeneratorName, sliceNumber) → {Blob}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
pixelGeneratorName |
string | The name of the pixel generator. |
sliceNumber |
number | The slice to generate. |
Returns:
A blob with the slice DICOM data.
- Type
- Blob
getConfigsHtmlList(configs) → {object}
Create list from configs
Parameters:
Name | Type | Description |
---|---|---|
configs |
Array | An array of data cofiguration. |
Returns:
The html list element.
- Type
- object
getData() → {Array}
- Source:
Get the selected data.
Returns:
The selected data.
- Type
- Array
getDataLayerGroupIds(dataViewConfig) → {Array}
- Source:
Get the layer group ids associated to a data.
Parameters:
Name | Type | Description |
---|---|---|
dataViewConfig |
Array | The data view config. |
Returns:
The list of ids.
- Type
- Array
getDwvUrl(uri) → {string}
- Source:
Get the dwv url from a data input uri.
Parameters:
Name | Type | Description |
---|---|---|
uri |
* | The dwv input uri. |
Returns:
The full dwv url.
- Type
- string
getFileConfigsHtmlList(fileName)
Get the list of configs and display them with a download link.
Parameters:
Name | Type | Description |
---|---|---|
fileName |
string | The input file name. |
getLayerGroupIds(dataViewConfigs) → {Array}
- Source:
Get the layer groups ids from the data view configs.
Parameters:
Name | Type | Description |
---|---|---|
dataViewConfigs |
object | The configs. |
Returns:
The list of ids.
- Type
- Array
getObjectUrlFromTags(config) → {string}
Create an object url from (JSON) tags.
Parameters:
Name | Type | Description |
---|---|---|
config |
object | The data configuration. |
Returns:
The object URL.
- Type
- string
getPixelGeneratorName() → {string}
- Source:
Returns:
The name of the selected pixel generator.
- Type
- string
isValidRules() → {boolean}
- Source:
Is the JSON valid?
Returns:
True if the input JSON is valid.
- Type
- boolean
isValidTags() → {boolean}
- Source:
Is the JSON valid?
Returns:
True if the tags are a valid JSON.
- Type
- boolean
onChangeParsers(input)
- Source:
Handle a parser change,
Parameters:
Name | Type | Description |
---|---|---|
input |
object | The new parser. |
onLoadDICOMFile(event)
- Source:
Handle DICOM file load
Parameters:
Name | Type | Description |
---|---|---|
event |
object | The onload event. |
onLocalChkChange()
- Source:
Update dicom links on checkbox change.
prepareAndGetMPRDataViewConfig() → {object}
- Source:
Create MPR view config(s).
Returns:
The view config.
- Type
- object
prepareAndGetSimpleDataViewConfig() → {object}
- Source:
Create simple view config(s).
Returns:
The view config.
- Type
- object
setupBindersCheckboxes()
- Source:
Setup the binders checkboxes
setupData()
- Source:
Setup the data.
setupParsers()
- Source:
Setup the parsers.
updateDataList(datalist)
- Source:
Update the data list of the data runner.
Parameters:
Name | Type | Description |
---|---|---|
datalist |
Array | The new data list. |