Members
larvitarInitialized
- Source:
Utility function to read, parse, load and render a dcm serie with larvitar (tested with larvitar 1.2.7)
Methods
addSphereInPoint()
- Source:
Add a sphere in a specific point (useful for debugging)
applyAngleStrategy(state)
- Source:
Apply the logic to measure angle between two segments
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | The measurement state |
applyLengthStrategy(state)
- Source:
Apply the logic to measure length between two points
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | The measurement state |
buildVtkVolume(header, data) → {vtkImageData}
- Source:
Build vtk volume (vtkImageData)
Parameters:
Name | Type | Description |
---|---|---|
header |
Object | |
data |
TypedArray |
Returns:
- Type
- vtkImageData
createRGBStringFromRGBValues(rgb) → {string}
- Source:
RGB string from RGB numeric values
Parameters:
Name | Type | Description |
---|---|---|
rgb |
* |
Returns:
In the form rgb(128, 128, 128)
- Type
- string
createVolumeActor(contentData) → {vtkVolume}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
contentData |
* |
Returns:
the volume actor
- Type
- vtkVolume
degrees2radians(degrees) → {Number}
- Source:
Convert angles DEG to RAD
Parameters:
Name | Type | Description |
---|---|---|
degrees |
Number |
Returns:
- Type
- Number
fitToWindow(genericRenderWindow, dir)
- Source:
Fit camera to window
Parameters:
Name | Type | Description |
---|---|---|
genericRenderWindow |
vtkGenericRenderWindow | |
dir |
"x" | "y" | "z" |
getAbsoluteRange(actor, relativeRange) → {*}
- Source:
Rescale relative range to abs range values (eg hist min-max)
Parameters:
Name | Type | Description |
---|---|---|
actor |
* | |
relativeRange |
* |
Returns:
wwwl object
- Type
- *
getCroppingPlanes(imageData, ijkPlanes) → {Array}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
imageData |
* | |
ijkPlanes |
* |
Returns:
array of vtkPlanes
- Type
- Array
getRelativeRange(actor, absoluteRange) → {*}
- Source:
Rescale abs range to relative range values (eg 0-1)
Parameters:
Name | Type | Description |
---|---|---|
actor |
* | |
absoluteRange |
* |
Returns:
wwwl object
- Type
- *
getVideoCardInfo() → {Object}
- Source:
Get info about webgl context (GPU)
Returns:
- {vendor, renderer} or {error}
- Type
- Object
getVOI(volume) → {Object}
- Source:
Compute image center and width (wwwl)
Parameters:
Name | Type | Description |
---|---|---|
volume |
vtkImageData |
Returns:
{windowCenter, windowWidth}
- Type
- Object
getVolumeCenter(volumeMapper) → {Array}
- Source:
Compute the volume center
Parameters:
Name | Type | Description |
---|---|---|
volumeMapper |
vtkVolumeMapper |
Returns:
In the form [x,y,z]
- Type
- Array
setActorProperties(actor)
- Source:
Set actor appearance properties
Parameters:
Name | Type | Description |
---|---|---|
actor |
* |
setCamera(center)
- Source:
Set camera lookat point
Parameters:
Name | Type | Description |
---|---|---|
center |
Array | As [x,y,z] |
setupCropWidget()
- Source:
Initialize a crop widget
setupPickingPlane(camera, actor) → {Object}
- Source:
Create a plane to perform picking
Parameters:
Name | Type | Description |
---|---|---|
camera |
* | |
actor |
* |
Returns:
- {plane: vtkPlane, planeActor: vtkActor}
- Type
- Object
Type Definitions
State
- Source:
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
slicePlaneNormal |
Array.<Number> | The slice plane normal as [x,y,z] |
|||||||||
sliceViewUp |
Array.<Number> | The up vector as [x,y,z] |
|||||||||
slicePlaneXRotation |
Number | The x axis rotation in deg |
|||||||||
slicePlaneYRotation |
Number | The y axis rotation in deg |
|||||||||
viewRotation |
Number | The view rotation in deg |
|||||||||
sliceThickness |
Number | The MIP slice thickness in px |
|||||||||
blendMode |
String | The active blending mode ("MIP", "MinIP", "Average") |
|||||||||
window |
Object | wwwl Properties
|
Internal state of a single view
Type:
- Object