def setupComponent(self, atoms, bonds): """(atoms, bonds) setup to draw a portion of the molecule using only atoms and bonds.""" m = self.molecule if m is None: return points, lines, circles, self.bbox, self.md = generateDrawables(m.atoms, m.bonds, drawAromatic=0) self.points, self.lines, self.circles, bbox, self.md = \ generateDrawables(atoms, bonds, self.drawAromatic)
def drawComponent(self, atoms, bonds, drawAromatic=1): """(atoms, bonds, drawAromatic=1) draw a portion of the molecule using only atoms and bonds. set drawAromatic to zero if aromatic rings are not desired""" m = self.molecule if m is None: return points, lines, circles, self.wedges, self.bbox, self.md = generateDrawables(m.atoms, m.bonds, drawAromatic=0) self.points, self.lines, self.circles, self.wedges, bbox, self.md = \ generateDrawables(atoms, bonds, drawAromatic=drawAromatic)
def drawComponent(self, atoms, bonds, drawAromatic=1): """(atoms, bonds, drawAromatic=1) draw a portion of the molecule using only atoms and bonds. set drawAromatic to zero if aromatic rings are not desired""" m = self.molecule if m is None: return points, lines, circles, self.wedges, self.bbox, self.md = generateDrawables( m.atoms, m.bonds, drawAromatic=0) self.points, self.lines, self.circles, self.wedges, bbox, self.md = \ generateDrawables(atoms, bonds, drawAromatic=drawAromatic)
def setupMolecule(self): """->setup to draw the entire molecule""" if self.molecule: m = self.molecule self.points, self.lines, self.circles, self.bbox, self.md = \ generateDrawables(m.atoms, m.bonds, self.drawAromatic) else: self.points, self.lines, self.circles, self.bbox, self.md = None, None, None, None
def drawMolecule(self, drawAromatic=1): """(drawAromatic=1) draw the current molecule set drawAromatic to 0 if drawing of aromatic rings is not desired""" if self.molecule: m = self.molecule self.points, self.lines, self.circles, self.wedges, self.bbox, self.md = \ generateDrawables(m.atoms, m.bonds, drawAromatic=drawAromatic) else: self.points, self.lines, self.circles, self.wedges, \ self.bbox, self.md = None, None, None, None