-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpstereowidget.cpp
69 lines (57 loc) · 1.94 KB
/
pstereowidget.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "pstereowidget.h"
PStereoWidget::PStereoWidget(QWidget *parent) : QWidget(parent)
{
//sfs = new Shapefs;
detector = new Facedet;
initMenu();
}
PStereoWidget::PStereoWidget(Mesh &pmesh, Facedet *det, QWidget *parent) : QWidget(parent), detector(det)
{
mesh = &pmesh;
//sfs = new Shapefs;
initMenu();
}
void PStereoWidget::execPS()
{
}
void PStereoWidget::initMenu()
{
QPushButton *psBtm = new QPushButton("execPS");
QSpinBox *maxAzimuthSpin = new QSpinBox;
maxAzimuthSpin->setValue(sfs->maxAzimuth());
QLabel *azLabel = new QLabel;
azLabel->setText("max Azim: ");
QFormLayout *form1 = new QFormLayout;
form1->addRow(azLabel,maxAzimuthSpin);
QSpinBox *maxElevationSpin = new QSpinBox;
maxElevationSpin->setValue(sfs->maxElevation());
QLabel *eleLabel = new QLabel;
eleLabel->setText("max Elev: ");
QFormLayout *form2 = new QFormLayout;
form2->addRow(eleLabel,maxElevationSpin);
QSpinBox *minImageNumberSpin = new QSpinBox;
minImageNumberSpin->setValue(sfs->minImageNumber());
QLabel *imgLabel = new QLabel;
imgLabel->setText("min Img#: ");
QFormLayout *form3 = new QFormLayout;
form3->addRow(imgLabel,minImageNumberSpin);
QLabel *filterLabel = new QLabel;
filterLabel->setText("filter:");
QRadioButton *filter1 = new QRadioButton("none");
QRadioButton *filter2 = new QRadioButton("intensity");
QRadioButton *filter3 = new QRadioButton("p-error");
filter1->setChecked(true);
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(psBtm);
layout->addItem(form1);
layout->addItem(form2);
layout->addItem(form3);
layout->addWidget(filterLabel);
layout->addWidget(filter1);
layout->addWidget(filter2);
layout->addWidget(filter3);
menu = new QGroupBox("sfs");
menu->setLayout(layout);
menu->setSizePolicy(QSizePolicy( QSizePolicy::Preferred,
QSizePolicy::Fixed));
}