Esempio n. 1
0
 def poly_changed(self, poly):
     """ Changed Polygon """
     # this method is called whenever the polygon object is called
     # only copy the artist props to the line (except visibility)
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)  # don't use the poly visibility state
Esempio n. 2
0
 def poly_changed(self, poly):
     """ Changed Polygon """
     # this method is called whenever the polygon object is called
     # only copy the artist props to the line (except visibility)
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)  # don't use the poly visibility state
Esempio n. 3
0
 def poly_changed(self, controlpoly, curve_r):
     vis = self.line_poly.get_visible()
     Artist.update_from(self.line_poly, controlpoly)
     self.line_poly.set_visible(vis)
     vis = self.line_r.get_visible()
     Artist.update_from(self.line_r, curve_r)
     self.line_r.set_visible(vis)
     return
Esempio n. 4
0
 def poly_changed(self, poly):
     'this method is called whenever the polygon object is called'
     # only copy the artist props to the line (except visibility)
     #plt.cla()
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)  # don't use the poly visibility state
     #os.system('rm -f updated_model')
     '''
Esempio n. 5
0
    def points_changed(self, points):
        """This method is called whenever the points object is called."""
        # Only copy the artist props to the line (except visibility).
        vis = self.line.get_visible()
        Artist.update_from(self.line, points)
        # Don't use the points visibility state.
        self.line.set_visible(vis)

        if self.verbose:
            print("\nPoints modified.")
Esempio n. 6
0
    def points_changed(self, points):
        """This method is called whenever the points object is called."""
        # Only copy the artist props to the line (except visibility).
        vis = self.line.get_visible()
        Artist.update_from(self.line, points)
        # Don't use the points visibility state.
        self.line.set_visible(vis)

        if self.verbose:
            print("\nPoints modified.")
Esempio n. 7
0
    def poly_changed(self, poly):
        """
        Polygon changed.

        Parameters
        ----------
        poly : TYPE
            DESCRIPTION.

        Returns
        -------
        None.

        """
        # this method is called whenever the polygon object is called
        # only copy the artist props to the line (except visibility)
        vis = self.line.get_visible()
        Artist.update_from(self.line, poly)
        self.line.set_visible(vis)  # don't use the poly visibility state
Esempio n. 8
0
 def poly_changed(self, poly):
     'this method is called whenever the polygon object is called'
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)
Esempio n. 9
0
 def rectangle_changed(self, rect):
     'this method is called whenever the polygon object is called'
     # only copy the artist props to the line (except visibility)
     vis = self.line.get_visible()
     Artist.update_from(self.line, rect)
     self.line.set_visible(vis)  
Esempio n. 10
0
	def poly_changed(self, poly):
		vis = self.line.get_visible()
		Artist.update_from(self.line, poly)
		self.line.set_visible(vis)
Esempio n. 11
0
 def polygon_changed(self, poly):
     """ redraws the polygon """
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)
Esempio n. 12
0
 def poly_changed(self, poly):
     'this method is called whenever the polygon object is called'
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)  # don't use the poly visibility state
Esempio n. 13
0
 def poly_changed(self, poly):
     'metode ini akan dipanggil ketika objek polygon sudah dipanggil'
     #hanya salinan hasil pada garis (kecuali bentuk nyata)
     vis = self.line.get_visible()
     Artist.update_from(self.line, poly)
     self.line.set_visible(vis)  #jangan menggunakan daerah pola yang nyata
Esempio n. 14
0
 def line_changed(self, line):
     vis = self.line.get_visible()
     Artist.update_from(self.line, line)
     self.line.set_visible(vis)