Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAS-Paths
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Scientific Software
Takin
TAS-Paths
Commits
dee6d04d
Verified
Commit
dee6d04d
authored
3 years ago
by
Tobias WEBER
Browse files
Options
Downloads
Patches
Plain Diff
cosmetic formatting change
parent
05b13278
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gui/settings_variables.h
+120
-24
120 additions, 24 deletions
src/gui/settings_variables.h
src/tools/settings_variables.h
+23
-5
23 additions, 5 deletions
src/tools/settings_variables.h
with
143 additions
and
29 deletions
src/gui/settings_variables.h
+
120
−
24
View file @
dee6d04d
...
...
@@ -142,43 +142,139 @@ struct SettingsVariable
constexpr
std
::
array
<
SettingsVariable
,
23
>
g_settingsvariables
{{
// epsilons and precisions
{.
description
=
"Calculation epsilon"
,
.
key
=
"settings/eps"
,
.
value
=
&
g_eps
,},
{.
description
=
"Angular epsilon"
,
.
key
=
"settings/eps_angular"
,
.
value
=
&
g_eps_angular
,
.
is_angle
=
true
},
{.
description
=
"Voronoi edge epsilon"
,
.
key
=
"settings/eps_voronoi_edge"
,
.
value
=
&
g_eps_voronoiedge
},
{.
description
=
"Drawing epsilon"
,
.
key
=
"settings/eps_gui"
,
.
value
=
&
g_eps_gui
},
{.
description
=
"Number precision"
,
.
key
=
"settings/prec"
,
.
value
=
&
g_prec
},
{.
description
=
"GUI number precision"
,
.
key
=
"settings/prec_gui"
,
.
value
=
&
g_prec_gui
},
{.
description
=
"Line subdivision length"
,
.
key
=
"settings/line_subdiv_len"
,
.
value
=
&
g_line_subdiv_len
},
{
.
description
=
"Calculation epsilon"
,
.
key
=
"settings/eps"
,
.
value
=
&
g_eps
,
},
{
.
description
=
"Angular epsilon"
,
.
key
=
"settings/eps_angular"
,
.
value
=
&
g_eps_angular
,
.
is_angle
=
true
},
{
.
description
=
"Voronoi edge epsilon"
,
.
key
=
"settings/eps_voronoi_edge"
,
.
value
=
&
g_eps_voronoiedge
},
{
.
description
=
"Drawing epsilon"
,
.
key
=
"settings/eps_gui"
,
.
value
=
&
g_eps_gui
},
{
.
description
=
"Number precision"
,
.
key
=
"settings/prec"
,
.
value
=
&
g_prec
},
{
.
description
=
"GUI number precision"
,
.
key
=
"settings/prec_gui"
,
.
value
=
&
g_prec_gui
},
{
.
description
=
"Line subdivision length"
,
.
key
=
"settings/line_subdiv_len"
,
.
value
=
&
g_line_subdiv_len
},
// threading options
{.
description
=
"Maximum number of threads"
,
.
key
=
"settings/maxnum_threads"
,
.
value
=
&
g_maxnum_threads
},
{
.
description
=
"Maximum number of threads"
,
.
key
=
"settings/maxnum_threads"
,
.
value
=
&
g_maxnum_threads
},
// file options
{.
description
=
"Maximum number of recent files"
,
.
key
=
"settings/maxnum_recents"
,
.
value
=
&
g_maxnum_recents
},
{
.
description
=
"Maximum number of recent files"
,
.
key
=
"settings/maxnum_recents"
,
.
value
=
&
g_maxnum_recents
},
// angle options
{.
description
=
"Sample rotation offset"
,
.
key
=
"settings/a3_offs"
,
.
value
=
&
g_a3_offs
,
.
is_angle
=
true
},
{.
description
=
"Monochromator scattering angle delta"
,
.
key
=
"settings/a2_delta"
,
.
value
=
&
g_a2_delta
,
.
is_angle
=
true
},
{.
description
=
"Sample scattering angle delta"
,
.
key
=
"settings/a4_delta"
,
.
value
=
&
g_a4_delta
,
.
is_angle
=
true
},
{
.
description
=
"Sample rotation offset"
,
.
key
=
"settings/a3_offs"
,
.
value
=
&
g_a3_offs
,
.
is_angle
=
true
},
{
.
description
=
"Monochromator scattering angle delta"
,
.
key
=
"settings/a2_delta"
,
.
value
=
&
g_a2_delta
,
.
is_angle
=
true
},
{
.
description
=
"Sample scattering angle delta"
,
.
key
=
"settings/a4_delta"
,
.
value
=
&
g_a4_delta
,
.
is_angle
=
true
},
// mesh options
{.
description
=
"Polygon intersection method"
,
.
key
=
"settings/poly_inters_method"
,
.
value
=
&
g_poly_intersection_method
},
{.
description
=
"Voronoi calculation backend"
,
.
key
=
"settings/voronoi_backend"
,
.
value
=
&
g_voronoi_backend
},
{.
description
=
"Use region function"
,
.
key
=
"settings/use_region_function"
,
.
value
=
&
g_use_region_function
},
{
.
description
=
"Polygon intersection method"
,
.
key
=
"settings/poly_inters_method"
,
.
value
=
&
g_poly_intersection_method
},
{
.
description
=
"Voronoi calculation backend"
,
.
key
=
"settings/voronoi_backend"
,
.
value
=
&
g_voronoi_backend
},
{
.
description
=
"Use region function"
,
.
key
=
"settings/use_region_function"
,
.
value
=
&
g_use_region_function
},
// path options
{.
description
=
"Path finding strategy"
,
.
key
=
"settings/path_finding_strategy"
,
.
value
=
&
g_pathstrategy
},
{.
description
=
"Verify generated path"
,
.
key
=
"settings/verify_path"
,
.
value
=
&
g_verifypath
},
{.
description
=
"Path tracker FPS"
,
.
key
=
"settings/pathtracker_fps"
,
.
value
=
&
g_pathtracker_fps
},
{
.
description
=
"Path finding strategy"
,
.
key
=
"settings/path_finding_strategy"
,
.
value
=
&
g_pathstrategy
},
{
.
description
=
"Verify generated path"
,
.
key
=
"settings/verify_path"
,
.
value
=
&
g_verifypath
},
{
.
description
=
"Path tracker FPS"
,
.
key
=
"settings/pathtracker_fps"
,
.
value
=
&
g_pathtracker_fps
},
// renderer options
{.
description
=
"Renderer FPS"
,
.
key
=
"settings/renderer_fps"
,
.
value
=
&
g_timer_fps
},
{.
description
=
"Light follows cursor"
,
.
key
=
"settings/light_follows_cursor"
,
.
value
=
&
g_light_follows_cursor
},
{.
description
=
"Enable shadow rendering"
,
.
key
=
"settings/enable_shadow_rendering"
,
.
value
=
&
g_enable_shadow_rendering
},
{
.
description
=
"Renderer FPS"
,
.
key
=
"settings/renderer_fps"
,
.
value
=
&
g_timer_fps
},
{
.
description
=
"Light follows cursor"
,
.
key
=
"settings/light_follows_cursor"
,
.
value
=
&
g_light_follows_cursor
},
{
.
description
=
"Enable shadow rendering"
,
.
key
=
"settings/enable_shadow_rendering"
,
.
value
=
&
g_enable_shadow_rendering
},
// screenshot options
{.
description
=
"Combine instrument/configuration space screenshots"
,
.
key
=
"settings/combined_screenshots"
,
.
value
=
&
g_combined_screenshots
},
{.
description
=
"Automatically take screenshots (careful!)"
,
.
key
=
"settings/automatic_screenshots"
,
.
value
=
&
g_automatic_screenshots
},
{
.
description
=
"Combine instrument/configuration space screenshots"
,
.
key
=
"settings/combined_screenshots"
,
.
value
=
&
g_combined_screenshots
},
{
.
description
=
"Automatically take screenshots (careful!)"
,
.
key
=
"settings/automatic_screenshots"
,
.
value
=
&
g_automatic_screenshots
},
}};
// ----------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
src/tools/settings_variables.h
+
23
−
5
View file @
dee6d04d
...
...
@@ -79,14 +79,32 @@ struct SettingsVariable
constexpr
std
::
array
<
SettingsVariable
,
4
>
g_settingsvariables
{{
// epsilons and precisions
{.
description
=
"Calculation epsilon"
,
.
key
=
"settings/eps"
,
.
value
=
&
g_eps
,},
{.
description
=
"Number precision"
,
.
key
=
"settings/prec"
,
.
value
=
&
g_prec
},
// epsilon
{
.
description
=
"Calculation epsilon"
,
.
key
=
"settings/eps"
,
.
value
=
&
g_eps
,
},
// precision
{
.
description
=
"Number precision"
,
.
key
=
"settings/prec"
,
.
value
=
&
g_prec
},
// threading options
{.
description
=
"Maximum number of threads"
,
.
key
=
"settings/maxnum_threads"
,
.
value
=
&
g_maxnum_threads
},
{
.
description
=
"Maximum number of threads"
,
.
key
=
"settings/maxnum_threads"
,
.
value
=
&
g_maxnum_threads
},
// file options
{.
description
=
"Maximum number of recent files"
,
.
key
=
"settings/maxnum_recents"
,
.
value
=
&
g_maxnum_recents
},
{
.
description
=
"Maximum number of recent files"
,
.
key
=
"settings/maxnum_recents"
,
.
value
=
&
g_maxnum_recents
},
}};
// ----------------------------------------------------------------------------
...
...
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