Example #1
0
 def draw_bondable_pairs(self):
     """
     Draws bondable pairs of singlets and the bond lines between them. 
     Singlets in the selected chunk(s) are colored green.
     Singlets in the unselected chunk(s) are colored blue.
     Singlets with more than one way to bond are colored magenta.
     """
     # Color of bond lines --
     bondline_color = get_selCurve_color(0,self.o.backgroundColor) 
     for s1,s2 in self.command.bondable_pairs:
         color = (self.command.ways_of_bonding[s1.key] > 1) and magenta or green
         s1.overdraw_with_special_color(color)
         color = (self.command.ways_of_bonding[s2.key] > 1) and magenta or blue
         s2.overdraw_with_special_color(color)
         # Draw bond lines between singlets --
         drawline(bondline_color, s1.posn(), s2.posn()) 
Example #2
0
 def draw(self):
     """
     the profile circle draw
     """
     color = get_selCurve_color(self.selSense)
     drawCircle(color, self.ptlist[0], self.rad, self.slab.normal)
Example #3
0
 def draw(self):
     """
     the profile circle draw
     """
     color =  get_selCurve_color(self.selSense)
     drawCircle(color, self.ptlist[0], self.rad, self.slab.normal)