FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PCReconstruct/dialogs/RandomSurfDialog.cpp at master · codearxiv/PCReconstruct · GitHub
codearxiv
/
PCReconstruct
Public
Notifications
You must be signed in to change notification settings
Fork
8
Star
43
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PCReconstruct
/
dialogs
/
RandomSurfDialog.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (34 loc) · 1.19 KB
Breadcrumbs
PCReconstruct
/
dialogs
/
RandomSurfDialog.cpp
Copy path
File metadata and controls
47 lines (34 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
//
Copyright (C) 2019 Piotr (Peter) Beben <pdbcas@gmail.com>
//
See LICENSE included with this distribution.
#
include
"
RandomSurfDialog.h
"
#
include
"
get_field.h
"
#
include
"
constants.h
"
#
include
<
QFormLayout
>
#
include
<
QLabel
>
#
include
<
QLineEdit
>
#
include
<
QDialogButtonBox
>
#
include
<
QObject
>
#
include
<
QWidget
>
#
include
<
QIntValidator
>
RandomSurfDialog::RandomSurfDialog
(QWidget *parent) : QDialog(parent)
{
validator =
new
QIntValidator
(
1
, int_infinity,
this
);
form =
new
QFormLayout
(
this
);
form->
addRow
(
new
QLabel
(
"
Create a new point cloud sampled randomly from a random surface
"
));
nPointsLineEdit =
new
QLineEdit
(
this
);
nPointsLineEdit->
setValidator
(validator);
nPointsLineEdit->
setText
(
"
15000
"
);
form->
addRow
(
QString
(
"
Number of points sampled:
"
), nPointsLineEdit);
buttonBox =
new
QDialogButtonBox
(
QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
Qt::Horizontal,
this
);
form->
addRow
(buttonBox);
connect
(buttonBox,
SIGNAL
(
accepted
()),
this
,
SLOT
(
accept
()));
connect
(buttonBox,
SIGNAL
(
rejected
()),
this
,
SLOT
(
reject
()));
}
bool
RandomSurfDialog::getFields
(
size_t
& nPoints)
const
{
bool
ok =
get_integer_field
(nPointsLineEdit, validator, nPoints);
return
ok;
}
Back
|
FazBrowse Home
|
New Git URL