Package schrodinger :: Package application :: Package lid :: Package lid2d :: Module draw
[hide private]
[frames] | no frames]

Module draw

Functions [hide private]
 
convert_color_to_bw(c)
 
convert_color_list_to_bw(l)
 
printTransform(t)
 
draw_text_at(painter, is_cofactor, textPt, residue_radius, fixed_font, text_str, z, font_sizes, dark_background_mode, rotation_angle, flip)
 
draw_residue_and_text_at(parameters, painter, drawRect, ellipsePt, residue_radius, textPt, fixed_font, res_text, res_uid, c, z, draw_text=False, font_sizes=[8, 10, 12], dark_background_mode=False, drawX=False, sketcher=None, sketcher_DDPt=[1000001, 1000001, 1000001])
 
draw_hbonds(parameters, painter, all_hbonds, all_hbonds_wat_prot, res_placements, residue_radius, all_ligand_atom_placements, draw_leader_lines=False, line_width=5.0, all_residues=[], sketcher=None)
 
draw_solvent_exposures(parameters, painter, pic_info, pic_center, final_image_dim, all_ligand_atom_placements, atom_to_solv_exposure, sketcher=None)
 
draw_residues(painter, all_residues, all_cofactors_uids, all_waters, all_metals, all_atoms_within_watermap, all_atoms_included_within_watermap, all_atoms_selected_within_watermap, all_atoms_overlapped_within_watermap, hydration_sites_to_color, res_placements, complex_st, ct_scale, pic_info, pic_center, residue_radius, parameters={}, draw_text=False, draw_leader_lines=False, font_sizes=[8, 10, 12], sketcher=None, sketcher_best_2D=False, sketcher_all_residues=None, sketcher_all_metals=None, sketcher_all_waters=None, workspace_vm=None)
 
draw_residue_text(painter, all_residues, all_cofactors_uids, all_metals, all_waters, res_placements, complex_st, ct_scale, pic_info, pic_center, residue_radius, parameters={}, draw_leader_lines=False, font_sizes=[8, 10, 12])
 
draw_picture_of_molecule(parameters, painter, pic_info, pic_center, final_image_dim)
 
draw_white_background_of_text(painter, pic_info, pic_center)
 
draw_pipi_stacking(painter, all_colors, all_pipi_stacking, res_placements, all_ligand_atom_placements, residue_radius, draw_leader_lines=False, parameters={}, line_width=5.0, sketcher=None, isPicat=False)
 
draw_residue_label_lines(painter, all_residues, res_placements, complex_st, ct_scale, pic_info, pic_center, residue_radius, parameters={}, sketcher=None)
 
