NaviNIBS.Navigator.Model.Tools module

Bases: GenericCollectionDictItem[str]

Parameters:
  • _key

  • _usedFor

  • _label – Optional “nice” label for display. If not specified, key will be used instead. Label does not need to be unique, but could be confusing in some GUI displays if multiple tools with the same label are shown.

  • _trackerKey – Optional key to match up to tracking data. If not specified, key will be used instead.

  • _isActive – Whether to actively use for tracking/pointing

  • _doRenderTool – Whether to show tool in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doRenderTracker – Whether to show tracker in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doShowTrackingState – Whether to include this tool in tracking status widget(s). To actually show, must not also be excluded by other hide filters on the widget.

  • _romFilepath – Path to a .rom file describing optical marker positions on a rigid body tracker, as used by NDI Polaris systems.

  • _trackerStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tracker.

  • _toolStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tool.

  • _filepathsRelTo – Can be one of: - '<install>': relative to NaviNIBS install dir - '<userDataDir>': relative to user data dir - '<session>': relative to session file - absolute path

  • _toolToTrackerTransf – Used for aligning actual tool position to Polaris-reported tracker position (e.g. actual coil to coil tracker, or actual pointer to uncalibrated pointer tracker)

  • _toolStlToToolTransf – Used for visualization of tool surface mesh only; can be used to align mesh with actual tool orientation

  • _trackerStlToTrackerTransf

  • _toolColor

  • _trackerColor – Note: some surf file formats (e.g. .ply) allow specifying color of elements within the file; if color is None here and colors are available in the surf file, those colors will be used.

  • _toolOpacity

  • _trackerOpacity

  • _installPath

  • _sessionPath

  • _initialTrackerPose – For defining initial pose of tool, e.g. for tools that never get a camera-reported position, or for a default (simulated) position when a camera is not connected.

  • _initialTrackerPoseRelativeTo

  • _toolToTrackerTransfHistory

Optional “nice” label for display. If not specified, key will be used instead. Label does not need to be unique, but could be confusing in some GUI displays if multiple tools with the same label are shown.

Optional key to match up to tracking data. If not specified, key will be used instead.

Whether to actively use for tracking/pointing

Whether to show tool in camera view, etc. To actually render, a valid pose and mesh must be available.

Whether to show tracker in camera view, etc. To actually render, a valid pose and mesh must be available.

Whether to include this tool in tracking status widget(s). To actually show, must not also be excluded by other hide filters on the widget.

Path to a .rom file describing optical marker positions on a rigid body tracker, as used by NDI Polaris systems.

Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tracker.

Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tool.

Can be one of:

  • '<install>': relative to NaviNIBS install dir

  • '<userDataDir>': relative to user data dir

  • '<session>': relative to session file

  • absolute path

Used for aligning actual tool position to Polaris-reported tracker position (e.g. actual coil to coil tracker, or actual pointer to uncalibrated pointer tracker)

Used for visualization of tool surface mesh only; can be used to align mesh with actual tool orientation

Note: some surf file formats (e.g. .ply) allow specifying color of elements within the file; if color is None here and colors are available in the surf file, those colors will be used.

Return type:

Dict[str, Any]

This signal includes the key of the item, and optionally a list of keys of attributes about to change; if second arg is None, all attributes should be assumed to be about to change.

Not emitted when key changed (use sigKeyAboutToChange instead!)

This signal includes the key of the item, and optionally a list of keys of changed attributes; if second arg is None, all attributes should be assumed to have changed.

Not emitted when key changed (use sigKeyChanged instead!)

Bases: Tool

