new BodyViewer(ModelsLoaderIn, PanelName) → {PJP.BodyViewer}
Provides rendering of the 3D-scaffold data in the dom of the provided id with models
defined in the modelsLoader.
Parameters:
Name | Type | Description |
---|---|---|
ModelsLoaderIn |
PJP.ModelsLoader | defined in modelsLoade.js, providing locations of files. |
PanelName |
String | Id of the target element to create the PJP.BodyViewer on. |
- Source:
Returns:
- Type
- PJP.BodyViewer
Methods
(async) readSystemMeta()
Signal the PJP.BodyViewer to start reading the meta file once the UI is ready.
- Source:
setOrgansViewer(OrgansViewerIn)
Set the organs viewer this PJP.BodyViewer fires event to.
Parameters:
Name | Type | Description |
---|---|---|
OrgansViewerIn |
PJP.OrgansViewer | target Organs Viewer to fire the event to. |
- Source:
(inner) addSystemFolders()
This method add all system folders to the dat.gui user interface.
- Source:
(inner) initialise()
Initialise the PJP.BodyViewer, it will load snippets/bodyViewer.html
which contains the general layout of this viewer, this is called when
the PJP.BodyViewer is created.
- Source:
(inner) initialiseBodyRenderer()
Initialise everything in the bodyRender, including the 3D renderer,
dat.gui UI and picker for the 3D renderer.
- Source:
(inner) showBodyTooltip(name, x, y)
Display the provided name with a tool tip.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | String to display |
x |
Number | windows x coordinates |
y |
Number | windows y coordinates |
- Source:
Type Definitions
_hoverBodyCallback
This callback is triggered when a body part is hovered over by the mosue.
- Source:
_pickingBodyCallback
This callback is triggered when a body part is clicked.
- Source:
changeBodyPartsVisibility
This is called when a body part visibility control is switch on/off.
- Source: