rdkit :: Chem :: Draw :: MolDrawing :: MolDrawing :: Class MolDrawing
[hide private]
[frames] | no frames]

Class MolDrawing

source code

object --+
         |
        MolDrawing

Instance Methods [hide private]
 
__init__(self, canvas=None, drawingOptions=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
transformPoint(self, pos) source code
 
_getBondOffset(self, p1, p2) source code
 
_getOffsetBondPts(self, p1, p2, offsetX, offsetY, lenFrac=None) source code
 
_offsetDblBond(self, p1, p2, bond, a1, a2, conf, dir=1, lenFrac=None) source code
 
_getBondAttachmentCoordinates(self, p1, p2, labelSize) source code
 
_drawWedgedBond(self, bond, pos, nbrPos, width=None, color=None, dash=None) source code
 
_drawBond(self, bond, atom, nbr, pos, nbrPos, conf, width=None, color=None, color2=None, labelSize1=None, labelSize2=None) source code
 
scaleAndCenter(self, mol, conf, coordCenter=False, canvasSize=None, ignoreHs=False) source code
 
_drawLabel(self, label, pos, baseOffset, font, color=None, **kwargs) source code
 
AddMol(self, mol, centerIt=True, molTrans=None, drawingTrans=None, highlightAtoms=[], confId=-1, flagCloseContactsDist=2, highlightMap=None, ignoreHs=False, highlightBonds=[], **kwargs)
Set the molecule to be drawn.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  atomPs = None
hash(x)
  canvas = None
hash(x)
  canvasSize = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, canvas=None, drawingOptions=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

AddMol(self, mol, centerIt=True, molTrans=None, drawingTrans=None, highlightAtoms=[], confId=-1, flagCloseContactsDist=2, highlightMap=None, ignoreHs=False, highlightBonds=[], **kwargs)

source code 
Set the molecule to be drawn.

Parameters:
  hightlightAtoms -- list of atoms to highlight (default [])
  highlightMap -- dictionary of (atom, color) pairs (default None)

Notes:
  - specifying centerIt will cause molTrans and drawingTrans to be ignored