Constructor
new VolumeImageViewer(options)
Create a viewer instance for displaying VOLUME images.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Members
areROIsVisible
Whether annotated regions of interest are currently visible.
boundingBox :Array.<Array.<number>>
Bounding box that contains the images.
Type:
- Array.<Array.<number>>
frameOfReferenceUID :string
Frame of Reference UID.
Type:
- string
isDragPanInteractionActive :boolean
Whether drag pan interaction is active.
Type:
- boolean
isDragZoomInteractionActive :boolean
Whether drag zoom interaction is active.
Type:
- boolean
isDrawInteractionActive :boolean
Whether draw interaction is active
Type:
- boolean
isModifyInteractionActive :boolean
Whether modify interaction is active.
Type:
- boolean
isSelectInteractionActive :boolean
Whether select interaction is active.
Type:
- boolean
isTranslateInteractionActive :boolean
Whether translate interaction is active.
Type:
- boolean
numberOfROIs
Number of annotated regions of interest.
numLevels :number
Number of zoom levels.
Type:
- number
physicalOffset :Array.<number>
Physical offset of images.
Offset along the X and Y axes of the slide coordinate system in
millimeter unit.
Type:
- Array.<number>
physicalSize :Array.<number>
Physical size of images.
Length along the X and Y axes of the slide coordinate system in
millimeter unit.
Type:
- Array.<number>
size :Array.<number>
Size of the viewport.
Type:
- Array.<number>
Methods
activateDragPanInteraction(options)
Activate drag pan interaction.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Options. |
activateDragZoomInteraction(options)
Activate drag zoom interaction.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Options. |
activateDrawInteraction(options)
Activate the draw interaction for graphic annotation of regions of interest.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Drawing options
Properties
|
|||||||||||||||||||||
styleOptions.stroke |
Object |
<optional> |
Style options for the contour of
the geometry
Properties
|
||||||||||||||||||||
styleOptions.fill |
Object |
<optional> |
Style options for the body of the
geometry
Properties
|
activateModifyInteraction(options)
Activate modify interaction.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Modification options. |
activateOpticalPath(opticalPathIdentifier)
Activate an optical path.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
activateSelectInteraction(options)
Activate select interaction.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | selection options. |
activateSnapInteraction(options)
Activate snap interaction.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Snap options. |
activateTranslateInteraction(options)
Activate translate interaction.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Translation options. |
addAnnotationGroups(metadata)
Add annotation groups.
Parameters:
Name | Type | Description |
---|---|---|
metadata |
metadata.MicroscopyBulkSimpleAnnotations | Metadata of a DICOM Microscopy Simple Bulk Annotations instance |
addParameterMappings(metadata)
Add parameter mappings.
Parameters:
Name | Type | Description |
---|---|---|
metadata |
Array.<metadata.ParametricMap> | Metadata of one or more DICOM Parametric Map instances |
addROI(roi, styleOptionsopt)
Add a regions of interest.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
roi |
roi.ROI | Regions of interest | ||||||||||||||||||||||||||||
styleOptions |
Object |
<optional> |
Style options
Properties
|
addROIEvaluation(uid, item)
Add a qualitative evaluation to a region of interest.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | Unique identifier of the region of interest |
item |
Object | CODE content item representing a qualitative evaluation |
addROIMeasurement(uid, item)
Add a measurement to a region of interest.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | Unique identifier of the region of interest |
item |
Object | NUM content item representing a measurement |
addSegments(metadata)
Add segments.
Parameters:
Name | Type | Description |
---|---|---|
metadata |
Array.<metadata.Segmentation> | Metadata of one or more DICOM Segmentation instances |
addViewportOverlay(options)
Add a new viewport overlay.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Overlay options
Properties
|
cleanup()
Clean up.
Release allocated memory and clear the viewport.
deactivateDragPanInteraction()
Deactivate drag pan interaction.
deactivateDragZoomInteraction()
Deactivate drag zoom interaction.
deactivateDrawInteraction()
Deactivate draw interaction.
deactivateModifyInteraction()
Deactivate modify interaction.
deactivateOpticalPath(opticalPathIdentifier)
Deactivate an optical path.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
deactivateSelectInteraction()
Deactivate select interaction.
deactivateSnapInteraction()
Deactivate snap interaction.
deactivateTranslateInteraction() → {void}
Deactivate translate interaction.
Returns:
- Type
- void
getAllAnnotationGroups() → {Array.<annotation.AnnotationGroup>}
Get all annotation groups.
Returns:
- Type
- Array.<annotation.AnnotationGroup>
getAllOpticalPaths() → {Array.<opticalPath.OpticalPath>}
Get all optical paths.
Returns:
- Type
- Array.<opticalPath.OpticalPath>
getAllParameterMappings() → {Array.<mapping.ParameterMapping>}
Get all parameter mappings.
Returns:
- Type
- Array.<mapping.ParameterMapping>
getAllROIs() → {Array.<roi.ROI>}
Get all annotated regions of interest.
Returns:
Array of regions of interest.
- Type
- Array.<roi.ROI>
getAllSegments() → {Array.<segment.Segment>}
Get all segments.
Returns:
- Type
- Array.<segment.Segment>
getAnnotationGroupDefaultStyle(annotationGroupUID) → {Object}
Get default style of an annotation group.
Parameters:
Name | Type | Description |
---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group |
Returns:
- Default style settings
- Type
- Object
getAnnotationGroupMetadata(annotationGroupUID) → {metadata.MicroscopyBulkSimpleAnnotations}
Get annotation group metadata.
Parameters:
Name | Type | Description |
---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group |
Returns:
- Metadata of DICOM
Microscopy Bulk Simple Annotations instance
getAnnotationGroupStyle(annotationGroupUID) → {Object}
Get style of an annotation group.
Parameters:
Name | Type | Description |
---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group |
Returns:
- Style settings
- Type
- Object
getOpticalPathDefaultStyle(opticalPathIdentifier) → {Object}
Get the default style of an optical path.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
Default style of optical path
- Type
- Object
getOpticalPathMetadata(opticalPathIdentifier) → {Array.<metadata.VLWholeSlideMicroscopyImage>}
Get image metadata for an optical path.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
Slide microscopy image
metadata
- Type
- Array.<metadata.VLWholeSlideMicroscopyImage>
getOpticalPathStyle(opticalPathIdentifier) → {Object}
Get the style of an optical path.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
Style of optical path
- Type
- Object
getParameterMappingDefaultStyle(mappingUID) → {Object}
Get the default style of a parameter mapping.
Parameters:
Name | Type | Description |
---|---|---|
mappingUID |
string | Unique tracking identifier of mapping |
Returns:
Default style Options
- Type
- Object
getParameterMappingMetadata(mappingUID) → {Array.<metadata.ParametricMap>}
Get image metadata for a parameter mapping.
Parameters:
Name | Type | Description |
---|---|---|
mappingUID |
string | Unique tracking identifier of mapping |
Returns:
Metadata of DICOM Parametric Map
instances
- Type
- Array.<metadata.ParametricMap>
getParameterMappingStyle(mappingUID) → {Object}
Get the style of a parameter mapping.
Parameters:
Name | Type | Description |
---|---|---|
mappingUID |
string | Unique tracking identifier of mapping |
Returns:
Style Options
- Type
- Object
getPixelSpacing(options) → {Array.<number>}
Get the pixel spacing at a given zoom level.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object | Options.
Properties
|
Returns:
Spacing between the centers of two neighboring pixels
- Type
- Array.<number>
getROI(uid) → {roi.ROI}
Get an individual annotated region of interest.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | Unique identifier of the region of interest |
Returns:
Region of interest.
- Type
- roi.ROI
getROIStyle(uid) → {Object}
Get the style of a region of interest.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | Unique identifier of the regions of interest |
Returns:
- Style settings
- Type
- Object
getSegmentDefaultStyle(segmentUID) → {Object}
Get the default style of a segment.
Parameters:
Name | Type | Description |
---|---|---|
segmentUID |
string | Unique tracking identifier of segment |
Returns:
Default style settings
- Type
- Object
getSegmentMetadata(segmentUID) → {Array.<metadata.Segmentation>}
Get image metadata for a segment.
Parameters:
Name | Type | Description |
---|---|---|
segmentUID |
string | Unique tracking identifier of segment |
Returns:
Metadata of DICOM Segmentation instances
- Type
- Array.<metadata.Segmentation>
getSegmentStyle(segmentUID) → {Object}
Get the style of a segment.
Parameters:
Name | Type | Description |
---|---|---|
segmentUID |
string | Unique tracking identifier of segment |
Returns:
Style settings
- Type
- Object
hideAnnotationGroup(annotationGroupUID)
Hide an annotation group.
Parameters:
Name | Type | Description |
---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group |
hideOpticalPath(opticalPathIdentifier)
Hide an optical path.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
hideParameterMapping(mappingUID)
Hide a parameter mapping.
Parameters:
Name | Type | Description |
---|---|---|
mappingUID |
string | Unique tracking identifier of a mapping |
hideROIs()
Hide annotated regions of interest.
hideSegment(segmentUID)
Hide a segment.
Parameters:
Name | Type | Description |
---|---|---|
segmentUID |
string | Unique tracking identifier of a segment |
isAnnotationGroupVisible(annotationGroupUID)
Is annotation group visible.
Parameters:
Name | Type | Description |
---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group |
isOpticalPathActive(opticalPathIdentifier) → {boolean}
Determine whether an optical path is active.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
active
- Type
- boolean
isOpticalPathColorable(opticalPathIdentifier) → {boolean}
Determine whether an optical path is colorable.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
yes/no answer
- Type
- boolean
isOpticalPathMonochromatic(opticalPathIdentifier) → {boolean}
Determine whether an optical path is monochromatic.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
yes/no answer
- Type
- boolean
isOpticalPathVisible(opticalPathIdentifier) → {boolean}
Determine if an optical path is visible.
Parameters:
Name | Type | Description |
---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier |
Returns:
- Type
- boolean
isParameterMappingVisible(mappingUID) → {boolean}
Determine if parameter mapping is visible.
Parameters:
Name | Type | Description |
---|---|---|
mappingUID |
string | Unique tracking identifier of a mapping |
Returns:
- Type
- boolean
isSegmentVisible(segmentUID) → {boolean}
Determine if segment is visible.
Parameters:
Name | Type | Description |
---|---|---|
segmentUID |
string | Unique tracking identifier of a segment |
Returns:
- Type
- boolean
navigate(options)
Navigate the view to a spatial position or resolution level.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options.
Properties
|
popROI() → {roi.ROI}
Pop the most recently annotated regions of interest.
Returns:
Regions of interest.
- Type
- roi.ROI
removeAllAnnotationGroups()
Remove all annotation groups.
removeAllParameterMappings()
Remove all parameter mappings.
removeAllROIs()
Remove all annotated regions of interest.
removeAllSegments()
Remove all segments.
removeAnnotationGroup(annotationGroupUID)
Remove an annotation group.
Parameters:
Name | Type | Description |
---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group |
removeParameterMapping(mappingUID)
Remove a parameter mapping.
Parameters:
Name | Type | Description |
---|---|---|
mappingUID |
string | Unique tracking identifier of a mapping |
removeROI(uid)
Remove an individual regions of interest.
Parameters:
Name | Type | Description |
---|---|---|
uid |
string | Unique identifier of the region of interest |
removeSegment(segmentUID)
Remove a segment.
Parameters:
Name | Type | Description |
---|---|---|
segmentUID |
string | Unique tracking identifier of a segment |
removeViewportOverlay(options)
Remove an existing viewport overlay.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object | Overlay options
Properties
|
render(options)
Render the images in the specified viewport container.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object | Rendering options.
Properties
|
resize() → {void}
Resize the viewer to fit the viewport.
Returns:
- Type
- void
setAnnotationGroupStyle(annotationGroupUID, styleOptions)
Set style of an annotation group.
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group | ||||||||||||||||
styleOptions |
Object | Style options
Properties
|
setOpticalPathStyle(opticalPathIdentifier, styleOptions)
Set the style of an optical path.
The style determine how grayscale stored values of a MONOCHROME2 image
will be transformed into pseudo-color display values.
Grayscale stored values are first transformed into normalized grayscale
display values, which are subsequently transformed into pseudo-color
values in RGB color space.
The input to the first transformation are grayscale stored values in the
range defined by parameter "limitValues", which specify a window for
optimizing display value intensity and contrast. The resulting normalized
grayscale display values are then used as input to the second
transformation, which maps them to pseudo-color values ranging from black
color (R=0, G=0, B=0) to the color defined by parameter "color" using
linear interpolation. Alternatively, a palette color lookup table can be
provided to perform more sophisticated pseudo-coloring.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier | ||||||||||||||||||||
styleOptions |
Object |
Properties
|
setParameterMappingStyle(mappingUID, styleOptions)
Set the style of a parameter mapping.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mappingUID |
string | Unique tracking identifier of mapping | ||||||||||||
styleOptions |
Object |
Properties
|
setROIStyle(uid, styleOptions)
Set the style of a region of interest.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
uid |
string | Unique identifier of the regions of interest | |||||||||||||||||||||||||||
styleOptions |
Object | Style options
Properties
|
setSegmentStyle(segmentUID, styleOptions)
Set the style of a segment.
Parameters:
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
segmentUID |
string | Unique tracking identifier of segment | ||||||||
styleOptions |
Object | Style options
Properties
|
showAnnotationGroup(annotationGroupUID, styleOptions)
Show an annotation group.
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
annotationGroupUID |
string | Unique identifier of an annotation group | ||||||||||||||||
styleOptions |
Object |
Properties
|
showOpticalPath(opticalPathIdentifier, styleOptionsopt)
Show an optical path.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opticalPathIdentifier |
string | Optical Path Identifier | |||||||||||||||||||||
styleOptions |
Object |
<optional> |
Properties
|
showParameterMapping(mappingUID, styleOptionsopt)
Show a parameter mapping.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mappingUID |
string | Unique tracking identifier of a mapping | |||||||||||||
styleOptions |
Object |
<optional> |
Properties
|
showROIs()
Show annotated regions of interest.
showSegment(segmentUID, styleOptionsopt)
Show a segment.
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
segmentUID |
string | Unique tracking identifier of a segment | |||||||||
styleOptions |
Object |
<optional> |
Properties
|
toggleOverviewMap() → {void}
Toggle overview map.
Returns:
- Type
- void
updateROI(roi)
Update properties of a region of interest.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
roi |
Object | ROI to be updated
Properties
|