NaviNIBS.Navigator.GUI.ViewPanels.CameraPanel module

Bases: QueuedRedrawMixin

Parameters:
  • _positionsClient

  • _session

Bases: MainViewPanelWithDockWidgets

For now, assume this will always be connecting to an NDI Polaris camera with PyIGTLink.

In the future, can update to have a more device-agnostic base class that is subclassed for specific localization systems

Parameters:
  • _session

  • _label

  • _iconFn

  • _key

  • _autoLayout – Set to False to disable auto layout

Set to False to disable auto layout

Should return (True, None) if panel can be enabled, and (False, ‘<Reason why cannot be enabled>’) otherwise. The second output in the latter case should be a string explaining why the panel cannot be enabled, e.g. ‘Registration must be completed before navigating’

Return type:

tuple[bool, Optional[str]]