PlaneHelper

Plane geometry helper.

Constructor

new PlaneHelper(imageGeometry, viewOrientation)

Parameters:
NameTypeDescription
imageGeometryGeometry

The image geometry.

viewOrientationMatrix33

The view orientation.

Classes

PlaneHelper

Methods

getCosines() → {Array.<number>}

Get the cosines of this plane.

Returns:

The 2 cosines vectors (3D).

Type: 
Array.<number>

getImageDeOrientedPoint3D(point) → {Point3D}

De-orient an input point from image to target space.

Parameters:
NameTypeDescription
pointPoint3D

The input point.

Returns:

The de-orienteded point.

Type: 
Point3D

getImageDeOrientedVector3D(vector) → {Vector3D}

De-orient an input vector from image to target space.

Parameters:
NameTypeDescription
vectorVector3D

The input vector.

Returns:

The de-orienteded vector.

Type: 
Vector3D

getImageOrientedPoint3D(planePoint) → {Point3D}

Orient an input point from target to image space.

Parameters:
NameTypeDescription
planePointPoint3D

The input vector.

Returns:

The orienteded vector.

Type: 
Point3D

getImageOrientedVector3D(planeVector) → {Vector3D}

Orient an input vector from target to image space.

Parameters:
NameTypeDescription
planeVectorVector3D

The input vector.

Returns:

The orienteded vector.

Type: 
Vector3D

getNativeScrollIndex() → {number}

Get the native (image) scroll dimension index.

Returns:

The index.

Type: 
number

getOffset3DFromPlaneOffset(offset2D) → {Vector3D}

Get a 3D offset from a plane one.

Parameters:
NameTypeDescription
offset2DScalar2D

The plane offset as {x,y}.

Returns:

The 3D world offset.

Type: 
Vector3D

getPlaneOffsetFromOffset3D(offset3D) → {Scalar2D}

Get a plane offset from a 3D one.

Parameters:
NameTypeDescription
offset3DScalar3D

The 3D offset as {x,y,z}.

Returns:

The plane offset as {x,y}.

Type: 
Scalar2D

getPlanePointFromPosition(point) → {Point3D}

Get a 2D plane position from a world position.

Parameters:
NameTypeDescription
pointPoint

The world position.

Returns:

The plane point.

Type: 
Point3D

getPlanePoints(position) → {Array.<Point3D>}

Get a list of points that define the plane at input position, given this classes orientation.

Parameters:
NameTypeDescription
positionPoint

The position.

Returns:

An origin and 2 cosines vectors.

Type: 
Array.<Point3D>

getPositionFromPlanePoint(point2D, k) → {Point3D}

Get a world position from a 2D plane position.

Parameters:
NameTypeDescription
point2DPoint2D

The plane point.

knumber

The slice index.

Returns:

The world position.

Type: 
Point3D

getScrollIndex() → {number}

Get the (view) scroll dimension index.

Returns:

The index.

Type: 
number

getTargetDeOrientedPoint3D(planePoint) → {Point3D}

De-orient an input point from target to real space.

Parameters:
NameTypeDescription
planePointPoint3D

The input point.

Returns:

The de-orienteded point.

Type: 
Point3D

getTargetDeOrientedVector3D(planeVector) → {Vector3D}

De-orient an input vector from target to real space.

Parameters:
NameTypeDescription
planeVectorVector3D

The input vector.

Returns:

The de-orienteded vector.

Type: 
Vector3D

getTargetOrientation() → {Matrix33}

Get the target orientation.

Returns:

The orientation matrix.

Type: 
Matrix33

getTargetOrientedPositiveXYZ(values) → {Scalar3D}

Reorder values to follow target orientation.

Parameters:
NameTypeDescription
valuesScalar3D

Values as {x,y,z}.

Returns:

Reoriented values as {x,y,z}.

Type: 
Scalar3D

getTargetOrientedVector3D(vector) → {Vector3D}

Orient an input vector from real to target space.

Parameters:
NameTypeDescription
vectorVector3D

The input vector.

Returns:

The oriented vector.

Type: 
Vector3D

getViewOrientation() → {Matrix33}

Get the view orientation.

Returns:

The orientation matrix.

Type: 
Matrix33

isAquisitionOrientation() → {boolean}

Is this view in the same orientation as the image aquisition.

Returns:

True if in aquisition plane.

Type: 
boolean

worldToIndex(point) → {Index}

Image world to index.

Parameters:
NameTypeDescription
pointPoint

The input point.

Returns:

The corresponding index.

Type: 
Index