예제 #1
0
 def __init__(self, parent, index, start_pos, end_pos, trans_dict):
     QtImport.QGraphicsItem.__init__(self)
     self.parent = parent
     self.rect = QtImport.QRectF(0, 0, 0, 0)
     self.index = index
     self.start_pos = start_pos
     self.end_pos = end_pos
예제 #2
0
    def __init__(self):
        """
        Defines grid view
        """

        QtImport.QGraphicsItem.__init__(self)
        self.index = None
        self.rect = QtImport.QRectF(0, 0, 0, 0)
        self.setPos(10, 10)

        self.custom_pen = QtImport.QPen(QtImport.Qt.SolidLine)
        self.custom_pen.setWidth(1)
        self.custom_pen.setColor(QtImport.Qt.lightGray)

        self.custom_brush = QtImport.QBrush(QtImport.Qt.SolidPattern)
        brush_color = QtImport.Qt.white
        self.custom_brush.setColor(brush_color)

        self.results = None
        self.debug_hit_limit = 1e9
        self.num_comp_x = None
        self.num_comp_y = None
        self.num_holes_x = None
        self.num_holes_y = None
        self.offset_hole = 2
        self.offset_comp = 10

        self.size_hole = None
        self.size_comp_x = None
        self.size_comp_y = None
        self.size_chip_x = None
        self.size_chip_y = None
        self.images_per_crystal = 1
예제 #3
0
    def __init__(self, parent=None):

        QtImport.QGraphicsItem.__init__(self)

        self.parent = parent
        self.rect = QtImport.QRectF(0, 0, 0, 0)
        self.setPos(0, 0)
        #self.setMatrix = QtGui.QMatrix()

        self.__num_drops = None
        self.__navigation_posx = None
        self.__navigation_posy = None
예제 #4
0
    def __init__(self, parent, index, state_dict):
        QtImport.QGraphicsItem.__init__(self)
        self.setFlags(QtImport.QGraphicsItem.ItemIsSelectable)
        #              QtImport.QGraphicsItem.ItemIsMovable)
        self.setAcceptDrops(True)
        self.parent = parent
        self.rect = QtImport.QRectF(0, 0, 0, 0)
        self.setPos(state_dict["coord"][0], state_dict["coord"][1])

        self.index = index
        self.state_dict = state_dict
        self.custom_brush = QtImport.QBrush(QtImport.Qt.SolidPattern)