osc_generator/osc_generator.py
def add_vehicles(self):
        """
        Adds "Add Vehicle" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """
        # Add temporary scratch layer to QGIS (if not yet created)
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")

        # Load plugins
        if not self._plugin_is_active_vehicles:
            self._plugin_is_active_vehicles = True

            # dockwidget may not exist if:
            #    first run of plugin
            #    removed on close (see self.onClosePlugin method)
            if self._dockwidget_vehicles is None:
                self._dockwidget_vehicles = AddVehiclesDockWidget()

            # connect to provide cleanup on closing of dockwidget
            self._dockwidget_vehicles.closingPlugin.connect(self.onClosePlugin)

            # show the dockwidget
            self.iface.addDockWidget(Qt.BottomDockWidgetArea, self._dockwidget_vehicles)
            self._dockwidget_vehicles.show()

        Adds "Add Vehicle" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        
Adds "Add Vehicle" dock widget.
Creates OpenSCENARIO layer group if it does not exist.
Adds " Add Vehicle " dock widget . Creates OpenSCENARIO layer group if it does not exist .
def add_vehicles(self):
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")
        if not self._plugin_is_active_vehicles:
            self._plugin_is_active_vehicles = True
            if self._dockwidget_vehicles is None:
                self._dockwidget_vehicles = AddVehiclesDockWidget()
            self._dockwidget_vehicles.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.BottomDockWidgetArea, self._dockwidget_vehicles)
            self._dockwidget_vehicles.show()
def add_vehicles ( self ) : if self . _root_layer . findGroup ( "OpenSCENARIO" ) is None : self . _root_layer . addGroup ( "OpenSCENARIO" ) if not self . _plugin_is_active_vehicles : self . _plugin_is_active_vehicles = True if self . _dockwidget_vehicles is None : self . _dockwidget_vehicles = AddVehiclesDockWidget ( ) self . _dockwidget_vehicles . closingPlugin . connect ( self . onClosePlugin ) self . iface . addDockWidget ( Qt . BottomDockWidgetArea , self . _dockwidget_vehicles ) self . _dockwidget_vehicles . show ( )
Adds "Add Vehicle" dock widget.
Adds " Add Vehicle " dock widget .
"""
        Adds "Add Vehicle" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """ # Add temporary scratch layer to QGIS (if not yet created) # Load plugins # dockwidget may not exist if: #    first run of plugin #    removed on close (see self.onClosePlugin method) # connect to provide cleanup on closing of dockwidget # show the dockwidget
self