diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index c4d55cd81ab5c717aa91140cfbe80f18daf98eba..550f065419b1a826de020ca5d55dd183c769c357 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -1,6 +1,8 @@ #ifndef _DEFAULT_OPTIONS_H_ #define _DEFAULT_OPTIONS_H_ +// PLEASE RESPECT THE ALPHABETICAL ORDER WHEN INSERTING A NEW OPTION + // Option Database (General, Geometry, Mesh, Post, View, Print), with // default values. The first number defines the level of saving: O // for the option file, S for the session file and F for the full @@ -13,24 +15,29 @@ // STRINGS StringXString GeneralOptions_String[] = { - { F, "Display" , opt_general_display , "" , - "X server to use (only for Unix versions)" }, - { 0, "SessionFileName" , opt_general_session_filename , ".gmshrc" , - "File into which session specific information is saved, and which is read on startup" }, { F|S, "DefaultFileName" , opt_general_default_filename , "unnamed.geo" , "Default project file name" }, - { F|S, "TmpFileName" , opt_general_tmp_filename , ".gmsh-tmp" , - "Temporary file (created in your home directory)" }, + { F, "Display" , opt_general_display , "" , + "X server to use (only for Unix versions)" }, + { F|S, "ErrorFileName" , opt_general_error_filename , ".gmsh-errors" , "File into which the log is saved if a fatal error occurs" }, + { F|S, "OptionsFileName" , opt_general_options_filename , ".gmsh-options" , "File created in your home directory with 'Options->Save options now', and which is read on startup" }, + + { 0, "SessionFileName" , opt_general_session_filename , ".gmshrc" , + "File into which session specific information is saved, and which is read on startup" }, + #ifdef WIN32 - { F|O, "TextEditor" , opt_general_editor , "notepad %s" , + { F|O, "TextEditor" , opt_general_editor , "notepad %s &" , #else { F|O, "TextEditor" , opt_general_editor , "emacs %s &" , #endif "System command to launch a text editor" }, + { F|S, "TmpFileName" , opt_general_tmp_filename , ".gmsh-tmp" , + "Temporary file (created in your home directory)" }, + { 0, NULL , NULL , NULL , NULL } } ; @@ -57,14 +64,16 @@ StringXString PostProcessingOptions_String[] = { } ; StringXString ViewOptions_String[] = { - { F, "Name" , opt_view_name , "" , - "Default name to assign to the post-processing view" }, - { F|O, "Format" , opt_view_format , "%.3e" , - "Number format (in standard C form)" }, - { F, "FileName" , opt_view_filename , "" , - "Default file name to assign to the post-processing view" }, { F|O, "AbscissaName" , opt_view_abscissa_name , "" , "Abscissa name for 2D graphs" }, + + { F, "FileName" , opt_view_filename , "" , + "Default file name to assign to the post-processing view" }, + { F|O, "Format" , opt_view_format , "%.3e" , + "Number format (in standard C form)" }, + + { F, "Name" , opt_view_name , "" , + "Default name to assign to the post-processing view" }, { 0, NULL , NULL , NULL , NULL } } ; @@ -77,170 +86,102 @@ StringXString PrintOptions_String[] = { // NUMBERS StringXNumber GeneralOptions_Number[] = { - { F|O, "InitialModule", opt_general_initial_context, 0. , - "Module launched on startup (0=automatic, 1=geometry, 2=mesh, 3=solver, 4=post-processing) " }, - { F|S, "SaveSession" , opt_general_session_save, 1. , - "Automatically save session specific information each time you quit Gmsh?" }, - { F|S, "SaveOptions" , opt_general_options_save, 0. , - "Automatically save all current options each time you quit Gmsh?" }, - { F|S, "FontSize" , opt_general_fontsize , 12. , - "Size of the font in the graphical user interface" }, - { F|S, "GraphicsFontSize" , opt_general_graphics_fontsize , 11. , - "Size of the font in the graphic window" }, - { F|S, "GraphicsPositionX" , opt_general_graphics_position0 , 20. , - "Horizontal position (in pixels) of the upper left corner of the graphic window" }, - { F|S, "GraphicsPositionY" , opt_general_graphics_position1 , 30. , - "Vertical position (in pixels) of the upper left corner of the graphic window" }, - { F|S, "GraphicsWidth" , opt_general_viewport2 , 700. , - "Width (in pixels) of the graphic window" }, - { F|S, "GraphicsHeight" , opt_general_viewport3 , 500. , - "Height (in pixels) of the graphic window" }, - { F|S, "MenuPositionX" , opt_general_menu_position0 , 800. , - "Horizontal position (in pixels) of the upper left corner of the menu window" }, - { F|S, "MenuPositionY" , opt_general_menu_position1 , 50. , - "Vertical position (in pixels) of the upper left corner of the menu window" }, - { F|S, "MessagePositionX" , opt_general_message_position0 , 650. , - "Horizontal position (in pixels) of the upper left corner of the message window" }, - { F|S, "MessagePositionY" , opt_general_message_position1 , 150. , - "Vertical position (in pixels) of the upper left corner of the message window" }, - { F|S, "MessageWidth" , opt_general_message_size0 , 450. , - "Width (in pixels) of the message window" }, - { F|S, "MessageHeight" , opt_general_message_size1 , 350. , - "Height (in pixels) of the message window" }, - { F|O, "CenterWindows" , opt_general_center_windows , 1. , - "Center new windows on the menu window" }, - { F, "RotationX" , opt_general_rotation0 , 0.0 , - "First Euler angle (used if Trackball == 0)" }, - { F, "RotationY" , opt_general_rotation1 , 0.0 , - "Second Euler angle (used if Trackball == 0)" }, - { F, "RotationZ" , opt_general_rotation2 , 0.0 , - "Third Euler angle (used if Trackball == 0)" }, - { F, "TrackballQuaternion0" , opt_general_quaternion0 , 0.0 , - "First trackball quaternion component (used if Trackball == 1)" }, - { F, "TrackballQuaternion1" , opt_general_quaternion1 , 0.0 , - "Second trackball quaternion component (used if Trackball == 1)" }, - { F, "TrackballQuaternion2" , opt_general_quaternion2 , 0.0 , - "Third trackball quaternion component (used if Trackball == 1)" }, - { F, "TrackballQuaternion3" , opt_general_quaternion3 , 1.0 , - "Fourth trackball quaternion component (used if Trackball == 1)" }, - { F, "TranslationX" , opt_general_translation0 , 0.0 , - "X-axis translation (in model units)" }, - { F, "TranslationY" , opt_general_translation1 , 0.0 , - "Y-axis translation (in model units)" }, - { F, "TranslationZ" , opt_general_translation2 , 0.0 , - "Z-axis translation (in model units)" }, - { F, "ScaleX" , opt_general_scale0 , 1.0 , - "X-axis scale factor" }, - { F, "ScaleY" , opt_general_scale1 , 1.0 , - "Y-axis scale factor" }, - { F, "ScaleZ" , opt_general_scale2 , 1.0 , - "Z-axis scale factor" }, - { F|O, "PointSize" , opt_general_point_size , 3. , - "Display size of points (in pixels)" }, - { F|O, "LineWidth" , opt_general_line_width , 1. , - "Display width of lines (in pixels)" }, - { F|O, "Shininess" , opt_general_shine , 0.4 , - "Material shininess (must be > 0)" }, - { F|O, "ColorScheme", opt_general_color_scheme , 0. , - "Default color scheme (0, 1 or 2)" }, -#ifdef _BLACKBOX - { F|O, "Verbosity" , opt_general_verbosity , 0. , -#else - { F|O, "Verbosity" , opt_general_verbosity , 2. , -#endif - "Level of information printed during processing (0=no information)" }, -#ifdef _FLTK - { F|O, "Terminal" , opt_general_terminal , 0. , -#else - { F|O, "Terminal" , opt_general_terminal , 1. , -#endif - "Should information be printed on the terminal (if available)?" }, - { F|O, "Orthographic" , opt_general_orthographic , 1. , - "Orthographic projection mode (0=perspective projection)" }, - { F|O, "FastRedraw" , opt_general_fast_redraw , 1. , - "Fast redraw (no mesh or view display) when moving the model" }, - { F|O, "Axes" , opt_general_axes , 1. , - "Display the axes linked to the model" }, - { F|O, "SmallAxes" , opt_general_small_axes , 1. , - "Display the small axes" }, - { F|O, "SmallAxesPositionX" , opt_general_small_axes_position0 , -45. , - "X position of small axes (negative values for right alignment)" }, - { F|O, "SmallAxesPositionY" , opt_general_small_axes_position1 , -35. , - "Y position of small axes (negative values for bottom alignment)" }, - { F|O, "DoubleBuffer" , opt_general_double_buffer , 1. , - "Use a double buffered graphic window (on Unix, should be set to 0 when working on a remote host without GLX)" }, - { F|O, "DisplayLists" , opt_general_display_lists , 0. , - "Use OpenGL display lists (useful with real time manipulation of 'big' post-processing views)" }, { F|O, "AlphaBlending" , opt_general_alpha_blending , 0. , "Enable alpha blending (transparency) in post-processing views" }, - { F|O, "Trackball" , opt_general_trackball , 1. , - "Use trackball rotation mode" }, - { F|O, "ZoomFactor" , opt_general_zoom_factor , 1.1 , - "'Speed' of the middle mouse button zoom" }, - { F|O, "DefaultPlugins" , opt_general_default_plugins , 1. , - "Load default plugins on startup" }, - { F, "Clip0" , opt_general_clip0 , 0. , + { F|O, "Axes" , opt_general_axes , 1. , + "Display the axes linked to the model" }, + + { F|O, "CenterWindows" , opt_general_center_windows , 1. , + "Center new windows on the menu window" }, + { F, "Clip0" , opt_general_clip0 , 0. , "Enable clip plane 0" }, - { F, "Clip0A" , opt_general_clip0a , 0.0 , + { F, "Clip0A" , opt_general_clip0a , 0.0 , "First clip plane 0 equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip0B" , opt_general_clip0b , 0.0 , + { F, "Clip0B" , opt_general_clip0b , 0.0 , "Second clip plane 0 equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip0C" , opt_general_clip0c , 0.0 , + { F, "Clip0C" , opt_general_clip0c , 0.0 , "Third clip plane 0 equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip0D" , opt_general_clip0d , 0.0 , + { F, "Clip0D" , opt_general_clip0d , 0.0 , "Fourth clip plane 0 equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip1" , opt_general_clip1 , 0., + { F, "Clip1" , opt_general_clip1 , 0., "Enable clip plane 1" }, - { F, "Clip1A" , opt_general_clip1a , 0.0 , + { F, "Clip1A" , opt_general_clip1a , 0.0 , "First clip plane 1 equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip1B" , opt_general_clip1b , 0.0 , + { F, "Clip1B" , opt_general_clip1b , 0.0 , "Second clip plane 1 equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip1C" , opt_general_clip1c , 0.0 , + { F, "Clip1C" , opt_general_clip1c , 0.0 , "Third clip plane 1 equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip1D" , opt_general_clip1d , 0.0 , + { F, "Clip1D" , opt_general_clip1d , 0.0 , "Fourth clip plane 1 equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip2" , opt_general_clip2 , 0., + { F, "Clip2" , opt_general_clip2 , 0., "Enable clip plane 2" }, - { F, "Clip2A" , opt_general_clip2a , 0.0 , + { F, "Clip2A" , opt_general_clip2a , 0.0 , "First clip plane 2 equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip2B" , opt_general_clip2b , 0.0 , + { F, "Clip2B" , opt_general_clip2b , 0.0 , "Second clip plane 2 equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip2C" , opt_general_clip2c , 0.0 , + { F, "Clip2C" , opt_general_clip2c , 0.0 , "Third clip plane 2 equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip2D" , opt_general_clip2d , 0.0 , + { F, "Clip2D" , opt_general_clip2d , 0.0 , "Fourth clip plane 2 equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip3" , opt_general_clip3 , 0., + { F, "Clip3" , opt_general_clip3 , 0., "Enable clip plane 3" }, - { F, "Clip3A" , opt_general_clip3a , 0.0 , + { F, "Clip3A" , opt_general_clip3a , 0.0 , "First clip plane 3 equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip3B" , opt_general_clip3b , 0.0 , + { F, "Clip3B" , opt_general_clip3b , 0.0 , "Second clip plane 3 equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip3C" , opt_general_clip3c , 0.0 , + { F, "Clip3C" , opt_general_clip3c , 0.0 , "Third clip plane 3 equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip3D" , opt_general_clip3d , 0.0 , + { F, "Clip3D" , opt_general_clip3d , 0.0 , "Fourth clip plane 3 equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip4" , opt_general_clip4 , 0., + { F, "Clip4" , opt_general_clip4 , 0., "Enable clip plane 4" }, - { F, "Clip4A" , opt_general_clip4a , 0.0 , + { F, "Clip4A" , opt_general_clip4a , 0.0 , "First clip plane 4 equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip4B" , opt_general_clip4b , 0.0 , + { F, "Clip4B" , opt_general_clip4b , 0.0 , "Second clip plane 4 equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip4C" , opt_general_clip4c , 0.0 , + { F, "Clip4C" , opt_general_clip4c , 0.0 , "Third clip plane 4 equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip4D" , opt_general_clip4d , 0.0 , + { F, "Clip4D" , opt_general_clip4d , 0.0 , "Fourth clip plane 4 equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip5" , opt_general_clip5 , 0., + { F, "Clip5" , opt_general_clip5 , 0., "Enable clip plane 5" }, - { F, "Clip5A" , opt_general_clip5a , 0.0 , + { F, "Clip5A" , opt_general_clip5a , 0.0 , "First clip plane 5 equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip5B" , opt_general_clip5b , 0.0 , + { F, "Clip5B" , opt_general_clip5b , 0.0 , "Second clip plane 5 equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip5C" , opt_general_clip5c , 0.0 , + { F, "Clip5C" , opt_general_clip5c , 0.0 , "Third clip plane 5 equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "Clip5D" , opt_general_clip5d , 0.0 , + { F, "Clip5D" , opt_general_clip5d , 0.0 , "Fourth clip plane 5 equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F|O, "MovingLight" , opt_general_moving_light , 0. , - "Use a moving (i.e. which follows the model) light source" }, + { F|O, "ColorScheme", opt_general_color_scheme , 0. , + "Default color scheme (0, 1 or 2)" }, + + { F|O, "DefaultPlugins" , opt_general_default_plugins , 1. , + "Load default plugins on startup" }, + { F|O, "DisplayLists" , opt_general_display_lists , 0. , + "Use OpenGL display lists (useful with real time manipulation of 'big' post-processing views)" }, + { F|O, "DoubleBuffer" , opt_general_double_buffer , 1. , + "Use a double buffered graphic window (on Unix, should be set to 0 when working on a remote host without GLX)" }, + + { F|O, "FastRedraw" , opt_general_fast_redraw , 1. , + "Fast redraw (no mesh or view display) when moving the model" }, + { F|S, "FontSize" , opt_general_fontsize , 12. , + "Size of the font in the graphical user interface" }, + + { F|S, "GraphicsFontSize" , opt_general_graphics_fontsize , 11. , + "Size of the font in the graphic window" }, + { F|S, "GraphicsHeight" , opt_general_viewport3 , 500. , + "Height (in pixels) of the graphic window" }, + { F|S, "GraphicsPositionX" , opt_general_graphics_position0 , 20. , + "Horizontal position (in pixels) of the upper left corner of the graphic window" }, + { F|S, "GraphicsPositionY" , opt_general_graphics_position1 , 30. , + "Vertical position (in pixels) of the upper left corner of the graphic window" }, + { F|S, "GraphicsWidth" , opt_general_viewport2 , 700. , + "Width (in pixels) of the graphic window" }, + + { F|O, "InitialModule", opt_general_initial_context, 0. , + "Module launched on startup (0=automatic, 1=geometry, 2=mesh, 3=solver, 4=post-processing) " }, + { F|O, "Light0" , opt_general_light0 , 1. , "Enable light source 0" }, { F|O, "Light0X" , opt_general_light00 , 0.5 , @@ -289,311 +230,451 @@ StringXNumber GeneralOptions_Number[] = { "Y position of light source 5" }, { F|O, "Light5Z" , opt_general_light52 , 1.0 , "Z position of light source 5" }, + { F|O, "LineWidth" , opt_general_line_width , 1. , + "Display width of lines (in pixels)" }, + + { F|S, "MenuPositionX" , opt_general_menu_position0 , 800. , + "Horizontal position (in pixels) of the upper left corner of the menu window" }, + { F|S, "MenuPositionY" , opt_general_menu_position1 , 50. , + "Vertical position (in pixels) of the upper left corner of the menu window" }, + { F|S, "MessagePositionX" , opt_general_message_position0 , 650. , + "Horizontal position (in pixels) of the upper left corner of the message window" }, + { F|S, "MessagePositionY" , opt_general_message_position1 , 150. , + "Vertical position (in pixels) of the upper left corner of the message window" }, + { F|S, "MessageHeight" , opt_general_message_size1 , 350. , + "Height (in pixels) of the message window" }, + { F|S, "MessageWidth" , opt_general_message_size0 , 450. , + "Width (in pixels) of the message window" }, + { F|O, "MovingLight" , opt_general_moving_light , 0. , + "Use a moving (i.e. which follows the model) light source" }, + + { F|O, "Orthographic" , opt_general_orthographic , 1. , + "Orthographic projection mode (0=perspective projection)" }, + + { F|O, "PointSize" , opt_general_point_size , 3. , + "Display size of points (in pixels)" }, + + { F, "RotationX" , opt_general_rotation0 , 0.0 , + "First Euler angle (used if Trackball == 0)" }, + { F, "RotationY" , opt_general_rotation1 , 0.0 , + "Second Euler angle (used if Trackball == 0)" }, + { F, "RotationZ" , opt_general_rotation2 , 0.0 , + "Third Euler angle (used if Trackball == 0)" }, + + { F|S, "SaveOptions" , opt_general_options_save, 0. , + "Automatically save all current options each time you quit Gmsh?" }, + { F|S, "SaveSession" , opt_general_session_save, 1. , + "Automatically save session specific information each time you quit Gmsh?" }, + { F, "ScaleX" , opt_general_scale0 , 1.0 , + "X-axis scale factor" }, + { F, "ScaleY" , opt_general_scale1 , 1.0 , + "Y-axis scale factor" }, + { F, "ScaleZ" , opt_general_scale2 , 1.0 , + "Z-axis scale factor" }, + { F|O, "Shininess" , opt_general_shine , 0.4 , + "Material shininess (must be > 0)" }, + { F|O, "SmallAxes" , opt_general_small_axes , 1. , + "Display the small axes" }, + { F|O, "SmallAxesPositionX" , opt_general_small_axes_position0 , -45. , + "X position of small axes (negative values for right alignment)" }, + { F|O, "SmallAxesPositionY" , opt_general_small_axes_position1 , -35. , + "Y position of small axes (negative values for bottom alignment)" }, + +#ifdef _FLTK + { F|O, "Terminal" , opt_general_terminal , 0. , +#else + { F|O, "Terminal" , opt_general_terminal , 1. , +#endif + "Should information be printed on the terminal (if available)?" }, + { F|O, "Trackball" , opt_general_trackball , 1. , + "Use trackball rotation mode" }, + { F, "TrackballQuaternion0" , opt_general_quaternion0 , 0.0 , + "First trackball quaternion component (used if Trackball == 1)" }, + { F, "TrackballQuaternion1" , opt_general_quaternion1 , 0.0 , + "Second trackball quaternion component (used if Trackball == 1)" }, + { F, "TrackballQuaternion2" , opt_general_quaternion2 , 0.0 , + "Third trackball quaternion component (used if Trackball == 1)" }, + { F, "TrackballQuaternion3" , opt_general_quaternion3 , 1.0 , + "Fourth trackball quaternion component (used if Trackball == 1)" }, + { F, "TranslationX" , opt_general_translation0 , 0.0 , + "X-axis translation (in model units)" }, + { F, "TranslationY" , opt_general_translation1 , 0.0 , + "Y-axis translation (in model units)" }, + { F, "TranslationZ" , opt_general_translation2 , 0.0 , + "Z-axis translation (in model units)" }, + + +#ifdef _BLACKBOX + { F|O, "Verbosity" , opt_general_verbosity , 0. , +#else + { F|O, "Verbosity" , opt_general_verbosity , 2. , +#endif + "Level of information printed during processing (0=no information)" }, + + { F|O, "ZoomFactor" , opt_general_zoom_factor , 1.1 , + "'Speed' of the middle mouse button zoom" }, + { 0, NULL , NULL , 0. , NULL } } ; StringXNumber GeometryOptions_Number[] = { + { F|O, "Aspect" , opt_geometry_aspect , 0. , + "Not used" }, { F|O, "AutoCoherence" , opt_geometry_auto_coherence , 1. , "Should all duplicate entities be automatically removed?" }, - { F|O, "Normals" , opt_geometry_normals , 0. , - "Size of the vectors normal to the surfaces" }, - { F|O, "Tangents" , opt_geometry_tangents , 0. , - "Size of the vectors tangent to the curves" }, - { F|O, "Points" , opt_geometry_points , 1. , - "Display geometry points?" }, + + { F|O, "CirclePoints" , opt_geometry_circle_points, 20. , + "Number of points used to draw a circle/ellipsis" }, + { F|O, "ColorScheme" , opt_geometry_color_scheme , 0. , + "Default geometry color scheme (0, 1 or 2)" }, + + { F|O, "ExtrudeSplinePoints" , opt_geometry_extrude_spline_points, 5. , + "Number of control points for splines created during extrusion" }, + + { F|O, "Highlight" , opt_geometry_highlight , 1. , + "Not used" }, + { F|O, "Lines" , opt_geometry_lines , 1. , "Display geometry curves?" }, - { F|O, "Surfaces" , opt_geometry_surfaces , 0. , - "Display geometry surfaces?" }, - { F|O, "Volumes" , opt_geometry_volumes , 0. , - "Display geometry volumes? (not implemented yet)" }, - { F|O, "PointsNumbers" , opt_geometry_points_num , 0. , - "Display points numbers?" }, { F|O, "LinesNumbers" , opt_geometry_lines_num , 0. , "Display curve numbers?" }, - { F|O, "SurfacesNumbers" , opt_geometry_surfaces_num , 0. , - "Display surface numbers?" }, - { F|O, "VolumesNumbers" , opt_geometry_volumes_num , 0. , - "Display volume numbers? (not implemented yet)" }, - { F|O, "PointSize" , opt_geometry_point_size , 3. , - "Display size of points (in pixels)" }, - { F|O, "PointSelectSize" , opt_geometry_point_sel_size , 5. , - "Display size of selected points (in pixels)" }, - { F|O, "LineWidth" , opt_geometry_line_width , 1. , - "Display width of lines (in pixels)" }, { F|O, "LineSelectWidth" , opt_geometry_line_sel_width , 2. , "Display width of selected lines (in pixels)" }, - { F|O, "Aspect" , opt_geometry_aspect , 0. , - "Not used" }, - { F|O, "Highlight" , opt_geometry_highlight , 1. , - "Not used" }, + { F|O, "LineWidth" , opt_geometry_line_width , 1. , + "Display width of lines (in pixels)" }, + + { F|O, "Normals" , opt_geometry_normals , 0. , + "Size of the vectors normal to the surfaces" }, + { F|O, "OldCircle" , opt_geometry_old_circle , 0. , "Use old circle description (compatibility option for old Gmsh geometries)" }, { F|O, "OldNewReg" , opt_geometry_old_newreg , 1. , "Use old newreg definition for geometrical transformations (compatibility option for old Gmsh geometries)" }, - { F|O, "CirclePoints" , opt_geometry_circle_points, 20. , - "Number of points used to draw a circle/ellipsis" }, - { F|O, "ExtrudeSplinePoints" , opt_geometry_extrude_spline_points, 5. , - "Number of control points for splines created during extrusion" }, + + { F|O, "Points" , opt_geometry_points , 1. , + "Display geometry points?" }, + { F|O, "PointsNumbers" , opt_geometry_points_num , 0. , + "Display points numbers?" }, + { F|O, "PointSelectSize" , opt_geometry_point_sel_size , 5. , + "Display size of selected points (in pixels)" }, + { F|O, "PointSize" , opt_geometry_point_size , 3. , + "Display size of points (in pixels)" }, + { F|O, "ScalingFactor" , opt_geometry_scaling_factor , 1.0 , "Global geometry scaling factor" }, - { F|O, "ColorScheme" , opt_geometry_color_scheme , 0. , - "Default geometry color scheme (0, 1 or 2)" }, + { F|O, "Surfaces" , opt_geometry_surfaces , 0. , + "Display geometry surfaces?" }, + { F|O, "SurfacesNumbers" , opt_geometry_surfaces_num , 0. , + "Display surface numbers?" }, + + { F|O, "Tangents" , opt_geometry_tangents , 0. , + "Size of the vectors tangent to the curves" }, + + { F|O, "Volumes" , opt_geometry_volumes , 0. , + "Display geometry volumes? (not implemented yet)" }, + { F|O, "VolumesNumbers" , opt_geometry_volumes_num , 0. , + "Display volume numbers? (not implemented yet)" }, + { 0, NULL , NULL , 0. , NULL } } ; StringXNumber MeshOptions_Number[] = { - { F|O, "Quality" , opt_mesh_quality , 0.0 , - "Target quality for tetrahedral elements (not fully functional)" }, - { F|O, "Normals" , opt_mesh_normals , 0.0 , - "Size of the normal vectors" }, - { F|O, "Tangents" , opt_mesh_tangents , 0.0 , - "Size of the tangent vectors" }, - { F|O, "Explode" , opt_mesh_explode , 1.0 , - "Display mesh with non adjacent elements (factor between 0 and 1)" }, - { F|O, "ScalingFactor" , opt_mesh_scaling_factor , 1.0 , - "Global scaling factor applied to the saved mesh" }, + { F|O, "Algorithm" , opt_mesh_algo , DELAUNAY_ISO , + "2D mesh algorithm (1=isotropic, 2=anisotropic, 3=triangle)" }, + { F, "AllowDegeneratedExtrude" , opt_mesh_allow_degenerated_extrude , 0. , + "Allow the generation of degenerated hexahedra or prisms during extrusion" }, + { F|O, "Aspect" , opt_mesh_aspect , 0. , + "Mesh apsect (0=wireframe, 1=hidden lines, 2=solid)" }, + { F|O, "CharacteristicLengthFactor" , opt_mesh_lc_factor , 1.0 , "Factor applied to all charcteristic lenghts (and background meshes)" }, - { F|O, "RandomFactor" , opt_mesh_rand_factor , 1.e-4 , - "Random factor used in 2D and 3D meshing algorithm (test other values when the algorithm fails)" }, + { F|O, "ColorCarousel" , opt_mesh_color_carousel , 1. , + "Use a 'color by region number' scheme" }, + { F|O, "ColorScheme" , opt_mesh_color_scheme , 0. , + "Default mesh color scheme (0, 1 or 2)" }, + { F|O, "ConstrainedBackgroundMesh" , opt_mesh_constrained_bgmesh, 0. , + "Should the background mesh be constrained by the characteristic lengths associated with the geometry?" }, + { F, "CpuTime" , opt_mesh_cpu_time , 0. , + "CPU time for the generation of the current mesh (in seconds)" }, + { F, "CutPlane" , opt_mesh_use_cut_plane , 0 , + "Enable mesh cut plane" }, + { F, "CutPlaneA" , opt_mesh_cut_planea , 1. , + "First cut plane equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, + { F, "CutPlaneB" , opt_mesh_cut_planeb , 0. , + "Second cut plane equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, + { F, "CutPlaneC" , opt_mesh_cut_planec , 0. , + "Third cut plane equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, + { F, "CutPlaneD" , opt_mesh_cut_planed , 0. , + "Fourth cut plane equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, + + { F|O, "Degree" , opt_mesh_degree , 1. , + "Element order" }, + { F|O, "Dual" , opt_mesh_dual , 0. , + "Display the dual mesh obtained by barycentric subdivision" }, + + { F|O, "Explode" , opt_mesh_explode , 1.0 , + "Display mesh with non adjacent elements (factor between 0 and 1)" }, + + { F|O, "Format" , opt_mesh_format , FORMAT_MSH , + "Mesh output format (1=MSH, 2=UNV)" }, + { F|O, "GammaInf" , opt_mesh_gamma_inf , 0.0 , "Only display elements whose Gamma factor is greater than GammaInf" }, { F|O, "GammaSup" , opt_mesh_gamma_sup , 0.0 , "Only display elements whose Gamma factor is smaller than GammaSup" }, - { F|O, "RadiusInf" , opt_mesh_radius_inf , 0.0 , - "Only display elements whose Radius is greater than RadiusInf" }, - { F|O, "RadiusSup" , opt_mesh_radius_sup , 0.0 , - "Only display elements whose Radius is smaller than RadiusSup" }, - { F|O, "Points" , opt_mesh_points , 1. , - "Display mesh vertices?" }, + + { F|O, "Interactive" , opt_mesh_interactive , 0. , + "Show the construction of the 2D mesh in real time (only with the anisotropic algorithm)" }, + { F|O, "Lines" , opt_mesh_lines , 1. , "Display mesh vertices on curves?" }, - { F|O, "Surfaces" , opt_mesh_surfaces , 1. , - "Display surface mesh?" }, - { F|O, "Volumes" , opt_mesh_volumes , 1. , - "Display volume mesh?" }, - { F|O, "PointsNumbers" , opt_mesh_points_num , 0. , - "Display mesh vertices numbers?" }, { F|O, "LinesNumbers" , opt_mesh_lines_num , 0. , "Display mesh line numbers?" }, - { F|O, "SurfacesNumbers" , opt_mesh_surfaces_num , 0. , - "Display mesh surface numbers?" }, - { F|O, "VolumesNumbers" , opt_mesh_volumes_num , 0. , - "Display mesh elements numbers?" }, - { F|O, "PointSize" , opt_mesh_point_size , 2. , - "Display size of points (in pixels)" }, { F|O, "LineWidth" , opt_mesh_line_width , 1. , "Display width of lines (in pixels)" }, - { F|O, "Aspect" , opt_mesh_aspect , 0. , - "Mesh apsect (0=wireframe, 1=hidden lines, 2=solid)" }, - { F|O, "Format" , opt_mesh_format , FORMAT_MSH , - "Mesh output format (1=MSH, 2=UNV)" }, - { F|O, "Smoothing" , opt_mesh_nb_smoothing , 0. , - "Number of smoothing steps applied to the final mesh" }, - { F|O, "Algorithm" , opt_mesh_algo , DELAUNAY_ISO , - "2D mesh algorithm (1=isotropic, 2=anisotropic, 3=triangle)" }, - { F|O, "PointInsertion" , opt_mesh_point_insertion, CENTER_CIRCCIRC , - "Point insertion method for isotropic 2D algorithm (1=center of circ. circle, 2=voronoi, 3=cog)" }, - { F|O, "SpeedMax" , opt_mesh_speed_max , 0. , - "Disable dubious point insertion tests" }, + { F|O, "MinimumCirclePoints" , opt_mesh_min_circ_points, 7. , "Minimum number of points used to mesh a circle" }, - { F|O, "ConstrainedBackgroundMesh" , opt_mesh_constrained_bgmesh, 0. , - "Should the background mesh be constrained by the characteristic lengths associated with the geometry?" }, - { F|O, "Degree" , opt_mesh_degree , 1. , - "Element order" }, - { F|O, "Dual" , opt_mesh_dual , 0. , - "Display the dual mesh obtained by barycentric subdivision" }, - { F|O, "Interactive" , opt_mesh_interactive , 0. , - "Show the construction of the 2D mesh in real time (only with the anisotropic algorithm)" }, - { F|O, "ColorScheme" , opt_mesh_color_scheme , 0. , - "Default mesh color scheme (0, 1 or 2)" }, - { F|O, "ColorCarousel" , opt_mesh_color_carousel , 1. , - "Use a 'color by region number' scheme" }, - { F, "use_cut_plane" , opt_mesh_use_cut_plane , 0 , - "Enable mesh clip plane" }, - { F, "cut_planea" , opt_mesh_cut_planea , 1. , - "First clip plane equation coefficient ('A' in equation 'AX+BY+CZ+D=0')" }, - { F, "cut_planeb" , opt_mesh_cut_planeb , 0. , - "Second clip plane equation coefficient ('B' in equation 'AX+BY+CZ+D=0')" }, - { F, "cut_planec" , opt_mesh_cut_planec , 0. , - "Third clip plane equation coefficient ('C' in equation 'AX+BY+CZ+D=0')" }, - { F, "cut_planed" , opt_mesh_cut_planed , 0. , - "Fourth clip plane equation coefficient ('D' in equation 'AX+BY+CZ+D=0')" }, - { F, "AllowDegeneratedExtrude" , opt_mesh_allow_degenerated_extrude , 0. , - "Allow the generation of degenerated hexahedra or prisms during extrusion" }, - { F, "SaveAll" , opt_mesh_save_all , 0. , - "Ignore Physical definitions and save all elements" }, - { F, "NbNodes" , opt_mesh_nb_nodes , 0. , - "Number of nodes in the current mesh" }, - { F, "NbTriangles" , opt_mesh_nb_triangles , 0. , - "Number of triangles in the current mesh" }, - { F, "NbQuadrangles" , opt_mesh_nb_quadrangles , 0. , - "Number of quadrangles in the current mesh" }, - { F, "NbTetrahedra" , opt_mesh_nb_tetrahedra , 0. , - "Number of tetrahedra in the current mesh" }, + { F, "NbHexahedra" , opt_mesh_nb_hexahedra , 0. , "Number of hexahedra in the current mesh" }, + { F, "NbNodes" , opt_mesh_nb_nodes , 0. , + "Number of nodes in the current mesh" }, { F, "NbPrisms" , opt_mesh_nb_prisms , 0. , "Number of prisms in the current mesh" }, { F, "NbPyramids" , opt_mesh_nb_pyramids , 0. , "Number of pyramids in the current mesh" }, - { F, "CpuTime" , opt_mesh_cpu_time , 0. , - "CPU time for the generation of the current mesh (in seconds)" }, + { F, "NbQuadrangles" , opt_mesh_nb_quadrangles , 0. , + "Number of quadrangles in the current mesh" }, + { F, "NbTetrahedra" , opt_mesh_nb_tetrahedra , 0. , + "Number of tetrahedra in the current mesh" }, + { F, "NbTriangles" , opt_mesh_nb_triangles , 0. , + "Number of triangles in the current mesh" }, + { F|O, "Normals" , opt_mesh_normals , 0.0 , + "Size of the normal vectors" }, + + { F|O, "Points" , opt_mesh_points , 1. , + "Display mesh vertices?" }, + { F|O, "PointInsertion" , opt_mesh_point_insertion, CENTER_CIRCCIRC , + "Point insertion method for isotropic 2D algorithm (1=center of circ. circle, 2=voronoi, 3=cog)" }, + { F|O, "PointsNumbers" , opt_mesh_points_num , 0. , + "Display mesh vertices numbers?" }, + { F|O, "PointSize" , opt_mesh_point_size , 2. , + "Display size of points (in pixels)" }, + + { F|O, "Quality" , opt_mesh_quality , 0.0 , + "Target quality for tetrahedral elements (not fully functional)" }, + + { F|O, "RadiusInf" , opt_mesh_radius_inf , 0.0 , + "Only display elements whose Radius is greater than RadiusInf" }, + { F|O, "RadiusSup" , opt_mesh_radius_sup , 0.0 , + "Only display elements whose Radius is smaller than RadiusSup" }, + { F|O, "RandomFactor" , opt_mesh_rand_factor , 1.e-4 , + "Random factor used in 2D and 3D meshing algorithm (test other values when the algorithm fails)" }, + + { F, "SaveAll" , opt_mesh_save_all , 0. , + "Ignore Physical definitions and save all elements" }, + { F|O, "ScalingFactor" , opt_mesh_scaling_factor , 1.0 , + "Global scaling factor applied to the saved mesh" }, + { F|O, "Smoothing" , opt_mesh_nb_smoothing , 0. , + "Number of smoothing steps applied to the final mesh" }, + { F|O, "SpeedMax" , opt_mesh_speed_max , 0. , + "Disable dubious point insertion tests" }, + { F|O, "Surfaces" , opt_mesh_surfaces , 1. , + "Display surface mesh?" }, + { F|O, "SurfacesNumbers" , opt_mesh_surfaces_num , 0. , + "Display mesh surface numbers?" }, + + { F|O, "Tangents" , opt_mesh_tangents , 0.0 , + "Size of the tangent vectors" }, + + { F|O, "Volumes" , opt_mesh_volumes , 1. , + "Display volume mesh?" }, + { F|O, "VolumesNumbers" , opt_mesh_volumes_num , 0. , + "Display mesh elements numbers?" }, + { 0, NULL , NULL , 0. , NULL } } ; StringXNumber SolverOptions_Number[] = { - { F|O, "GetDPPopupMessages" , opt_solver_getdp_popupmessages , 1.0 , - "Automatically display GetDP messages" }, { F|O, "GetDPMergeViews" , opt_solver_getdp_mergeviews , 1.0 , "Automatically merge any post-processing view created by GetDP" }, + { F|O, "GetDPPopupMessages" , opt_solver_getdp_popupmessages , 1.0 , + "Automatically display GetDP messages" }, + { 0, NULL , NULL , 0. , NULL } } ; StringXNumber PostProcessingOptions_Number[] = { - { F|O, "Scales" , opt_post_scales , 1. , - "Show value scales" }, + { F|O, "AnimationDelay" , opt_post_anim_delay , 0.25 , + "Delay (in seconds) between to animation frames" }, + { F|O, "Link" , opt_post_link , 0. , "Link post-processing views (0=none, 1,2=changes in visible/all, 3,4=everything in visible/all)" }, + + { F, "NbViews" , opt_post_nb_views , 0. ,//this default val is not used + "Current number of views merged" }, + + { F|O, "Scales" , opt_post_scales , 1. , + "Show value scales" }, { F|O, "Smoothing" , opt_post_smooth , 0. , "Apply (non-reversible) smoothing to post-processing view when merged" }, - { F|O, "AnimationDelay" , opt_post_anim_delay , 0.25 , - "Delay (in seconds) between to animation frames" }, - { F, "NbViews" , opt_post_nb_views , 0. ,//this default val is not used - "Current number of views merged" }, + { 0, NULL , NULL , 0. } } ; StringXNumber ViewOptions_Number[] = { - { F|O, "Type" , opt_view_type , DRAW_POST_3D , - "Type of graph (1=3D, 2=2D-space, 3=2D-time)" }, - { F|O, "PositionX" , opt_view_position0 , 80. , - "Horizontal position (in pixels) of the upper left corner of the scale or 2D graph" }, - { F|O, "PositionY" , opt_view_position1 , 50. , - "Vertical position (in pixels) of the upper left corner of the scale or 2D graph" }, + { F|O, "AngleSmoothNormals" , opt_view_angle_smooth_normals , 15. , + "Threshold angle below which we do not smooth the normals" }, + { F|O, "ArrowLocation" , opt_view_arrow_location , DRAW_POST_LOCATE_COG , + "Arrow location (1=cog, 2=vertex)" }, + { F|O, "ArrowScale" , opt_view_arrow_scale , 50. , + "Size of the vector (e.g. arrow size in pixels)" }, + { F|O, "ArrowType" , opt_view_arrow_type , DRAW_POST_ARROW , + "Vector display type (1=segment, 2=arrow, 3=pyramid, 4=cone, 5=displacement)" }, { F|O, "AutoPosition" , opt_view_auto_position , 1. , "Position the scale or the 2D graph automatically to avoid overlaps" }, - { F|O, "Width" , opt_view_size0 , 300. , - "Width (in pixels) of the scale or 2D graph" }, + + { F|O, "Boundary" , opt_view_boundary , 0 , + "Draw the N-b dimensional boundary of the simplex (N=dimension, b=option value)" }, + + { F, "CustomMax" , opt_view_custom_max , 0. , + "User defined maximum value to be displayed" }, + { F, "CustomMin" , opt_view_custom_min , 0. , + "User defined minimum value to be displayed" }, + + { F|O, "DrawLines" , opt_view_draw_lines , 1. , + "Display post-processing lines?" }, + { F|O, "DrawPoints" , opt_view_draw_points , 1. , + "Display post-processing points?" }, + { F|O, "DrawScalars" , opt_view_draw_scalars , 1. , + "Display scalar values?" }, + { F|O, "DrawStrings" , opt_view_draw_strings , 1. , + "Display post-processing annotation strings?" }, + { F|O, "DrawTensors" , opt_view_draw_tensors , 1. , + "Display tensor values?" }, + { F|O, "DrawTetrahedra" , opt_view_draw_tetrahedra , 1. , + "Display post-processing tetrahedra?" }, + { F|O, "DrawTriangles" , opt_view_draw_triangles , 1. , + "Display post-processing triangles?" }, + { F|O, "DrawVectors" , opt_view_draw_vectors , 1. , + "Display vector values?" }, + + { F|O, "Explode" , opt_view_explode , 1. , + "Explode elements (0: reduced to point; 1: not transformed)" }, + + { F|O, "Grid" , opt_view_grid , 2 , + "Grid mode for 2D graphs (0=none, 1=simple, 2=frame, 3=grid)" }, + { F|O, "Height" , opt_view_size1 , 200. , "Height (in pixels) of the scale or 2D graph" }, - { F, "NbTimeStep" , opt_view_nb_timestep , 1. , - "Number of time steps in the view (do _not_ change this!)" }, - { F, "TimeStep" , opt_view_timestep , 0. , - "Current time step displayed" }, - { F, "Min" , opt_view_min , 1.e200 , - "Minimum value in the view (do _not_ change this!)" }, - { F, "Max" , opt_view_max , -1.e200 , + + { F|O, "IntervalsType" , opt_view_intervals_type , DRAW_POST_ISO , + "Type of interval display (1=iso, 2=continuous, 3=discrete, 4=numeric)" }, + + { F|O, "Light" , opt_view_light , 0. , + "Enable light sources?" }, + { F|O, "LineWidth" , opt_view_line_width , 1. , + "Display width of lines (in pixels)" }, + + { F, "Max" , opt_view_max , -1.e200 , "Maximum value in the view (do _not_ change this!)" }, - { F, "CustomMin" , opt_view_custom_min , 0. , - "User defined minimum value to be displayed" }, - { F, "CustomMax" , opt_view_custom_max , 0. , - "User defined maximum value to be displayed" }, - { F, "OffsetX" , opt_view_offset0 , 0. , + { F, "Min" , opt_view_min , 1.e200 , + "Minimum value in the view (do _not_ change this!)" }, + + { F|O, "NbAbscissa" , opt_view_nb_abscissa , 5. , + "Number of abscissa intervals for 2D graphs" }, + { F|O, "NbIso" , opt_view_nb_iso , 15. , + "Number of intervals" }, + { F, "NbTimeStep" , opt_view_nb_timestep , 1. , + "Number of time steps in the view (do _not_ change this!)" }, + + { F, "OffsetX" , opt_view_offset0 , 0. , "Translation of the view along X-axis (in model coordinates)" }, - { F, "OffsetY" , opt_view_offset1 , 0. , + { F, "OffsetY" , opt_view_offset1 , 0. , "Translation of the view along Y-axis (in model coordinates)" }, - { F, "OffsetZ" , opt_view_offset2 , 0. , + { F, "OffsetZ" , opt_view_offset2 , 0. , "Translation of the view along Z-axis (in model coordinates)" }, - { F, "RaiseX" , opt_view_raise0 , 0. , + + { F|O, "PointSize" , opt_view_point_size , 2. , + "Display size of points (in pixels)" }, + { F|O, "PositionX" , opt_view_position0 , 80. , + "Horizontal position (in pixels) of the upper left corner of the scale or 2D graph" }, + { F|O, "PositionY" , opt_view_position1 , 50. , + "Vertical position (in pixels) of the upper left corner of the scale or 2D graph" }, + + { F, "RaiseX" , opt_view_raise0 , 0. , "Elevation of the view along X-axis (in model coordinates)" }, - { F, "RaiseY" , opt_view_raise1 , 0. , + { F, "RaiseY" , opt_view_raise1 , 0. , "Elevation of the view along Y-axis (in model coordinates)" }, - { F, "RaiseZ" , opt_view_raise2 , 0. , + { F, "RaiseZ" , opt_view_raise2 , 0. , "Elevation of the view along Z-axis (in model coordinates)" }, - { F|O, "ArrowScale" , opt_view_arrow_scale , 50. , - "Size of the vector (e.g. arrow size in pixels)" }, - { F|O, "Grid" , opt_view_grid , 2 , - "Grid mode for 2D graphs (0=none, 1=simple, 2=frame, 3=grid)" }, - { F|O, "Explode" , opt_view_explode , 1. , - "Explode elements (0: reduced to point; 1: not transformed)" }, - { F, "Visible" , opt_view_visible , 1. , - "Is the view visible?" }, - { F|O, "IntervalsType" , opt_view_intervals_type , DRAW_POST_ISO , - "Type of interval display (1=iso, 2=continuous, 3=discrete, 4=numeric)" }, + { F|O, "RangeType" , opt_view_range_type , DRAW_POST_DEFAULT , + "Value scale range type (1=default, 2=custom)" }, + { F|O, "SaturateValues" , opt_view_saturate_values , 0 , "Saturate the view values to custom min and max (1=true, 0=false)" }, - { F|O, "NbIso" , opt_view_nb_iso , 15. , - "Number of intervals" }, - { F|O, "NbAbscissa" , opt_view_nb_abscissa , 5. , - "Number of abscissa intervals for 2D graphs" }, - { F|O, "Boundary" , opt_view_boundary , 0 , - "Draw the N-b dimensional boundary of the simplex (N=dimension, b=option value)" }, - { F|O, "Light" , opt_view_light , 0. , - "Enable light sources?" }, - { F|O, "SmoothNormals" , opt_view_smooth_normals , 0. , - "Smooth the normals?" }, - { F|O, "AngleSmoothNormals" , opt_view_angle_smooth_normals , 15. , - "Threshold angle below which we do not smooth the normals" }, + { F|O, "ScaleType" , opt_view_scale_type , DRAW_POST_LINEAR , + "Value scale type (1=linear, 2=logarithmic, 3=double logarithmic)" }, { F|O, "ShowElement" , opt_view_show_element , 0. , "Show element boundaries?" }, - { F|O, "ShowTime" , opt_view_show_time , 1. , - "Show time value (or time step) if NbTimeStep > 1?" }, { F|O, "ShowScale" , opt_view_show_scale , 1. , "Show value scale?" }, - { F|O, "DrawStrings" , opt_view_draw_strings , 1. , - "Display post-processing annotation strings?" }, - { F|O, "DrawPoints" , opt_view_draw_points , 1. , - "Display post-processing points?" }, - { F|O, "DrawLines" , opt_view_draw_lines , 1. , - "Display post-processing lines?" }, - { F|O, "DrawTriangles" , opt_view_draw_triangles , 1. , - "Display post-processing triangles?" }, - { F|O, "DrawTetrahedra" , opt_view_draw_tetrahedra , 1. , - "Display post-processing tetrahedra?" }, - { F|O, "DrawScalars" , opt_view_draw_scalars , 1. , - "Display scalar values?" }, - { F|O, "DrawVectors" , opt_view_draw_vectors , 1. , - "Display vector values?" }, - { F|O, "DrawTensors" , opt_view_draw_tensors , 1. , - "Display tensor values?" }, + { F|O, "ShowTime" , opt_view_show_time , 1. , + "Show time value (or time step) if NbTimeStep > 1?" }, + { F|O, "SmoothNormals" , opt_view_smooth_normals , 0. , + "Smooth the normals?" }, + + { F, "TimeStep" , opt_view_timestep , 0. , + "Current time step displayed" }, { F|O, "TransparentScale" , opt_view_transparent_scale , 1. , "Display a 'transparent' value scale?" }, - { F|O, "ScaleType" , opt_view_scale_type , DRAW_POST_LINEAR , - "Value scale type (1=linear, 2=logarithmic, 3=double logarithmic)" }, - { F|O, "RangeType" , opt_view_range_type , DRAW_POST_DEFAULT , - "Value scale range type (1=default, 2=custom)" }, - { F|O, "ArrowType" , opt_view_arrow_type , DRAW_POST_ARROW , - "Vector display type (1=segment, 2=arrow, 3=pyramid, 4=cone, 5=displacement)" }, - { F|O, "ArrowLocation" , opt_view_arrow_location , DRAW_POST_LOCATE_COG , - "Arrow location (1=cog, 2=vertex)" }, - { F|O, "PointSize" , opt_view_point_size , 2. , - "Display size of points (in pixels)" }, - { F|O, "LineWidth" , opt_view_line_width , 1. , - "Display width of lines (in pixels)" }, + { F|O, "Type" , opt_view_type , DRAW_POST_3D , + "Type of graph (1=3D, 2=2D-space, 3=2D-time)" }, + + { F, "Visible" , opt_view_visible , 1. , + "Is the view visible?" }, + + { F|O, "Width" , opt_view_size0 , 300. , + "Width (in pixels) of the scale or 2D graph" }, + { 0, NULL , NULL , 0. , NULL } } ; StringXNumber PrintOptions_Number[] = { - { F|O, "Format" , opt_print_format , FORMAT_AUTO , - "File format (10=automatic)" }, - { F|O, "EpsQuality" , opt_print_eps_quality , 1 , - "Postscript quality (1=simple sort, 2=recursive sort)" }, { F|O, "EpsBackground" , opt_print_eps_background , 1 , "Save image background in postscript output" }, { F|O, "EpsFontSize" , opt_print_eps_font_size , 12. , "Font size used for postscript printing" }, - { F|O, "EpsPointSizeFactor" , opt_print_eps_point_size_factor , 1. , - "Size factor for points in postscript output" }, { F|O, "EpsLineWidthFactor" , opt_print_eps_line_width_factor , 1. , "Width factor for lines in postscript output" }, - { F|O, "JpegQuality" , opt_print_jpeg_quality , 85 , - "JPEG quality (between 1 and 100)" }, + { F|O, "EpsPointSizeFactor" , opt_print_eps_point_size_factor , 1. , + "Size factor for points in postscript output" }, + { F|O, "EpsQuality" , opt_print_eps_quality , 1 , + "Postscript quality (1=simple sort, 2=recursive sort)" }, + + { F|O, "Format" , opt_print_format , FORMAT_AUTO , + "File format (10=automatic)" }, + { F|O, "GifDither" , opt_print_gif_dither , 0 , "Apply dithering to GIF output" }, - { F|O, "GifSort" , opt_print_gif_sort , 1 , - "Sort the colormap in GIF output" }, { F|O, "GifInterlace" , opt_print_gif_interlace , 0 , "Interlace GIF output" }, + { F|O, "GifSort" , opt_print_gif_sort , 1 , + "Sort the colormap in GIF output" }, { F|O, "GifTransparent" , opt_print_gif_transparent , 0 , "Output transparent GIF image" }, + + { F|O, "JpegQuality" , opt_print_jpeg_quality , 85 , + "JPEG quality (between 1 and 100)" }, + { 0, NULL , NULL , 0. } } ; // COLORS +// CONTRARY TO THE PRECEDING OPTIONS, THE ORDERING OF COLOR OPTIONS MATTERS ! + StringXColor GeneralOptions_Color[] = { { F|O, "Background" , opt_general_color_background , PACK_COLOR(0, 0, 0, 255),