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
2eaed14f
Commit
2eaed14f
authored
10 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
access global lc in options
parent
c38d02f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/DefaultOptions.h
+2
-0
2 additions, 0 deletions
Common/DefaultOptions.h
Common/Options.cpp
+5
-0
5 additions, 0 deletions
Common/Options.cpp
Common/Options.h
+1
-0
1 addition, 0 deletions
Common/Options.h
with
8 additions
and
0 deletions
Common/DefaultOptions.h
+
2
−
0
View file @
2eaed14f
...
@@ -346,6 +346,8 @@ StringXNumber GeneralOptions_Number[] = {
...
@@ -346,6 +346,8 @@ StringXNumber GeneralOptions_Number[] = {
{
F
|
O
,
"BackgroundImageHeight"
,
opt_general_background_image_size1
,
-
1
,
{
F
|
O
,
"BackgroundImageHeight"
,
opt_general_background_image_size1
,
-
1
,
"Height of background image (0: actual height if width = 0, natural scaling if not; "
"Height of background image (0: actual height if width = 0, natural scaling if not; "
"-1: graphic window height)"
},
"-1: graphic window height)"
},
{
F
|
O
,
"BoundingBoxeSize"
,
opt_general_lc
,
1
.
,
"Overall bounding box size (read-only)"
},
{
F
|
O
,
"Camera"
,
opt_general_camera_mode
,
0
.
,
{
F
|
O
,
"Camera"
,
opt_general_camera_mode
,
0
.
,
"Enable camera view mode"
},
"Enable camera view mode"
},
...
...
This diff is collapsed.
Click to expand it.
Common/Options.cpp
+
5
−
0
View file @
2eaed14f
...
@@ -2803,6 +2803,11 @@ double opt_general_zmax(OPT_ARGS_NUM)
...
@@ -2803,6 +2803,11 @@ double opt_general_zmax(OPT_ARGS_NUM)
return
bb
.
empty
()
?
0.
:
bb
.
max
().
z
();
return
bb
.
empty
()
?
0.
:
bb
.
max
().
z
();
}
}
double
opt_general_lc
(
OPT_ARGS_NUM
)
{
return
CTX
::
instance
()
->
lc
;
}
double
opt_general_axes
(
OPT_ARGS_NUM
)
double
opt_general_axes
(
OPT_ARGS_NUM
)
{
{
if
(
action
&
GMSH_SET
){
if
(
action
&
GMSH_SET
){
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
1
−
0
View file @
2eaed14f
...
@@ -210,6 +210,7 @@ double opt_general_ymin(OPT_ARGS_NUM);
...
@@ -210,6 +210,7 @@ double opt_general_ymin(OPT_ARGS_NUM);
double
opt_general_ymax
(
OPT_ARGS_NUM
);
double
opt_general_ymax
(
OPT_ARGS_NUM
);
double
opt_general_zmin
(
OPT_ARGS_NUM
);
double
opt_general_zmin
(
OPT_ARGS_NUM
);
double
opt_general_zmax
(
OPT_ARGS_NUM
);
double
opt_general_zmax
(
OPT_ARGS_NUM
);
double
opt_general_lc
(
OPT_ARGS_NUM
);
double
opt_general_axes
(
OPT_ARGS_NUM
);
double
opt_general_axes
(
OPT_ARGS_NUM
);
double
opt_general_axes_mikado
(
OPT_ARGS_NUM
);
double
opt_general_axes_mikado
(
OPT_ARGS_NUM
);
double
opt_general_axes_auto_position
(
OPT_ARGS_NUM
);
double
opt_general_axes_auto_position
(
OPT_ARGS_NUM
);
...
...
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