Chem.Draw.MolDrawing.MolDrawing

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

# Class MolDrawing

source code

    object --+
             |
            MolDrawing

Instance Methods | [hide private]
__init__(self, canvas=None) x.__init__(...) initializes x; see x.__class__.__doc__ 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
_drawWedgedBond(self, canvas, bond, pos, nbrPos, width=1.2, color=`(`1`,` 0`,` 0`)`, dash=None) | source code
_drawBond(self, canvas, bond, atom, nbr, pos, nbrPos, conf, width=1.2, color=`(`1`,` 0`,` 0`)`, color2=None) | source code
_scaleAndCenter(self, mol, conf, coordCenter=False) | source code
_drawLabel(self, canvas, label, pos, font, color=None, highlightIt=False) | source code
AddMol(self, mol, canvas=None, centerIt=True, molTrans=`(`0`,` 0`)`, drawingTrans=`(`0`,` 0`)`, highlightAtoms=`[``]`, confId=-1) Notes:... | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| dotsPerAngstrom = `30`
| atomLabelFontFace = ``'``sans``'``
| atomLabelFontSize = `12`
| atomLabelMinFontSize = `10`
| bondLineWidth = `1.2`
| dblBondOffset = `0.2`
| dblBondLengthFrac = `0.8`
| defaultColor = ``(`1`,` 0`,` 0`)``
| selectColor = ``(`1`,` 0`,` 0`)``
| colorBonds = `True`
| noCarbonSymbols = `True`
| includeAtomNumbers = `False`
| atomNumberOffset = `0`
| dash = ``(`1`,` 1`)``
| atomPs = `None`
| canvas = `None`
| canvasSize = `None`
| wedgeDashedBonds = `False`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, canvas=None) (Constructor) | source code
    x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__ (inherited documentation)

### AddMol(self, mol, canvas=None, centerIt=True, molTrans=`(`0`,` 0`)`, drawingTrans=`(`0`,` 0`)`, highlightAtoms=`[``]`, confId=-1) | source code
    Notes:
      - specifying centerIt will cause molTrans and drawingTrans to be ignored