Example #1
0
    def agregarRecta(self, tipo, x1, y1, x2, y2, alto, ancho):

        r = barrera(x1, x2, y1, y2, tipo, alto, ancho)
        self.idR = self.idR + 1
        r.id = self.idR
	self.dominio.listaRecta.append(r)
	return r.id
Example #2
0
 def agregarRectaCandidata(self, tipo, x1, y1, x2, y2, alto, ancho):
     self.rectaCandidata = barrera(x1, x2, y1, y2, tipo, alto, ancho)
    def agregarRecta(self, tipo, x1, y1, x2, y2):        
        r = barrera(x1, x2, y1, y2, tipo)
        self.idR = self.idR + 1
        r.id = self.idR

        self.listaRecta.append(r)