Parameters:
  • _key

  • _label – Optional “nice” label for display. If not specified, key will be used instead. Label does not need to be unique, but could be confusing in some GUI displays if multiple tools with the same label are shown.

  • _trackerKey – Optional key to match up to tracking data. If not specified, key will be used instead.

  • _isActive – Whether to actively use for tracking/pointing

  • _doRenderTool – Whether to show tool in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doRenderTracker – Whether to show tracker in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doShowTrackingState – Whether to include this tool in tracking status widget(s). To actually show, must not also be excluded by other hide filters on the widget.

  • _romFilepath – Path to a .rom file describing optical marker positions on a rigid body tracker, as used by NDI Polaris systems.

  • _trackerStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tracker.

  • _toolStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tool.

  • _filepathsRelTo – Can be one of: - '<install>': relative to NaviNIBS install dir - '<userDataDir>': relative to user data dir - '<session>': relative to session file - absolute path

  • _toolToTrackerTransf – Used for aligning actual tool position to Polaris-reported tracker position (e.g. actual coil to coil tracker, or actual pointer to uncalibrated pointer tracker)

  • _toolStlToToolTransf – Used for visualization of tool surface mesh only; can be used to align mesh with actual tool orientation

  • _trackerStlToTrackerTransf

  • _toolColor

  • _trackerColor – Note: some surf file formats (e.g. .ply) allow specifying color of elements within the file; if color is None here and colors are available in the surf file, those colors will be used.

  • _toolOpacity

  • _trackerOpacity

  • _installPath

  • _sessionPath

  • _initialTrackerPose – For defining initial pose of tool, e.g. for tools that never get a camera-reported position, or for a default (simulated) position when a camera is not connected.

  • _initialTrackerPoseRelativeTo

  • _toolToTrackerTransfHistory

  • _usedFor

Bases: Tool

Parameters:
  • _key

  • _label – Optional “nice” label for display. If not specified, key will be used instead. Label does not need to be unique, but could be confusing in some GUI displays if multiple tools with the same label are shown.

  • _trackerKey – Optional key to match up to tracking data. If not specified, key will be used instead.

  • _isActive – Whether to actively use for tracking/pointing

  • _doRenderTool – Whether to show tool in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doRenderTracker – Whether to show tracker in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doShowTrackingState – Whether to include this tool in tracking status widget(s). To actually show, must not also be excluded by other hide filters on the widget.

  • _romFilepath – Path to a .rom file describing optical marker positions on a rigid body tracker, as used by NDI Polaris systems.

  • _trackerStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tracker.

  • _toolStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tool.

  • _filepathsRelTo – Can be one of: - '<install>': relative to NaviNIBS install dir - '<userDataDir>': relative to user data dir - '<session>': relative to session file - absolute path

  • _toolToTrackerTransf – Used for aligning actual tool position to Polaris-reported tracker position (e.g. actual coil to coil tracker, or actual pointer to uncalibrated pointer tracker)

  • _toolStlToToolTransf – Used for visualization of tool surface mesh only; can be used to align mesh with actual tool orientation

  • _trackerStlToTrackerTransf

  • _toolColor

  • _trackerColor – Note: some surf file formats (e.g. .ply) allow specifying color of elements within the file; if color is None here and colors are available in the surf file, those colors will be used.

  • _toolOpacity

  • _trackerOpacity

  • _installPath

  • _sessionPath

  • _initialTrackerPose – For defining initial pose of tool, e.g. for tools that never get a camera-reported position, or for a default (simulated) position when a camera is not connected.

  • _initialTrackerPoseRelativeTo

  • _toolToTrackerTransfHistory

  • _usedFor

Override parent class to not assume identity transform by default. Unlike other tools, this will return None if no transform is set.

Return type:

Optional[ndarray]

Bases: Tool

