Ejemplo n.º 1
0
 def __init__(self, name):
     JCircle.__init__(self, 200)
     self._label = Label(name)
     self._label.translate(-self._label.getWidth() / 2.0,
                           -self._label.getHeight() / 2.0)
     self._links_to = []
     self._arcs = []
Ejemplo n.º 2
0
    def __init__(self):
        JCircle.__init__(self, 20)
        self.setVisibility(False)
        self._Anchor_type = 0
        self._attached_to = None

        self.setColor(QColor(150, 150, 150))
Ejemplo n.º 3
0
	def paint(self, paintHidden=False):
		#self.setOpenGlColor()
		if self.getVisibility() or paintHidden:
			JCircle.paint(self)
			glPushMatrix()
			glTranslatef(self._tx, self._ty, 0)
			self._label.paint()
			glPopMatrix()
Ejemplo n.º 4
0
	def __init__(self, name):
		JCircle.__init__(self, 40)
		self._label = Label(name)
		self._primary_key = False
Ejemplo n.º 5
0
	def __init__(self):
		JObject.__init__(self)
		self._control_points = []
		self._qGray = QColor(100,100,100)
		self._qRed = QColor(245, 66, 78)

		p1 = JCircle(40)
		p1.setVisibility(False)
		p1.setColor(self._qGray)

		p2 = JCircle(40)
		p2.setVisibility(False)
		p2.setColor(self._qGray)

		p3 = JCircle(40)
		p3.setVisibility(False)
		p3.setColor(self._qGray)

		p4 = JCircle(40)
		p4.setVisibility(False)
		p4.setColor(self._qGray)


		self._control_points.append(p1)
		self._control_points.append(p2)
		self._control_points.append(p3)
		self._control_points.append(p4)
Ejemplo n.º 6
0
    def translate(self, tx, ty, lock_control_points=False):
        JCircle.translate(self, tx, ty)

        if not lock_control_points:
            for arc in self._links_to:
                arc.translate_2central_points(tx, ty)
Ejemplo n.º 7
0
 def paint(self, paintHidden=False):
     self.setOpenGlColor()
     if self.getVisibility() or paintHidden:
         JCircle.paint(self, paintHidden)