Methods

(inner) Contact(contact, onClick) → {JSX.Element}

Contact component for displaying individual electrode contacts

Parameters:
NameTypeDescription
contactObject

Data for the contact

onClickfunction

Handler to reflect the change on contact that was clicked

Returns:

A tile that shows information about the contact

Type: 
JSX.Element

(inner) NIFTIimage(isLoaded, onLoad, electrodes, onContactClick, onStateChange, savedStateopt) → {JSX.Element}

NIFTIimage component for displaying and interacting with NIfTI images

Parameters:
NameTypeAttributesDescription
isLoadedboolean

State variable to tell if the image is loaded or not to the parent component

onLoadfunction

Callback when image loads

electrodesArray

Array of electrode data

onContactClickfunction

Contact click handler

onStateChangefunction

State change handler

savedStateObject<optional>

Saved state data

Returns:

NIFTIimage component

Type: 
JSX.Element

(inner) Resection(initialDataopt, onStateChange, savedStateopt) → {JSX.Element}

Resection page for neurosurgeon to mark contacts that need to be tested

Parameters:
NameTypeAttributesDescription
initialDataObject<optional>

Initial data for electrodes

onStateChangefunction

Callback for state changes

savedStateObject<optional>

Saved state data

Returns:

Resection component

Type: 
JSX.Element

(inner) getMarkColor(contact) → {string}

Gets CSS class for contact based on mark status

Parameters:
NameTypeDescription
contactObject

Data for the contact

Returns:

CSS classes for the contact

Type: 
string

(inner) getMarkName(contact) → {string}

Gets display name for contact mark status

Parameters:
NameTypeDescription
contactObject

Contact data

Returns:

Display name for mark status

Type: 
string