new PlaneHelper(spacing, imageOrientation, viewOrientation)
Plane geometry helper.
Name | Type | Description |
---|---|---|
spacing | dwv. | The spacing. |
imageOrientation | dwv. | The image oientation. |
viewOrientation | dwv. | The view orientation. |
- Source
Methods
getImageDeOrientedVector3D(vector) → {dwv.math.Vector3D}
De-orient an input vector from image to target space. WARN: returns absolute values... TODO: check why abs is needed...
Name | Type | Description |
---|---|---|
vector | dwv. | The input vector. |
- Source
The de-orienteded vector.
- Type:
- dwv.
math. Vector3D
getImageOrientedVector3D(planeVector) → {dwv.math.Vector3D}
Orient an input vector from target to image space. WARN: returns absolute values... TODO: check why abs is needed...
Name | Type | Description |
---|---|---|
planeVector | dwv. | The input vector. |
- Source
The orienteded vector.
- Type:
- dwv.
math. Vector3D
getNativeScrollIndex() → {number}
Get the native (image) scroll dimension index.
- Source
The index.
- Type:
- number
getOffset3DFromPlaneOffset(offset2D) → {dwv.math.Vector3D}
Get a 3D offset from a plane one.
Name | Type | Description |
---|---|---|
offset2D | object | The plane offset as {x,y}. |
- Source
The 3D world offset.
- Type:
- dwv.
math. Vector3D
getPlaneOffsetFromOffset3D(offset3D) → {object}
Get a plane offset from a 3D one.
Name | Type | Description |
---|---|---|
offset3D | object | The 3D offset as {x,y,z}. |
- Source
The plane offset as {x,y}.
- Type:
- object
getScrollIndex() → {number}
Get the (view) scroll dimension index.
- Source
The index.
- Type:
- number
getTargetDeOrientedVector3D(planeVector) → {dwv.math.Vector3D}
De-orient an input vector from target to real space.
Name | Type | Description |
---|---|---|
planeVector | dwv. | The input vector. |
- Source
The de-orienteded vector.
- Type:
- dwv.
math. Vector3D
getTargetOrientedPositiveXYZ(values) → {object}
Reorder values to follow target orientation. WARN: returns absolute values... TODO: check why abs is needed...
Name | Type | Description |
---|---|---|
values | object | Values as {x,y,z}. |
- Source
Reoriented values as {x,y,z}.
- Type:
- object
getTargetOrientedVector3D(vector) → {dwv.math.Vector3D}
Orient an input vector from real to target space.
Name | Type | Description |
---|---|---|
vector | dwv. | The input vector. |
- Source
The oriented vector.
- Type:
- dwv.
math. Vector3D