Ejemplo n.º 1
0
    def __init__(self, *a):
        ChainController.__init__(self)
        self.pool = QThreadPool()  # .globalInstance() will crash afterward

        self.lst_added_feat: queue.ParamsQueue = None
        self.kw: dict = None
        self._config()
Ejemplo n.º 2
0
    def __init__(self, network: NetManager, n_parallel=1):
        BaseLoop.__init__(self)
        self.n_parallel = n_parallel
        self.pool = QThreadPool()  # .globalInstance() will crash afterward
        self.feat_cnt = 0

        self.fixed_params: dict = None
        self.lst_added_feat: queue.ParamsQueue = None
        self._config(network)
Ejemplo n.º 3
0
    def __init__(self, network: NetManager, n_parallel=1):
        BaseLoader.__init__(self)
        self.pool = QThreadPool() # .globalInstance() will crash afterward
        self.n_parallel = 1
        self.status = self.LOADING

        self.fixed_keys = ["tags"]
        self.layer: XYZLayer = None
        self.max_feat: int = None
        self.kw: dict = None
        self.fixed_params = dict()
        self.params_queue: queue.ParamsQueue = None
        self._config(network)
Ejemplo n.º 4
0
    def __init__(self, iface, startX, startY, endX, endY, parent=None):
        """Constructor."""
        super(OSMDownloaderDialog, self).__init__(parent)
        # Set up the user interface from Designer.
        # After setupUI you can access any designer object by doing
        # self.<objectname>, and you can use autoconnect slots - see
        # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
        # #widgets-and-dialogs-with-auto-connect
        self.setupUi(self)

        self.iface = iface

        self.setCoordinates(startX, startY, endX, endY)

        self.threadpool = QThreadPool()

        self.size = 0
Ejemplo n.º 5
0
    def __init__(self, network: NetManager, layer: XYZLayer=None, n_parallel=1):
        BaseLoader.__init__(self)

        self.pool = QThreadPool() # .globalInstance() will crash afterward
        self.n_parallel = 1
        self.status = self.LOADING

        self.fixed_keys = ["tags", "filters", "selection"]
        self.layer = layer
        self.max_feat: int = None
        self.kw: dict = None
        self.fixed_params = dict()
        self.params_queue: queue.ParamsQueue = None

        self._cb_network_load = network.load_features_iterate
        self._config()

        if layer:
            self._config_layer_callback(layer)
Ejemplo n.º 6
0
 def __init__(self, plugin_dock, parent=None):
     super().__init__(parent)
     self.setupUi(self)
     self.plugin_dock = plugin_dock
     self.threedi_api = self.plugin_dock.threedi_api
     self.tc = ThreediCalls(self.plugin_dock.threedi_api)
     self.communication = self.plugin_dock.communication
     self.feedback_logger = ListViewLogger(self.lv_upload_feedback)
     self.upload_thread_pool = QThreadPool()
     self.ended_tasks = OrderedDict()
     self.upload_progresses = defaultdict(lambda: ("NO TASK", 0.0, 0.0))
     self.current_upload_row = 0
     self.schematisation = None
     self.schematisation_sqlite = None
     self.schematisation_id = None
     self.pb_new_upload.clicked.connect(self.upload_new_model)
     self.pb_hide.clicked.connect(self.close)
     self.tv_model = None
     self.setup_view_model()
     self.adjustSize()
Ejemplo n.º 7
0
 def __init__(self, network):
     super().__init__()
     self.pool = QThreadPool()  # .globalInstance() will crash afterward
     self._config(network)
Ejemplo n.º 8
0
 def setUp(self):
     super().setUp()
     self.pool = QThreadPool()  # .globalInstance() will crash afterward
Ejemplo n.º 9
0
 def __init__(self, network, n_parallel=1):
     super(ReloadLayerController, self).__init__()
     self.pool = QThreadPool()  # .globalInstance() will crash afterward
     self.n_parallel = 1
     self.status = self.LOADING
     self._config(network)
Ejemplo n.º 10
0
 def __init__(self, network, n_parallel=1):
     super(UploadLayerController, self).__init__()
     self.n_parallel = n_parallel
     self.pool = QThreadPool()  # .globalInstance() will crash afterward
     self._config(network)
     self.feat_cnt = 0
Ejemplo n.º 11
0
 def __init__(self, *a):
     super(InitUploadLayerController, self).__init__()
     self.pool = QThreadPool()  # .globalInstance() will crash afterward
     self._config()