Package schrodinger :: Package ui :: Package qt :: Module structtable
[hide private]
[frames] | no frames]

Module structtable


This module provides classes that can be used to create Qt tables that show
2D structures in the cells.

ViewerTable
    ***
    Note - this table has been deprecated in favor of the DataViewerTable
           class in the schrodinger.ui.qt.table module.  All new tables should
           use the DataViewerTable class.  The new class can hold both data and
           structures, and considerably more functionality.
    ****
    A class derived from QTableView.
    Designed to have cells that hold 2D structures.

ViewerModel
    A class derived from QAbstractTableModel.
    Holds Structure objects and is able to generate 2D QPictures from
    the structures and pass them to the ViewerTable view.

StructureViewerDelegate
    Drived from QItemDelegate.
    Responsible for drawing data returned from the ViewerModel into the
    cells from the ViewerTable.

This module was designed to be used with 2D Viewer and CombiGlide panels.
Please notify the module developers if you plan to use it with your code,
because the module behavior may change without notice.

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  StructureReaderDelegate
  StructureViewerDelegate
  ViewerModel
This class has been moved to the new table module
  ViewerTable
  _CacheClass
This class caches the last few QPictures given to it.
  _CacheNode
This class has been moved into the new table module
  _GenericViewerDelegate
This is the class that handles the actual drawing of data.
Functions [hide private]
 
draw_picture_into_rect(*args, **kwargs)
Draw a QPicture into a given rectangle.
Variables [hide private]
  PYQT_CONFIGURATION = {'sip_flags': '-x VendorID -t WS_X11 -t Q...
  PYQT_VERSION = 329728
  PYQT_VERSION_STR = '5.8'
  QT_VERSION = 329218
  QT_VERSION_STR = '5.6.2'
  QWIDGETSIZE_MAX = 16777215
  QtCriticalMsg = 2
  QtDebugMsg = 0
  QtFatalMsg = 3
  QtInfoMsg = 4
  QtSystemMsg = 2
  QtWarningMsg = 1
  TIMEOUT = 200
  __package__ = 'schrodinger.ui.qt'
  qApp = <PyQt5.QtWidgets.QApplication object at 0x7f1a33257180>
Function Details [hide private]

draw_picture_into_rect(*args, **kwargs)

 

Draw a QPicture into a given rectangle.

This function has been moved to swidgets.draw_picture_into_rect.

Parameters:
  • painter (QtGui.QPainter object) - QPainter object that will do the drawing into the cell.
  • pic (QPicture) - the picture to be drawn into the rectangle
  • rect (QRect) - the rectangle that defines the drawing region
  • max_scale (int) - The maximum amount to scale the picture while attempting to make it fit into rect. This value is multipled by the scale factor required to fit a 150(wide) x 100 (high) picture to fit that picture into rect. The resulting product (max_scale * reference picture scale) is the true maximum scale factor allowed.

Variables Details [hide private]

PYQT_CONFIGURATION

Value:
{'sip_flags': '-x VendorID -t WS_X11 -t Qt_5_6_2 -x Py_v3'}