MPR example app
View the source /foviaserver/public/apps/mpr/mpr.js To run the example, click onhttp://localhost:8088/apps/mpr/mpr.html
MPR example app
This example shows how to create a 2x2 layout, with a sagittal, axial, and coronal orthogonal views, along with the following:- use the HTMLDoubleBufferViewport3D for HTML viewport creation
- render cross-reference lines that are orthogonal to each other using the onDrawCallback specified in Fovia.UI.HTMLViewport3D.init()
- callbacks for linking view
- create a FoviaViewport that supports repaint() and double buffering
- add a window/level mouse adaptor
- example how to create a render parameters structure (XML preset) for a 3D view
- turn off FPS in viewport
- respond to a resize window event
- project a 3D point to 2D projection plane coordinates in parallel rendering mode
The concepts shown for drawing of cross-reference lines can be extended to drawing of any elements, including annotations on the canvas.View the source /foviaserver/public/apps/mpr/mpr.js To run the example, click onhttp://localhost:8088/apps/mpr/mpr.html