debug_draw_atom_ellipses_and_numbers(painter, ct3d_atoms, best_ct2d_all, best_ct3d_in_2dcoord_all, pic_info, parameters={})
Variables [hide private]
  blackXPen = QtGui.QPen(QtGui.QBrush(QtGui.QColor(0, 0, 0, 255)...
  whiteXPen = QtGui.QPen(QtGui.QBrush(QtGui.QColor(0, 0, 0, 255)...
  brushes_gradients_for_residues = {}
  end_alpha = 0
hash(x)
  c = [QtGui.QColor(240, 240, 210, 255), QtGui.QColor(215, 215, ...
  default_c = [QtGui.QColor(240, 240, 210, 255), QtGui.QColor(21...
  bright_green_color = [QtGui.QColor(0, 255, 0, 255), QtGui.QCol...
  bright_red_color = [QtGui.QColor(255, 0, 0, 255), QtGui.QColor...
  black_color = [QtGui.QColor(0, 0, 0, 255), QtGui.QColor(0, 0, ...
  white_color = [QtGui.QColor(255, 255, 255, 255), QtGui.QColor(...
  metal_c = [QtGui.QColor(130, 130, 130, 255), QtGui.QColor(255,...
  metal_c_bw = convert_color_list_to_bw(metal_c)
  brushes_gradients_for_residues_bw = {}
  hbond_c = [QtGui.QColor(230, 30, 230, 255), QtGui.QColor(240, ...
  hbond_c_bw = convert_color_list_to_bw(hbond_c)
  metal_coord_c = [QtGui.QColor(75, 75, 75, 255), QtGui.QColor(1...
  metal_coord_c_bw = convert_color_list_to_bw(metal_coord_c)
  solvexp_c = [QtGui.QColor(230, 230, 50, 255), QtGui.QColor(230...
  solvexp_c_bw = convert_color_list_to_bw(solvexp_c)
  leader_c = [QtGui.QColor(100, 100, 100, 255), QtGui.QColor(255...
  leader_c_bw = convert_color_list_to_bw(leader_c)
  w_gb = 100
  in_alpha = 0
hash(x)
  out_alpha = 0
hash(x)
  water_c = [QtGui.QColor(230, 230, 230, in_alpha), QtGui.QColor...
  water_c_bw = convert_color_list_to_bw(water_c)
  text_c = QtGui.QColor(0, 0, 0, 255)
  text_c_blackbackground = QtGui.QColor(100, 100, 100, 255)
  text_c_cofactor = QtGui.QColor(255, 255, 255, 255)
  text_c_cofactor_blackbackground = QtGui.QColor(200, 200, 200, ...
  short_residue_labels = {'ALA': 'A', 'ARG': 'R', 'ASN': 'N', 'A...
  min_solv_exp_shown = 2.0
  min_solv_exp_radius = 8.0
  max_solv_exp = 30.0
  max_solv_exp_radius = 50.0
  solv_exp_radius_diff = 42.0
  max_solv_exp_diff = 28.0
  __package__ = 'schrodinger.application.lid.lid2d'
  cl = [<PyQt4.QtGui.QColor object at 0x1b807600>, <PyQt4.QtGui....
  k = 'Arg'
  ncl = [<PyQt4.QtGui.QColor object at 0x1b823f30>, <PyQt4.QtGui...
Variables Details [hide private]

blackXPen

Value:
QtGui.QPen(QtGui.QBrush(QtGui.QColor(0, 0, 0, 255)), 3.)

whiteXPen

Value:
QtGui.QPen(QtGui.QBrush(QtGui.QColor(0, 0, 0, 255)), 3.)

c

Value:
[QtGui.QColor(240, 240, 210, 255), QtGui.QColor(215, 215, 215, 255), Q\
tGui.QColor(255, 255, 255, end_alpha)]

default_c

Value:
[QtGui.QColor(240, 240, 210, 255), QtGui.QColor(215, 215, 215, 255), Q\
tGui.QColor(255, 255, 255, end_alpha)]

bright_green_color

Value:
[QtGui.QColor(0, 255, 0, 255), QtGui.QColor(0, 255, 0, 255), QtGui.QCo\
lor(0, 255, 0, end_alpha)]

bright_red_color

Value:
[QtGui.QColor(255, 0, 0, 255), QtGui.QColor(255, 0, 0, 255), QtGui.QCo\
lor(255, 0, 0, end_alpha)]

black_color

Value:
[QtGui.QColor(0, 0, 0, 255), QtGui.QColor(0, 0, 0, 255), QtGui.QColor(\
0, 0, 0, end_alpha)]

white_color

Value:
[QtGui.QColor(255, 255, 255, 255), QtGui.QColor(255, 255, 255, 255), Q\
tGui.QColor(255, 255, 255, end_alpha)]

metal_c

Value:
[QtGui.QColor(130, 130, 130, 255), QtGui.QColor(255, 210, 255, 255), Q\
tGui.QColor(255, 255, 255, end_alpha)]

hbond_c

Value:
[QtGui.QColor(230, 30, 230, 255), QtGui.QColor(240, 115, 240, 255), Qt\
Gui.QColor(255, 255, 255, 0)]

metal_coord_c

Value:
[QtGui.QColor(75, 75, 75, 255), QtGui.QColor(150, 150, 150, 255), QtGu\
i.QColor(255, 255, 255, 0)]

solvexp_c

Value:
[QtGui.QColor(230, 230, 50, 255), QtGui.QColor(230, 225, 100, 200), Qt\
Gui.QColor(230, 230, 50, 0)]

leader_c

Value:
[QtGui.QColor(100, 100, 100, 255), QtGui.QColor(255, 255, 255, 0)]

water_c

Value:
[QtGui.QColor(230, 230, 230, in_alpha), QtGui.QColor(255, 255, 255, in\
_alpha), QtGui.QColor(255, 255, 255, in_alpha), QtGui.QColor(255, 255,\
 255, in_alpha), QtGui.QColor(255, 255, 255, in_alpha), QtGui.QColor(2\
55, 255, 255, in_alpha), QtGui.QColor(255, w_gb, w_gb, 255), QtGui.QCo\
lor(255, w_gb, w_gb, end_alpha), QtGui.QColor(255, 255, 255, 0), QtGui\
.QColor(255, 255, 255, 0), QtGui.QColor(255, 255, 255, 0), QtGui.QColo\
r(255, 255, 255, 0), QtGui.QColor(255, 255, 255, 0), QtGui.QColor(255,\
 255, 255, 0), QtGui.QColor(255, 255, 255, 0)]

text_c_cofactor_blackbackground

Value:
QtGui.QColor(200, 200, 200, 255)

short_residue_labels

Value:
{'ALA': 'A',
 'ARG': 'R',
 'ASN': 'N',
 'ASP': 'D',
 'CYS': 'C',
 'GLN': 'Q',
 'GLU': 'E',
 'GLY': 'G',
...

cl

Value:
[<PyQt4.QtGui.QColor object at 0x1b807600>,
 <PyQt4.QtGui.QColor object at 0x1b807670>,
 <PyQt4.QtGui.QColor object at 0x1b8076e0>]

ncl

Value:
[<PyQt4.QtGui.QColor object at 0x1b823f30>,
 <PyQt4.QtGui.QColor object at 0x1b823fa0>,
 <PyQt4.QtGui.QColor object at 0x1b824050>]