#NEWLINE# def draw( self , viewer ) : #NEWLINE# #INDENT# cr = viewer . renderer . setup_cr ( self ) #NEWLINE# if hasattr ( cr , 'draw_ellipse_bezier' ) : #NEWLINE# #INDENT# cp = self . get_cpoints ( viewer , points = self . get_bezier_pts ( ) ) #NEWLINE# cr . draw_ellipse_bezier ( cp ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cpoints = self . get_cpoints ( viewer , points = self . get_edit_points ( ) ) #NEWLINE# ( cx , cy ) = cpoints [ 0 ] #NEWLINE# cxradius = abs ( ( cpoints [ 1 ] [ 0 ] - cx ) ) #NEWLINE# cyradius = abs ( ( cpoints [ 2 ] [ 1 ] - cy ) ) #NEWLINE# cr . draw_ellipse ( cx , cy , cxradius , cyradius , self . rot_deg ) #NEWLINE# #UNINDENT# if self . showcap : #NEWLINE# #INDENT# cpoints = self . get_cpoints ( viewer ) #NEWLINE# self . draw_caps ( cr , self . cap , cpoints )