示例#1
0
    def __init__(self, iface,  toolBar):
        DtSingleTool.__init__(self,  iface,  toolBar,
            QtGui.QIcon(":/ExtractPart.png"),
            QtCore.QCoreApplication.translate("digitizingtools", "Delete part and add it as a new feature"),
            geometryTypes = [4, 5, 6], dtName = "dtExtractPart")

        self.tool = DtSelectVertexTool(self.canvas)
        self.tool.vertexFound.connect(self.vertexSnapped)
        self.enable()
示例#2
0
    def __init__(self, iface,  toolBar):
        DtSingleTool.__init__(self,  iface,  toolBar,
            QtGui.QIcon(":/ExtractPart.png"),
            QtCore.QCoreApplication.translate("digitizingtools",
                "Split off one part and add it as a new feature"),
            geometryTypes = [4, 5, 6], dtName = "dtExtractPart")

        self.tool = DtSelectPartTool(self.canvas, self.iface)
        self.tool.partSelected.connect(self.partSelected)
        self.enable()
示例#3
0
    def __init__(self, iface, toolBar):
        DtSingleTool.__init__(self, iface, toolBar,
            QtGui.QIcon(":/fillGapAll.png"),
            QtCore.QCoreApplication.translate("digitizingtools",
                "Fill gap between polygons of all visible layers with a new feature"),
            geometryTypes = [3, 6], dtName = "dtFillGapAll")

        self.tool = DtSelectGapTool(self.canvas, self.iface, True)
        self.tool.gapSelected.connect(self.gapFound)
        self.enable()