Just used for tests.
- Source
Methods
(static) checkIterator(assert, getIter, theoValues, name)
Check iter.
Name | Type | Description |
---|---|---|
assert | object | The qunit assert. |
getIter | function | Function to get the iter at a given position. |
theoValues | Array | Theoretical values. |
name | string | String to identify test. |
(static) compare(jsonTags, dicomElements, name, comparator)
Compare JSON tags and DICOM elements
Name | Type | Description |
---|---|---|
jsonTags | object | The JSON tags. |
dicomElements | object | The DICOM elements |
name | string | The name of the test. |
comparator | object | An object with an equal function (such as Qunit assert). |
(static) compareImageAndBuffer(image, size, buffer, rsi) → {object}
Compare an image and a buffer.
Name | Type | Description |
---|---|---|
image | object | The input image. |
size | object | The size of the input buffer. |
buffer | Array | The input buffer. |
rsi | object | The rescale slope of the input buffer. |
- Source
Statistics of the value and rescaled value differences.
- Type:
- object
(static) generate()
Generate DICOM data
(static) getMessagePara(text, type) → {object}
Get a message paragraph.
Name | Type | Description |
---|---|---|
text | string | The text message. |
type | string | The message type used as css class. |
- Source
The paragraph element.
- Type:
- object
(static) launchJSONLint()
open JSONLint to check the rules
(static) launchJSONlint()
Open JSONLint to check the tags.
(static) onDOMContentLoadedColourmap()
Last minute.
(static) onDOMContentLoadedGenerator()
Last minute.
(static) onDOMContentLoadedPacs()
Last minute
- Source
(static) onDOMContentLoadedSynthData()
Last minute.
(static) onDOMContentLoadedViewer()
Last minute.
- Source
(static) onGenerate()
Generate DICOM data
(static) onInputDICOMFile(event)
handle input DICOM file
Name | Type | Description |
---|---|---|
event | object | The input field event. |
(static) onInputImageFiles(event)
Handle input image file
Name | Type | Description |
---|---|---|
event | object | The input field event. |
(static) onInputRulesFile(event)
handle input rules file
Name | Type | Description |
---|---|---|
event | object | The input field event. |
(static) onInputTagsFile(event)
Handle input tags file.
Name | Type | Description |
---|---|---|
event | object | The input field event. |
(static) onSaveTags()
Save the tags as a JSON file.
(static) qidoSearch()
Launch a QIDO search on series.
- Source
(static) runIterator(iter) → {Array}
Run an input iterator and store values.
Name | Type | Description |
---|---|---|
iter | object | The iterator. |
The result array.
- Type:
- Array
(static) sauceTest(caps)
Launch a sauce GUI test.
Name | Type | Description |
---|---|---|
caps | object | Desired capabilities for the webdriver. Minimum of {'browserName', 'version', 'platform'}. |
- Source
(static) saveRules()
Save the rules as a JSON file.
(static) stow()
Launch a STOW request.
- Source
(static) testWriteReadDataFromConfig(config, assert)
Test a JSON config: write a DICOM file and read it back.
Name | Type | Description |
---|---|---|
config | object | A JSON config representing DICOM tags. |
assert | object | A Qunit assert. |
(static) viewerSetup()
Setup simple dwv app.
- Source