Parameters:
  • _key

  • _label – Optional “nice” label for display. If not specified, key will be used instead. Label does not need to be unique, but could be confusing in some GUI displays if multiple tools with the same label are shown.

  • _trackerKey – Optional key to match up to tracking data. If not specified, key will be used instead.

  • _isActive – Whether to actively use for tracking/pointing

  • _doRenderTool – Whether to show tool in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doRenderTracker – Whether to show tracker in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doShowTrackingState – Whether to include this tool in tracking status widget(s). To actually show, must not also be excluded by other hide filters on the widget.

  • _romFilepath – Path to a .rom file describing optical marker positions on a rigid body tracker, as used by NDI Polaris systems.

  • _trackerStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tracker.

  • _toolStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tool.

  • _filepathsRelTo – Can be one of: - '<install>': relative to NaviNIBS install dir - '<userDataDir>': relative to user data dir - '<session>': relative to session file - absolute path

  • _toolToTrackerTransf – Used for aligning actual tool position to Polaris-reported tracker position (e.g. actual coil to coil tracker, or actual pointer to uncalibrated pointer tracker)

  • _toolStlToToolTransf – Used for visualization of tool surface mesh only; can be used to align mesh with actual tool orientation

  • _trackerStlToTrackerTransf

  • _toolColor

  • _trackerColor – Note: some surf file formats (e.g. .ply) allow specifying color of elements within the file; if color is None here and colors are available in the surf file, those colors will be used.

  • _toolOpacity

  • _trackerOpacity

  • _installPath

  • _sessionPath

  • _initialTrackerPose – For defining initial pose of tool, e.g. for tools that never get a camera-reported position, or for a default (simulated) position when a camera is not connected.

  • _initialTrackerPoseRelativeTo

  • _toolToTrackerTransfHistory

  • _usedFor

Bases: Tool

Parameters:
  • _key

  • _label – Optional “nice” label for display. If not specified, key will be used instead. Label does not need to be unique, but could be confusing in some GUI displays if multiple tools with the same label are shown.

  • _trackerKey – Optional key to match up to tracking data. If not specified, key will be used instead.

  • _isActive – Whether to actively use for tracking/pointing

  • _doRenderTool – Whether to show tool in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doRenderTracker – Whether to show tracker in camera view, etc. To actually render, a valid pose and mesh must be available.

  • _doShowTrackingState – Whether to include this tool in tracking status widget(s). To actually show, must not also be excluded by other hide filters on the widget.

  • _romFilepath – Path to a .rom file describing optical marker positions on a rigid body tracker, as used by NDI Polaris systems.

  • _trackerStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tracker.

  • _toolStlFilepath – Path to a surface mesh file (e.g. .stl, .ply) for visualization of the tool.

  • _filepathsRelTo – Can be one of: - '<install>': relative to NaviNIBS install dir - '<userDataDir>': relative to user data dir - '<session>': relative to session file - absolute path

  • _toolToTrackerTransf – Used for aligning actual tool position to Polaris-reported tracker position (e.g. actual coil to coil tracker, or actual pointer to uncalibrated pointer tracker)

  • _toolStlToToolTransf – Used for visualization of tool surface mesh only; can be used to align mesh with actual tool orientation

  • _trackerStlToTrackerTransf

  • _toolColor

  • _trackerColor – Note: some surf file formats (e.g. .ply) allow specifying color of elements within the file; if color is None here and colors are available in the surf file, those colors will be used.

  • _toolOpacity

  • _trackerOpacity

  • _installPath

  • _sessionPath

  • _initialTrackerPose – For defining initial pose of tool, e.g. for tools that never get a camera-reported position, or for a default (simulated) position when a camera is not connected.

  • _initialTrackerPoseRelativeTo

  • _toolToTrackerTransfHistory

  • _usedFor

Bases: object

Parameters:
  • _hostname

  • _pubPort

  • _cmdPort

  • _type

  • _doAutostart

  • _initKwargs

Return type:

Dict[str, Any]

Bases: GenericCollection[str, Tool]

Parameters:
  • _items

  • _positionsServerInfo

  • _sessionPath

includes list of keys of changed info attributes

Return type:

Optional[SubjectTracker]

Return type:

Optional[Pointer]

Return type:

Optional[CalibrationPlate]

Return type:

List[Dict[str, Any]]

Return type:

Tools

Return type:

Tool