Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
89c01b31
Commit
89c01b31
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
new options in gui
parent
120088a5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/GUI_Projection.cpp
+27
-2
27 additions, 2 deletions
Fltk/GUI_Projection.cpp
Fltk/GUI_Projection.h
+1
-0
1 addition, 0 deletions
Fltk/GUI_Projection.h
with
28 additions
and
2 deletions
Fltk/GUI_Projection.cpp
+
27
−
2
View file @
89c01b31
...
...
@@ -148,7 +148,7 @@ projectionEditor::projectionEditor(std::vector<FProjectionFace*> &faces)
{
// construct GUI in terms of standard sizes
const
int
BH
=
2
*
GetFontSize
()
+
1
,
BB
=
7
*
GetFontSize
(),
WB
=
7
;
const
int
width
=
(
int
)(
3.5
*
BB
),
height
=
18
*
BH
;
const
int
width
=
(
int
)(
3.5
*
BB
),
height
=
22
*
BH
;
// create all widgets (we construct this once, we never deallocate!)
_window
=
new
Dialog_Window
(
width
,
height
,
"Reparameterize"
);
...
...
@@ -189,10 +189,34 @@ projectionEditor::projectionEditor(std::vector<FProjectionFace*> &faces)
width
-
3
*
WB
-
brw
,
5
*
BH
,
BB
,
BH
,
this
));
}
int
hard
=
8
;
new
Fl_Toggle_Button
(
WB
,
3
*
WB
+
8
*
BH
+
hard
,
hard
,
height
-
5
*
WB
-
12
*
BH
-
2
*
hard
);
new
Fl_Toggle_Button
(
width
-
WB
-
hard
,
3
*
WB
+
8
*
BH
+
hard
,
hard
,
height
-
5
*
WB
-
12
*
BH
-
2
*
hard
);
new
Fl_Toggle_Button
(
WB
+
hard
,
3
*
WB
+
8
*
BH
,
width
-
2
*
WB
-
2
*
hard
,
hard
);
new
Fl_Toggle_Button
(
WB
+
hard
,
3
*
WB
+
8
*
BH
+
height
-
5
*
WB
-
12
*
BH
-
hard
,
width
-
2
*
WB
-
2
*
hard
,
hard
);
_uvPlot
=
new
uvPlot
(
WB
,
3
*
WB
+
8
*
BH
,
width
-
2
*
WB
,
height
-
5
*
WB
-
9
*
BH
);
new
uvPlot
(
WB
+
hard
,
3
*
WB
+
8
*
BH
+
hard
,
width
-
2
*
WB
-
2
*
hard
,
height
-
5
*
WB
-
12
*
BH
-
2
*
hard
);
_uvPlot
->
end
();
modes
[
0
]
=
new
Fl_Value_Input
(
WB
,
height
-
WB
-
4
*
BH
,
BB
/
2
,
BH
);
modes
[
1
]
=
new
Fl_Value_Input
(
WB
+
BB
/
2
,
height
-
WB
-
4
*
BH
,
BB
/
2
,
BH
,
"Fourier modes along u and v"
);
modes
[
2
]
=
new
Fl_Value_Input
(
WB
,
height
-
WB
-
3
*
BH
,
BB
/
2
,
BH
);
modes
[
3
]
=
new
Fl_Value_Input
(
WB
+
BB
/
2
,
height
-
WB
-
3
*
BH
,
BB
/
2
,
BH
,
"Chebychev modes along u and v"
);
for
(
int
i
=
0
;
i
<
4
;
i
++
){
modes
[
i
]
->
maximum
(
128
);
modes
[
i
]
->
minimum
(
1
);
modes
[
i
]
->
step
(
1
);
modes
[
i
]
->
align
(
FL_ALIGN_RIGHT
);
}
Fl_Button
*
b3
=
new
Fl_Button
(
width
-
2
*
WB
-
2
*
BB
,
height
-
WB
-
BH
,
BB
,
BH
,
"Compute"
);
b3
->
callback
(
compute_cb
,
this
);
...
...
@@ -448,6 +472,7 @@ void compute_cb(Fl_Widget *w, void *data)
(
ve
->
z
()
-
p
[
2
])
*
n
[
2
]);
}
}
// get options: e->modes[i]->value()
Patch
*
patch
=
new
FPatch
(
0
,
ps
,
u
,
v
,
f
,
3
);
patch
->
SetMinU
(
0.0
);
patch
->
SetMaxU
(
0.5
);
...
...
This diff is collapsed.
Click to expand it.
Fltk/GUI_Projection.h
+
1
−
0
View file @
89c01b31
...
...
@@ -70,6 +70,7 @@ class projectionEditor {
projectionEditor
(
std
::
vector
<
FProjectionFace
*>
&
faces
);
void
show
(){
_window
->
show
();
select_cb
(
0
,
this
);
}
uvPlot
*
uv
()
{
return
_uvPlot
;
}
Fl_Value_Input
*
modes
[
4
];
std
::
vector
<
MElement
*>
&
getElements
()
{
return
_elements
;
}
std
::
vector
<
GEntity
*>
&
getEntities
()
{
return
_entities
;
}
std
::
vector
<
projection
*>
&
getProjections
()
{
return
_projections
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment