Interface: OrientationVectors
viewUp- An array of three floating point numbers describing a vector that represents the up direction for the view.viewPlaneNormal- The direction of the projection
see Axial vs Sagittal vs Coronal see VTK.js: Rendering_Core_Camera
Example
renderingEngine.setViewports([
{
viewportId: 'a-viewport-uid',
type: ViewportType.ORTHOGRAPHIC,
element: document.querySelector('div'),
defaultOptions: {
orientation: {
viewUp: [0, 0, 1],
viewPlaneNormal: [1, 0, 0],
},
background: [1, 0, 0],
},
}]);
Properties
viewPlaneNormal
viewPlaneNormal:
Point3
Slice Normal for the viewport - the normal that points in the opposite direction of the slice normal out of screen and is negative of direction of projection
Defined in
packages/core/src/types/OrientationVectors.ts:31
viewUp?
optionalviewUp:Point3
viewUp direction for the viewport - the vector that points from bottom to top of the viewport