Methods
(inner) Contact(contact, onClick) → {JSX.Element}
Contact component for displaying individual electrode contacts
Name | Type | Description |
---|---|---|
contact | Object | Data for the contact |
onClick | function | Handler to reflect the change on contact that was clicked |
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
Name | Type | Attributes | Description |
---|---|---|---|
isLoaded | boolean | State variable to tell if the image is loaded or not to the parent component | |
onLoad | function | Callback when image loads | |
electrodes | Array | Array of electrode data | |
onContactClick | function | Contact click handler | |
onStateChange | function | State change handler | |
savedState | Object | <optional> | Saved state data |
NIFTIimage component
- Type:
- JSX.
Element
(inner) Resection(initialDataopt, onStateChange, savedStateopt) → {JSX.Element}
Resection page for neurosurgeon to mark contacts that need to be tested
Name | Type | Attributes | Description |
---|---|---|---|
initialData | Object | <optional> | Initial data for electrodes |
onStateChange | function | Callback for state changes | |
savedState | Object | <optional> | Saved state data |
Resection component
- Type:
- JSX.
Element
(inner) getMarkColor(contact) → {string}
Gets CSS class for contact based on mark status
Name | Type | Description |
---|---|---|
contact | Object | Data for the contact |
CSS classes for the contact
- Type:
- string
(inner) getMarkName(contact) → {string}
Gets display name for contact mark status
Name | Type | Description |
---|---|---|
contact | Object | Contact data |
Display name for mark status
- Type:
- string