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 |
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
- *
getRelativeRange(actor, absoluteRange) → {*}
- Source:
Rescale abs range to relative range values (eg 0-1)
Parameters:
| Name | Type | Description |
|---|---|---|
actor |
* | |
absoluteRange |
* |
Returns:
wwwl object
- Type
- *
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)
- Source:
Create a plane to perform picking
Parameters:
| Name | Type | Description |
|---|---|---|
camera |
* | |
actor |
* |
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