示例#1
0
	def __init__(self, segmentType=None, points=[], smooth=False):
		BaseSegment.__init__(self)
		self.selected = False
		self.points = []
		self.smooth = smooth
		if points:
			#the points in the segment should be RPoints, so create those objects
			for point in points[:-1]:
				x, y = point
				p = RPoint(x, y, pointType=OFFCURVE)
				p.setParent(self)
				self.points.append(p)
			aX, aY = points[-1]
			p = RPoint(aX, aY, segmentType)
			p.setParent(self)
			self.points.append(p)
示例#2
0
 def __init__(self, segmentType=None, points=[], smooth=False):
     BaseSegment.__init__(self)
     self.selected = False
     self.points = []
     self.smooth = smooth
     if points:
         #the points in the segment should be RPoints, so create those objects
         for point in points[:-1]:
             x, y = point
             p = RPoint(x, y, pointType=OFFCURVE)
             p.setParent(self)
             self.points.append(p)
         aX, aY = points[-1]
         p = RPoint(aX, aY, segmentType)
         p.setParent(self)
         self.points.append(p)
示例#3
0
	def __init__(self, index, contoure, node):
		BaseSegment.__init__(self)
		self._object = node
		self.parent = contoure
		self.index = index
		self.isMove = False # to store if the segment is a move segment
示例#4
0
	def __init__(self, index, contoure, node):
		BaseSegment.__init__(self)
		self._object = node
		self.parent = contoure
		self.index = index
		self.isMove = False # to store if the segment is a move segment