schrodinger.graphics3d.gridbox module

Module for drawing a grid box to the Workspace.

class schrodinger.graphics3d.gridbox.GridBox(center=(0.0, 0.0, 0.0), inner_box_size=(10.0, 10.0, 10.0), outer_box_size=(30.0, 30.0, 30.0), display_center_box=True, display_enclosing_box=True)

Bases: object

Class for drawing a grid box to the Workspace.

__init__(center=(0.0, 0.0, 0.0), inner_box_size=(10.0, 10.0, 10.0), outer_box_size=(30.0, 30.0, 30.0), display_center_box=True, display_enclosing_box=True)

Create an instance of the grid box, hidden initially. Call the show() method to display the box. The box parameters can be modified by setting the object’s attributes with same names as the arguments to this init method - the box will be automatically re-drawn.

Parameters:
  • center ((float, float, float)) – Center coordinates of the box.
  • inner_box_size ((float, float, float)) – Inner box size. Defaults to 10 in all dimensions. Typical range is 6-40A.
  • outer_box_size ((float, float, float)) – Outer box size. Defaults to 30 in all dimensions. Usually set to inner_box_size + maximum ligand length.
  • display_center_box (bool) – Whether to show the center (inner) box.
  • display_enclosing_box (bool) – Whether to show the outer grid box.
__del__(_isinstance=<built-in function isinstance>, _module=<class 'module'>, _hasattr=<built-in function hasattr>, _maestro=<module 'schrodinger.maestro.maestro' from '/scr/buildbot/savedbuilds/2018-4/NB/build-145/internal/lib/python3.6/site-packages/schrodinger/maestro/maestro.py'>)
__setattr__(name, value)

Custom setter for the attributes that affect the drawing of the box.

isShown()
Return type:bool
Returns:Whether the grid box is currently shown.
hide()

Hide the grid box (don’t draw to the Workspace).

show()

Show the grid box.

__class__

alias of builtins.type

__delattr__

Implement delattr(self, name).

__dict__ = mappingproxy({'__module__': 'schrodinger.graphics3d.gridbox', '__doc__': '\n Class for drawing a grid box to the Workspace.\n ', '__init__': <function GridBox.__init__>, '__del__': <function GridBox.__del__>, '_workspaceDraw': <function GridBox._workspaceDraw>, '__setattr__': <function GridBox.__setattr__>, 'isShown': <function GridBox.isShown>, 'hide': <function GridBox.hide>, 'show': <function GridBox.show>, '_updateObjects': <function GridBox._updateObjects>, '__dict__': <attribute '__dict__' of 'GridBox' objects>, '__weakref__': <attribute '__weakref__' of 'GridBox' objects>})
__dir__() → list

default dir() implementation

__eq__

Return self==value.

__format__()

default object formatter

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__gt__

Return self>value.

__hash__

Return hash(self).

__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__

Return self<=value.

__lt__

Return self<value.

__module__ = 'schrodinger.graphics3d.gridbox'
__ne__

Return self!=value.

__new__()

Create and return a new object. See help(type) for accurate signature.

__reduce__()

helper for pickle

__reduce_ex__()

helper for pickle

__repr__

Return repr(self).

__sizeof__() → int

size of object in memory, in bytes

__str__

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

__weakref__

list of weak references to the object (if defined)