NaviNIBS.Navigator.GUI.Widgets.EditTargetWidget module¶
- class NaviNIBS.Navigator.GUI.Widgets.EditTargetWidget.CoordinateWidget(session=None, target=None, whichCoord='target', whichOtherCoord='entry', doAutoUpdateOtherCoord=True, onNewCoordRequested=None, setCoordButtonLabel='Set coord', wdgt=NOTHING)[source]¶
Bases:
object
- Parameters:
_session
_target
_whichCoord
_whichOtherCoord
_doAutoUpdateOtherCoord – Whether to automatically update entry coordinate if we are changing target coordinate (e.g. to keep overall trajectory roughly perpendicular to scalp)
_onNewCoordRequested – Use this to specify a callback for user pressing button to set new coordinates (e.g. from a cursor in a view outside this widget). Callable should return ndarray vector of coordinates in world space.
_setCoordButtonLabel
_wdgt
- _whichCoord: str¶
- _whichOtherCoord: str¶
- _doAutoUpdateOtherCoord: bool¶
Whether to automatically update entry coordinate if we are changing target coordinate (e.g. to keep overall trajectory roughly perpendicular to scalp)
- _onNewCoordRequested: Callable[[], ndarray] | None¶
Use this to specify a callback for user pressing button to set new coordinates (e.g. from a cursor in a view outside this widget).
Callable should return ndarray vector of coordinates in world space.
- _setCoordButtonLabel: str¶
- _wdgt: QWidget¶
- property session¶
- property target¶
- property coordAttrib¶
- property wdgt¶
- class NaviNIBS.Navigator.GUI.Widgets.EditTargetWidget.EntryAnglesWidgets(*, layout, session=None, target=None)[source]¶
Bases:
object
- Parameters:
_layout
_session
_target
- _layout: QFormLayout¶
- property target¶
- property pivotWdgt¶
- property angleRefWdgt¶
- property angleXWdgt¶
- property angleYWdgt¶
- class NaviNIBS.Navigator.GUI.Widgets.EditTargetWidget.EditTargetWidget(*, session, wdgt=NOTHING, getNewTargetCoord=None, setTargetCoordButtonLabel='Set target coord', getNewEntryCoord=None, setEntryCoordButtonLabel='Set entry coord', doTrackModelSelectedTarget=True)[source]¶
Bases:
object
- Parameters:
_session
_wdgt
_getNewTargetCoord – Use this to specify a callback for user pressing button to set new target coordinates (e.g. from a cursor in a view outside this widget).
_setTargetCoordButtonLabel
_getNewEntryCoord – Use this to specify a callback for user pressing button to set new entry coordinates (e.g. from a cursor in a view outside this widget).
_setEntryCoordButtonLabel
_doTrackModelSelectedTarget
- _wdgt: QWidget¶
- property wdgt¶
- property target¶