schrodinger.maestro_utils.surface_manager.volume_menus module

class schrodinger.maestro_utils.surface_manager.volume_menus.VolumeSettingsMenu(parent: QWidget)

Bases: BaseMenu

Settings menu for the volume tab with exclusive display options.

Variables:
  • notifyToDisplayIsovalue (pyqtSignal) – Signal to display isovalue.

  • notifyToDisplaySigmaUnits (pyqtSignal) – Signal to display sigma.

  • notifyToInvertValue (pyqtSignal) – Signal to invert value for paired surface.

notifyToDisplayIsovalue

A pyqtSignal emitted by instances of the class.

notifyToDisplaySigmaUnits

A pyqtSignal emitted by instances of the class.

notifyToInvertValue

A pyqtSignal emitted by instances of the class.

__init__(parent: QWidget)

Initialize the volume settings menu.

Parameters:

parent – Parent QWidget

getMenuActions() list[MenuActionData]

Return a list of menu actions for the settings menu.

Returns:

List of MenuActionData objects

setSigmaUnitsAvailable(available: bool) None

Enable or disable the ‘Display in Sigma Units’ option. If disabling and the option is currently checked, switch to ‘Display Isovalue’. Used when sigma value is not available or zero.

Parameters:

available – True to enable the option, False to disable and reset selection.

property display_in_sigma_units: bool

Get the current state of the sigma units display option.

Returns:

True if sigma units option is checked, False otherwise.

property invert_paired_surface_mode: bool

Get the current state of the invert paired surface option.

Returns:

True if invert option is checked, False otherwise.

class schrodinger.maestro_utils.surface_manager.volume_menus.VolumeShowMenu(parent: QWidget)

Bases: BaseMenu

Show menu for the volume tab with non-exclusive checkable options.

Variables:
  • notifyToShowBoundingBox (pyqtSignal) – Signal to show bounding box.

  • notifyToShowColorMap (pyqtSignal) – Signal to show color map.

  • notifyToEditColorMap (pyqtSignal) – Signal to edit color map.

notifyToShowBoundingBox

A pyqtSignal emitted by instances of the class.

notifyToShowColorMap

A pyqtSignal emitted by instances of the class.

notifyToEditColorMap

A pyqtSignal emitted by instances of the class.

__init__(parent: QWidget)

Initialize the volume show menu.

Parameters:

parent – Parent QWidget

getMenuActions() list[MenuActionData]

Return a list of menu actions for the show menu.

Returns:

List of MenuActionData objects

refresh(surface_info) None

Refresh the menu actions based on the surface info state.

Parameters:

surface_info – SurfaceInfo object containing the surface details.

property bounding_box_visible: bool

Get the current state of the bounding box option.

Returns:

True if bounding box option is checked, False otherwise.

property color_map_visible: bool

Get the current state of the color map option.

Returns:

True if color map option is checked, False otherwise.