Skip to content
Snippets Groups Projects
Commit 7776101b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

new -n command line option to hide all views+meshes on startup; makes -noview obsolete

parent 685363b2
No related branches found
No related tags found
No related merge requests found
...@@ -88,9 +88,8 @@ void PrintUsage(const char *name) ...@@ -88,9 +88,8 @@ void PrintUsage(const char *name)
Msg::Direct(" -link int Select link mode between views (0, 1, 2, 3, 4)"); Msg::Direct(" -link int Select link mode between views (0, 1, 2, 3, 4)");
Msg::Direct(" -combine Combine views having identical names into multi-time-step views"); Msg::Direct(" -combine Combine views having identical names into multi-time-step views");
Msg::Direct("Display options:"); Msg::Direct("Display options:");
Msg::Direct(" -n Hide all meshes and post-processing views on startup");
Msg::Direct(" -nodb Disable double buffering"); Msg::Direct(" -nodb Disable double buffering");
Msg::Direct(" -noview Hide all views on startup");
Msg::Direct(" -nomesh Hide all meshes on startup");
Msg::Direct(" -fontsize int Specify the font size for the GUI"); Msg::Direct(" -fontsize int Specify the font size for the GUI");
Msg::Direct(" -theme string Specify FLTK GUI theme"); Msg::Direct(" -theme string Specify FLTK GUI theme");
Msg::Direct(" -display string Specify display"); Msg::Direct(" -display string Specify display");
...@@ -590,6 +589,16 @@ void GetOptions(int argc, char *argv[]) ...@@ -590,6 +589,16 @@ void GetOptions(int argc, char *argv[])
opt_mesh_volumes_faces(0, GMSH_SET, 0.); opt_mesh_volumes_faces(0, GMSH_SET, 0.);
i++; i++;
} }
else if(!strcmp(argv[i] + 1, "n")) {
opt_view_visible(0, GMSH_SET, 0);
opt_mesh_points(0, GMSH_SET, 0.);
opt_mesh_lines(0, GMSH_SET, 0.);
opt_mesh_surfaces_edges(0, GMSH_SET, 0.);
opt_mesh_surfaces_faces(0, GMSH_SET, 0.);
opt_mesh_volumes_edges(0, GMSH_SET, 0.);
opt_mesh_volumes_faces(0, GMSH_SET, 0.);
i++;
}
else if(!strcmp(argv[i] + 1, "link")) { else if(!strcmp(argv[i] + 1, "link")) {
i++; i++;
if(argv[i]) if(argv[i])
......
...@@ -899,12 +899,10 @@ Combine views having identical names into multi-time-step views ...@@ -899,12 +899,10 @@ Combine views having identical names into multi-time-step views
@noindent Display options: @noindent Display options:
@ftable @code @ftable @code
@item -n
Hide all meshes and post-processing views on startup
@item -nodb @item -nodb
Disable double buffering Disable double buffering
@item -noview
Hide all views on startup
@item -nomesh
Hide all meshes on startup
@item -fontsize int @item -fontsize int
Specify the font size for the GUI Specify the font size for the GUI
@item -theme string @item -theme string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment