def __init__(self, e):
     self.editor = e
     self.clearSelectedFigures()
     self.setDrawing(pyHDrawing(self))
     self.transform = pyHTransform2D(1.0, 1.0)
     self.background = None
     self.drawingGrid = True
Пример #2
0
    def initUI(self):
        self.setView(pyHStandardView(self))
        #this command before than the next in order to make transform working
        self.getView().setTransform(pyHTransform2D(1, 1))
        self.getView().setImg(self.img)

        cv2.namedWindow(self.title)
Пример #3
0
 def initUI(self):                       
     self.setView(pyHStandardView(self))
     self.getView().setTransform(pyHTransform2D(10,10,self.width()/2,self.height()/2))
     
     self.setCentralWidget(self.getView())
     self.setGeometry(300, 30,900,900)
     self.setWindowTitle('Qt5 - pyHotGraphSLAM')    
     self.sb=QtWidgets.QLabel(self)
     self.sb.setText("x=0,y=0")
     self.statusBar().addPermanentWidget(self.sb)
     self.sb1=QtWidgets.QLabel(self)
     self.setCurrentTool(pyHSelectionTool(self.getView()))
     self.show()
    def initUI(self):                       
        self.setView(pyHStandardView(self))
        self.getView().setTransform(pyHTransform2D(10,10,self.width()/2,self.height()/2))

#         scrollArea = QtGui.QScrollArea()
#         scrollArea.setBackgroundRole(QtGui.QPalette.Dark)
#         scrollArea.setWidget(self.getView())
        
        self.setCentralWidget(self.getView())
        self.setGeometry(300, 30,900,900)
        self.setWindowTitle('Qt4 - pyHotGraphSLAM')    
        self.sb=QtGui.QLabel(self)
        self.sb.setText("x=0,y=0")
        self.statusBar().addPermanentWidget(self.sb)
        self.sb1=QtGui.QLabel(self)
        self.setCurrentTool(pyHSelectionTool(self.getView()))
        self.show()
 def move(self,dx,dy):
     self.t=self.t+pyHTransform2D(1,1,dx,dy) 
 def __init__(self,t=pyHTransform2D()):
     pyHCompositeFigure.__init__(self)
     self.t=t
Пример #7
0
 def __init__(self, editor):
     self.editor = editor
     self.clearSelectedFigures()
     self.setDrawing(pyHDrawing(self))
     self.transform = pyHTransform2D(0.5, 0.5)
 def __init__(self,e):   
     self.editor=e
     self.clearSelectedFigures()
     self.setDrawing(pyHDrawing(self))
     self.transform=pyHTransform2D(0.5,0.5)