def handlePictures(self, number_pictures):
     picture_list = []
     for section in self.sections:
         picture_list.append(section.getLocation())
         if (number_pictures > 1):
             picture_list.extend(mosaicView.createSpiral(number_pictures))
         elif (number_pictures == -1):
             picture_list.extend(mosaicView.createGrid(self.number_x, self.number_y))
     if (len(picture_list) > 0):
         self.takePictures.emit(picture_list)
Exemple #2
0
    def handleImageGrid(self, dummy):
        if not self.taking_pictures:
            # Build position list
            pos_list = mosaicView.createGrid(self.ui.xSpinBox.value(), self.ui.ySpinBox.value())

            # Define first position
            first_pos = coord.Point(self.ui.xStartPosSpinBox.value(), self.ui.yStartPosSpinBox.value(), "um")
            pos_list.insert(0, first_pos)

            # Take pictures
            self.takePictures(pos_list)
        else:  # Abort button
            self.picture_queue = []
Exemple #3
0
    def handleImageGrid(self, dummy):
        if not self.taking_pictures:
            # Build position list
            pos_list = mosaicView.createGrid(self.ui.xSpinBox.value(),
                                             self.ui.ySpinBox.value())

            # Define first position
            first_pos = coord.Point(self.ui.xStartPosSpinBox.value(),
                                    self.ui.yStartPosSpinBox.value(), "um")
            pos_list.insert(0, first_pos)

            # Take pictures
            self.takePictures(pos_list)
        else:  # Abort button
            self.picture_queue = []