elevationgrid.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:reconstruction 作者: microelly2 项目源码 文件源码
def dialog(points):
    print "dialog ",points.Label

    w=QtGui.QWidget()
    w.source=points

    box = QtGui.QVBoxLayout()
    w.setLayout(box)
    w.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)




    l=QtGui.QLabel("Model" )
    box.addWidget(l)
    w.mode = QtGui.QListWidget()
    w.mode.addItems( ['linear','thin_plate', 'cubic','inverse','multiquadric','gaussian' ,'quintic' ])
    box.addWidget(w.mode)

    l=QtGui.QLabel("count grid lines" )
    box.addWidget(l)
    w.grid = QtGui.QLineEdit()
    w.grid.setText('20')
    box.addWidget(w.grid)

    l=QtGui.QLabel("z-scale factor" )
    box.addWidget(l)
    w.zfac = QtGui.QLineEdit()
    w.zfac.setText('10')
    box.addWidget(w.zfac)

    l=QtGui.QLabel("z-max " )
    box.addWidget(l)
    w.zmax = QtGui.QLineEdit()
    w.zmax.setText('0')
    box.addWidget(w.zmax)


    w.matplot=QtGui.QCheckBox("show Matplot")
    box.addWidget(w.matplot)

    w.colormap=QtGui.QCheckBox("show colors")
    box.addWidget(w.colormap)


#   h=QtGui.QDial()
#   h.setMaximum(100)
#   h.setMinimum(0)
#   w.ha=h

#   box.addWidget(h)

    w.r=QtGui.QPushButton("run")
    box.addWidget(w.r)
    w.r.pressed.connect(lambda :srun(w))


    w.show()
    return w
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号