Module: GUI Handlers

Methods

(static) cpSelectClick(index, cp, notclickedopt)

Events to be fired when a control point was selected in the list.
May be called to tweak the scene.
Parameters:
Name Type Attributes Default Description
index Number Index of the fiber in Phantom array.
cp Number Index of the control point in FiberSource array.
notclicked Boolean <optional>
false If true, does not change UI or guiStatus object. Useful when changing the scene or previewing.
Source:

(static) fiberSelectClick(index, notclickedopt)

Events to be fired when a fiber was selected in the list.
May be called to tweak the scene.
Parameters:
Name Type Attributes Default Description
index Number Index of the fiber in Phantom array.
notclicked Boolean <optional>
false If true, does not change UI or guiStatus object. Useful when changing the scene or previewing.
Source:

(static) moveCameraXY()

Moves view to the XY plane.
Source:

(static) moveCameraXZ()

Moves view to the XZ plane.
Source:

(static) moveCameraZY()

Moves view to the ZY plane.
Source:

(static) newCPclick(index, index)

Fires the addition of a new Control Point after the current one. Gets into edit.
Parameters:
Name Type Description
index Number Index of the fiber in Phantom array.
index Number Index of the control point in FiberSource array.
Source:

(static) newCPonmouseout(index, cp) → {FiberSource}

Restores the scene after unhover in new control point button.
Parameters:
Name Type Description
index Number Index of the fiber in Phantom array.
cp Number Index of the control point in FiberSource array.
Source:
Returns:
Actual source object.
Type
FiberSource

(static) newCPonmouseover(index, cp)

Hover for new control point button. Simulates in the scene the addition of a new control point in green color.
Parameters:
Name Type Description
index Number Index of the fiber in Phantom array.
cp Number Index of the control point in FiberSource array.
Source:

(static) newFiberClick()

Fires the creation of a new fiber and goes into edition.
Source:

(static) newIsotropicRegionClick()

Fires the creation of a new isotropic region and goes into edition.
Source:

(static) opacitySelectChange(selector)

Fired when value in the opacity selector is changed. Corrects the value and fires the scene change.
Parameters:
Name Type Description
selector DOM Opacity selector DOM element.
Source:

(static) optionOnMouseLeave(option)

Restores class to onmouseovered options in lists.
Parameters:
Name Type Description
option DOM Parent option DOM element.
Source:

(static) optionOnMouseOver(option)

Applies hover classes to onmouseovered options in lists.
Parameters:
Name Type Description
option DOM Parent option DOM element.
Source:

(static) optionSelect(option)

Applies selected class to selected options in lists. Removes selected options from other lists.
Parameters:
Name Type Description
option DOM Parent option DOM element.
Source:

(static) regionSelectClick(index, notclickedopt)

Events to be fired when an isotropic region was selected in the list.
May be called to tweak the scene.
Parameters:
Name Type Attributes Default Description
index Number Index of the isotropic region in Phantom array.
notclicked Boolean <optional>
false If true, does not change UI or guiStatus object. Useful when changing the scene or previewing.
Source:

(static) removeCPclick()

Fires the removal of a control point and quits edition. Prompts the user for confirmation.
Source:

(static) removeFiberClick()

Fires the removal of a fiber and quits edition. Prompts the user for confirmation.
Source:

(static) removeIsotropicRegionClick()

Fires the removal of an isotropic region and quits edition. Prompts the user for confirmation.
Source:

(static) saveClick()

Pushes the download of the current Phantom.
Source:

(static) selectOption(list, number)

Changes class of option as if it was clicked, given the list and its index.
Parameters:
Name Type Description
list DOM List's DOM element.
number Number Index of option to select
Source:

(static) switchViewButton()

Handler for preview button. Switches fade of the scene.
Source:

(static) toggleAxes()

Toogle axes view button. Switches between showing or removing in the scene.
Source:

(static) toggleSkeleton()

Handler for toggle skeleton button. Reveals all skeleton forms of the phantom.
Source: