NaviNIBS.Navigator.GUI.ViewPanels.CameraPanel module¶
- class NaviNIBS.Navigator.GUI.ViewPanels.CameraPanel.CameraObjectsView(positionsClient, session)[source]¶
Bases:
QueuedRedrawMixin
- Parameters:
_positionsClient
_session
- _positionsClient: ToolPositionsClient¶
- finishedAsyncInit: Event¶
- property plotter¶
- property session¶
- class NaviNIBS.Navigator.GUI.ViewPanels.CameraPanel.CameraPanel(session=None, label=None, iconFn=None, key='Camera', autoLayout=True)[source]¶
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
- _autoLayout: str | bool¶
Set to False to disable auto layout
- finishedAsyncInit: asyncio.Event¶
- canBeEnabled()[source]¶
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
]]