gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
Options.cpp
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #include <string.h>
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include <limits>
10 #include "GmshConfig.h"
11 #include "GmshVersion.h"
12 #include "GmshDefines.h"
13 #include "GmshMessage.h"
14 #include "StringUtils.h"
15 #include "GModel.h"
16 #include "Context.h"
17 #include "Options.h"
18 #include "OS.h"
19 #include "Colors.h"
20 #include "CommandLine.h"
21 #include "GamePad.h"
22 #include "DefaultOptions.h"
23 
24 #if defined(HAVE_MESH)
25 #include "Generator.h"
26 #include "Field.h"
27 #include "BackgroundMesh.h"
28 #endif
29 
30 #if defined(HAVE_PARSER)
31 #include "Parser.h"
32 #endif
33 
34 #if defined(HAVE_POST)
35 #include "PView.h"
36 #include "PViewOptions.h"
37 #include "PViewData.h"
38 #include "adaptiveData.h"
39 #endif
40 
41 #if defined(HAVE_PLUGINS)
42 #include "PluginManager.h"
43 #include "Plugin.h"
44 #endif
45 
46 #if defined(HAVE_FLTK)
47 #include <FL/Fl_Tooltip.H>
48 #include "FlGui.h"
49 #include "drawContextFltk.h"
50 #include "graphicWindow.h"
51 #include "optionWindow.h"
52 #include "manipWindow.h"
53 #include "contextWindow.h"
54 #include "clippingWindow.h"
55 #include "onelabGroup.h"
56 #include "viewButton.h"
57 #include "drawContextFltkCairo.h"
58 #include "drawContextFltkStringTexture.h"
59 #endif
60 
61 // General routines for string options
62 
63 bool StringOption(int action, const char *category, int num, const char *name,
64  std::string &val, bool warnIfUnknown)
65 {
66  StringXString *s = nullptr;
67  if(!strcmp(category, "General"))
69  else if(!strcmp(category, "Geometry"))
71  else if(!strcmp(category, "Mesh"))
73  else if(!strcmp(category, "Solver"))
75  else if(!strcmp(category, "PostProcessing"))
77  else if(!strcmp(category, "View"))
79  else if(!strcmp(category, "Print"))
81  else {
82  if(warnIfUnknown)
83  Msg::Error("Unknown string option category '%s'", category);
84  return false;
85  }
86 
87  int i = 0;
88  while(s[i].str && strcmp(s[i].str, name)) i++;
89  if(!s[i].str) {
90  if(warnIfUnknown)
91  Msg::Error("Unknown string option '%s.%s'", category, name);
92  return false;
93  }
94 
95  if(action & GMSH_GET_DEFAULT)
96  val = s[i].def;
97  else if(action & GMSH_SET_DEFAULT)
98  val = s[i].function(num, action | GMSH_SET, s[i].def);
99  else
100  val = s[i].function(num, action, val);
101  return true;
102 }
103 
104 static void SetDefaultStringOptions(int num, StringXString s[])
105 {
106  int i = 0;
107  while(s[i].str) {
108  s[i].function(num, GMSH_SET_DEFAULT | GMSH_SET, s[i].def);
109  i++;
110  }
111 }
112 
113 static void SetStringOptionsGUI(int num, StringXString s[])
114 {
115  int i = 0;
116  while(s[i].str) {
117  s[i].function(num, GMSH_GUI, "");
118  i++;
119  }
120 }
121 
122 static void PrintStringOptions(int num, int level, int diff, int help,
123  StringXString s[], const char *prefix,
124  FILE *file, std::vector<std::string> *vec = nullptr)
125 {
126  int i = 0;
127  while(s[i].str) {
128  if((s[i].level & level) && !(s[i].level & GMSH_DEPRECATED)) {
129  if(!diff || s[i].function(num, GMSH_GET, "") != s[i].def) {
130  char tmp[1024];
131  sprintf(tmp, "%s%s = \"%s\";%s%s", prefix, s[i].str,
132  s[i].function(num, GMSH_GET, "").c_str(), help ? " // " : "",
133  help ? s[i].help : "");
134  if(file)
135  fprintf(file, "%s\n", tmp);
136  else {
137  // remove \n, \t, \r
138  for(std::size_t i = 0; i < strlen(tmp); i++)
139  if(tmp[i] == '\n' || tmp[i] == '\t' || tmp[i] == '\r') tmp[i] = ' ';
140  if(vec)
141  vec->push_back(std::string(tmp) + '\0' + "string");
142  else
143  Msg::Direct("%s", tmp);
144  }
145  }
146  }
147  i++;
148  }
149 }
150 
151 static const char *GetOptionSaveLevel(int level)
152 {
153  if(level & GMSH_SESSIONRC) { return "General.SessionFileName"; }
154  else if(level & GMSH_OPTIONSRC) {
155  return "General.OptionsFileName";
156  }
157  else {
158  return "-";
159  }
160 }
161 
162 static void PrintStringOptionsDoc(StringXString s[], const char *prefix,
163  FILE *file)
164 {
165  int i = 0;
166  while(s[i].str) {
167  if(!(s[i].level & GMSH_DEPRECATED)) {
168  fprintf(file, "@item %s%s\n", prefix, s[i].str);
169  fprintf(file, "%s@*\n", s[i].help);
170 
171  // sanitize the string for texinfo
172  std::string val = s[i].function(0, GMSH_GET, "");
173  for(std::size_t j = 1; j < val.size(); j++) {
174  if(val[j] == '\n' && val[j - 1] == '\n') val[j - 1] = '.';
175  }
176  fprintf(file, "Default value: @code{\"%s\"}@*\n", val.c_str());
177  fprintf(file, "Saved in: @code{%s}\n\n", GetOptionSaveLevel(s[i].level));
178  }
179  i++;
180  }
181 }
182 
183 // General routines for numeric options
184 
185 bool NumberOption(int action, const char *category, int num, const char *name,
186  double &val, bool warnIfUnknown)
187 {
188  StringXNumber *s = nullptr;
189  if(!strcmp(category, "General"))
191  else if(!strcmp(category, "Geometry"))
193  else if(!strcmp(category, "Mesh"))
194  s = MeshOptions_Number;
195  else if(!strcmp(category, "Solver"))
197  else if(!strcmp(category, "PostProcessing"))
199  else if(!strcmp(category, "View"))
200  s = ViewOptions_Number;
201  else if(!strcmp(category, "Print"))
203  else {
204  if(warnIfUnknown)
205  Msg::Error("Unknown number option category '%s'", category);
206  return false;
207  }
208 
209  int i = 0;
210  while(s[i].str && strcmp(s[i].str, name)) i++;
211  if(!s[i].str) {
212  if(warnIfUnknown)
213  Msg::Error("Unknown number option '%s.%s'", category, name);
214  return false;
215  }
216 
217  if(action & GMSH_GET_DEFAULT)
218  val = s[i].def;
219  else if(action & GMSH_SET_DEFAULT)
220  val = s[i].function(num, action | GMSH_SET, s[i].def);
221  else
222  val = s[i].function(num, action, val);
223 
224  return true;
225 }
226 
227 static void SetDefaultNumberOptions(int num, StringXNumber s[])
228 {
229  int i = 0;
230  while(s[i].str) {
231  s[i].function(num, GMSH_SET_DEFAULT | GMSH_SET, s[i].def);
232  i++;
233  }
234 }
235 
236 static void SetNumberOptionsGUI(int num, StringXNumber s[])
237 {
238  int i = 0;
239  while(s[i].str) {
240  s[i].function(num, GMSH_GUI, 0);
241  i++;
242  }
243 }
244 
245 static void PrintNumberOptions(int num, int level, int diff, int help,
246  StringXNumber s[], const char *prefix,
247  FILE *file, std::vector<std::string> *vec = nullptr)
248 {
249  int i = 0;
250  char tmp[1024];
251  while(s[i].str) {
252  if((s[i].level & level) && !(s[i].level & GMSH_DEPRECATED)) {
253  if(!diff || (s[i].function(num, GMSH_GET, 0) != s[i].def)) {
254  sprintf(tmp, "%s%s = %.16g;%s%s", prefix, s[i].str,
255  s[i].function(num, GMSH_GET, 0), help ? " // " : "",
256  help ? s[i].help : "");
257  if(file)
258  fprintf(file, "%s\n", tmp);
259  else if(vec)
260  vec->push_back(std::string(tmp) + '\0' + "number");
261  else
262  Msg::Direct(tmp);
263  }
264  }
265  i++;
266  }
267 }
268 
269 static void PrintNumberOptionsDoc(StringXNumber s[], const char *prefix,
270  FILE *file)
271 {
272  int i = 0;
273  while(s[i].str) {
274  if(!(s[i].level & GMSH_DEPRECATED)) {
275  fprintf(file, "@item %s%s\n", prefix, s[i].str);
276  fprintf(file, "%s@*\n", s[i].help);
277  fprintf(file, "Default value: @code{%g}@*\n",
278  s[i].function(0, GMSH_GET, 0));
279  fprintf(file, "Saved in: @code{%s}\n\n", GetOptionSaveLevel(s[i].level));
280  }
281  i++;
282  }
283 }
284 
285 // General routines for color options
286 
287 bool ColorOption(int action, const char *category, int num, const char *name,
288  unsigned int &val, bool warnIfUnknown)
289 {
290  StringXColor *s = nullptr;
291  if(!strcmp(category, "General"))
293  else if(!strcmp(category, "Geometry"))
295  else if(!strcmp(category, "Mesh"))
296  s = MeshOptions_Color;
297  else if(!strcmp(category, "Solver"))
299  else if(!strcmp(category, "PostProcessing"))
301  else if(!strcmp(category, "View"))
302  s = ViewOptions_Color;
303  else if(!strcmp(category, "Print"))
304  s = PrintOptions_Color;
305  else {
306  if(warnIfUnknown)
307  Msg::Error("Unknown color option category '%s'", category);
308  return false;
309  }
310 
311  int i = 0;
312  while(s[i].str && strcmp(s[i].str, name)) i++;
313  if(!s[i].str) {
314  if(warnIfUnknown)
315  Msg::Error("Unknown color option '%s.%s'", category, name);
316  return false;
317  }
318 
319  if(action & GMSH_GET_DEFAULT)
320  val = CTX::instance()->packColor(s[i].def1[0], s[i].def1[1], s[i].def1[2],
321  s[i].def1[3]);
322  else if(action & GMSH_SET_DEFAULT)
323  val = s[i].function(num, action | GMSH_SET,
324  CTX::instance()->packColor(s[i].def1[0], s[i].def1[1],
325  s[i].def1[2], s[i].def1[3]));
326  else
327  val = s[i].function(num, action, val);
328  return true;
329 }
330 
331 int GetColorForString(int alpha, const char *str, int *FlagError)
332 {
333  int i = 0;
334  while(ColorString[i].str && strcmp(ColorString[i].str, str)) i++;
335  *FlagError = !ColorString[i].str ? 1 : 0;
336  if(alpha > 0)
337  return CTX::instance()->packColor(ColorString[i].int1, ColorString[i].int2,
338  ColorString[i].int3, alpha);
339  else
340  return CTX::instance()->packColor(ColorString[i].int1, ColorString[i].int2,
341  ColorString[i].int3, ColorString[i].int4);
342 }
343 
344 bool GetRGBForString(const char *str, int &r, int &g, int &b)
345 {
346  int i = 0;
347  while(ColorString[i].str && strcmp(ColorString[i].str, str)) i++;
348  if(!ColorString[i].str) {
349  r = g = b = 0;
350  return false;
351  }
352  r = ColorString[i].int1;
353  g = ColorString[i].int2;
354  b = ColorString[i].int3;
355  return true;
356 }
357 
358 static void SetDefaultColorOptions(int num, StringXColor s[])
359 {
360  int i = 0;
361  // Warning: this assumes that CTX::instance()->color_scheme is set...
362  switch(CTX::instance()->colorScheme) {
363  case 1:
364  while(s[i].str) {
365  s[i].function(num, GMSH_SET_DEFAULT | GMSH_SET,
366  CTX::instance()->packColor(s[i].def2[0], s[i].def2[1],
367  s[i].def2[2], s[i].def2[3]));
368  i++;
369  }
370  break;
371  case 2:
372  while(s[i].str) {
373  s[i].function(num, GMSH_SET_DEFAULT | GMSH_SET,
374  CTX::instance()->packColor(s[i].def3[0], s[i].def3[1],
375  s[i].def3[2], s[i].def3[3]));
376  i++;
377  }
378  break;
379  case 3:
380  while(s[i].str) {
381  s[i].function(num, GMSH_SET_DEFAULT | GMSH_SET,
382  CTX::instance()->packColor(s[i].def4[0], s[i].def4[1],
383  s[i].def4[2], s[i].def4[3]));
384  i++;
385  }
386  break;
387  default:
388  while(s[i].str) {
389  s[i].function(num, GMSH_SET_DEFAULT | GMSH_SET,
390  CTX::instance()->packColor(s[i].def1[0], s[i].def1[1],
391  s[i].def1[2], s[i].def1[3]));
392  i++;
393  }
394  break;
395  }
396 }
397 
398 static void SetColorOptionsGUI(int num, StringXColor s[])
399 {
400  int i = 0;
401  while(s[i].str) {
402  s[i].function(num, GMSH_GUI, 0);
403  i++;
404  }
405 }
406 
407 static void PrintColorOptions(int num, int level, int diff, int help,
408  StringXColor s[], const char *prefix, FILE *file,
409  std::vector<std::string> *vec)
410 {
411  int i = 0;
412  char tmp[1024];
413  while(s[i].str) {
414  if((s[i].level & level) && !(s[i].level & GMSH_DEPRECATED)) {
415  unsigned int def;
416  switch(CTX::instance()->colorScheme) {
417  case 1:
418  def = CTX::instance()->packColor(s[i].def2[0], s[i].def2[1],
419  s[i].def2[2], s[i].def2[3]);
420  break;
421  case 2:
422  def = CTX::instance()->packColor(s[i].def3[0], s[i].def3[1],
423  s[i].def3[2], s[i].def3[3]);
424  break;
425  case 3:
426  def = CTX::instance()->packColor(s[i].def4[0], s[i].def4[1],
427  s[i].def4[2], s[i].def4[3]);
428  break;
429  default:
430  def = CTX::instance()->packColor(s[i].def1[0], s[i].def1[1],
431  s[i].def1[2], s[i].def1[3]);
432  break;
433  }
434  if(!diff || (s[i].function(num, GMSH_GET, 0) != def)) {
435  sprintf(tmp, "%sColor.%s = {%d,%d,%d};%s%s", prefix, s[i].str,
436  CTX::instance()->unpackRed(s[i].function(num, GMSH_GET, 0)),
437  CTX::instance()->unpackGreen(s[i].function(num, GMSH_GET, 0)),
438  CTX::instance()->unpackBlue(s[i].function(num, GMSH_GET, 0)),
439  help ? " // " : "", help ? s[i].help : "");
440  if(file)
441  fprintf(file, "%s\n", tmp);
442  else if(vec)
443  vec->push_back(std::string(tmp) + '\0' + "color");
444  else
445  Msg::Direct(tmp);
446  }
447  }
448  i++;
449  }
450 }
451 
452 static void PrintColorOptionsDoc(StringXColor s[], const char *prefix,
453  FILE *file)
454 {
455  int i = 0;
456  while(s[i].str) {
457  if(!(s[i].level & GMSH_DEPRECATED)) {
458  fprintf(file, "@item %sColor.%s\n", prefix, s[i].str);
459  fprintf(file, "%s@*\n", s[i].help);
460  fprintf(file, "Default value: @code{@{%d,%d,%d@}}@*\n",
461  CTX::instance()->unpackRed(s[i].function(0, GMSH_GET, 0)),
462  CTX::instance()->unpackGreen(s[i].function(0, GMSH_GET, 0)),
463  CTX::instance()->unpackBlue(s[i].function(0, GMSH_GET, 0)));
464  fprintf(file, "Saved in: @code{%s}\n\n", GetOptionSaveLevel(s[i].level));
465  }
466  i++;
467  }
468 }
469 
470 // General routines
471 
472 void InitOptions(int num)
473 {
474  CTX::instance()->init();
475 
476  // Default string options
484 
485  // Default number options
493 
494  // Default color options
502 }
503 
504 void ReInitOptions(int num)
505 {
506  // horrible trick so that opt_view_XXX will act on the reference view
507 #if defined(HAVE_POST)
508  std::vector<PView *> tmp = PView::list;
509  PView::list.clear();
510 #endif
511 
512  InitOptions(num);
513 
514 #if defined(HAVE_POST)
515  PView::list = tmp;
516  for(std::size_t i = 0; i < PView::list.size(); i++)
517  PView::list[i]->setOptions();
518 #endif
519 }
520 
521 void InitOptionsGUI(int num)
522 {
529 
536 
543 }
544 
545 static void PrintOptionCategory(int level, int diff, int help, const char *cat,
546  FILE *file, std::vector<std::string> *vec = nullptr)
547 {
548  if(diff || !help || !(level & GMSH_FULLRC)) return;
549  if(file) {
550  fprintf(file, "//\n");
551  fprintf(file, "// %s\n", cat);
552  fprintf(file, "//\n");
553  }
554  else if(vec) {
555  vec->push_back("//");
556  vec->push_back(std::string("// ") + cat);
557  vec->push_back("//");
558  }
559  else {
560  Msg::Direct("//");
561  Msg::Direct("// %s", cat);
562  Msg::Direct("//");
563  }
564 }
565 
567 {
568 #if defined(HAVE_POST)
569  PViewOptions *opt;
570  if(PView::list.empty() || num < 0 || num > (int)PView::list.size() - 1)
571  opt = PViewOptions::reference();
572  else {
573  opt = PView::list[num]->getOptions();
574  // assume that if we access the colortable we will change it
575  PView::list[num]->setChanged(true);
576  }
577  return &opt->colorTable;
578 #else
579  return 0;
580 #endif
581 }
582 
583 static void PrintColorTable(int num, int diff, const char *prefix, FILE *file,
584  std::vector<std::string> *vec)
585 {
586 #if defined(HAVE_POST)
587  PViewOptions *opt;
588  if(PView::list.empty() || num < 0 || num > (int)PView::list.size() - 1)
589  opt = PViewOptions::reference();
590  else
591  opt = PView::list[num]->getOptions();
592 
593  if(diff) {
594  // compare the current colormap with a vanilla colormap having the
595  // parameters
596  GmshColorTable ref;
598  for(int i = 0; i < COLORTABLE_NBMAX_PARAM; i++) {
599  ref.ipar[i] = opt->colorTable.ipar[i];
600  ref.dpar[i] = opt->colorTable.dpar[i];
601  }
602  ColorTable_Recompute(&ref);
603  if(!ColorTable_Diff(&ref, &opt->colorTable)) return;
604  }
605 
606  char tmp[1024];
607  sprintf(tmp, "%s = {", prefix);
608  if(file)
609  fprintf(file, "%s\n", tmp);
610  else if(vec)
611  vec->push_back(tmp);
612  else
613  Msg::Direct(tmp);
614  ColorTable_Print(&opt->colorTable, file, vec);
615  sprintf(tmp, "};");
616  if(file)
617  fprintf(file, "%s\n", tmp);
618  else if(vec)
619  vec->push_back(tmp);
620  else
621  Msg::Direct(tmp);
622 #endif
623 }
624 
625 void Sanitize_String_Texi(std::string &s)
626 {
627  int i = -1;
628  while((i = s.find('\n', i + 1)) >= 0) {
629  s.insert(i, "@*");
630  i += 2;
631  }
632  i = -1;
633  while((i = s.find_first_of("{}", i + 1)) >= 0) s.insert(i++, "@");
634 }
635 
636 void PrintOptions(int num, int level, int diff, int help, const char *filename,
637  std::vector<std::string> *vec)
638 {
639 #if defined(HAVE_FLTK)
640  if(FlGui::available()) FlGui::instance()->storeCurrentWindowsInfo();
641 #endif
642 
643  FILE *file;
644 
645  if(filename) {
646  file = Fopen(filename, "w");
647  if(!file) {
648  Msg::Error("Unable to open file '%s'", filename);
649  return;
650  }
651  }
652  else
653  file = nullptr;
654 
655  if((level & GMSH_SESSIONRC) && file) {
656  fprintf(file, "// Gmsh Session File\n");
657  fprintf(file, "//\n");
658  fprintf(file,
659  "// This file contains session specific info (that is info you\n");
660  fprintf(
661  file,
662  "// want to keep between two Gmsh sessions). You are not supposed\n");
663  fprintf(
664  file,
665  "// to edit it manually, but of course you can. This file will be\n");
666  fprintf(file,
667  "// entirely rewritten every time you quit Gmsh if the option \n");
668  fprintf(file, "// 'General.SaveSession' is set.\n");
669  fprintf(file, "//\n");
670  }
671 
672  if((level & GMSH_OPTIONSRC) && file) {
673  fprintf(file, "// Gmsh Option File\n");
674  fprintf(file, "//\n");
675  fprintf(file,
676  "// This file contains configuration options (preferences) that\n");
677  fprintf(file,
678  "// are loaded each time Gmsh is launched. You can create this\n");
679  fprintf(file, "// file by hand, or let Gmsh generate it for you (with\n");
680  fprintf(file, "// 'File->Save Default Options'). This file can also be\n");
681  fprintf(file,
682  "// automatically saved every time you quit Gmsh if the option\n");
683  fprintf(file, "// 'General.SaveOptions' is set.\n");
684  fprintf(file, "//\n");
685  }
686 
687  PrintOptionCategory(level, diff, help, "General options (strings)", file,
688  vec);
689  PrintStringOptions(num, level, diff, help, GeneralOptions_String, "General.",
690  file, vec);
691  PrintOptionCategory(level, diff, help, "General options (numbers)", file,
692  vec);
693  PrintNumberOptions(num, level, diff, help, GeneralOptions_Number, "General.",
694  file, vec);
695  PrintOptionCategory(level, diff, help, "General options (colors)", file, vec);
696  PrintColorOptions(num, level, diff, help, GeneralOptions_Color, "General.",
697  file, vec);
698 
699  PrintOptionCategory(level, diff, help, "Geometry options (strings)", file,
700  vec);
701  PrintStringOptions(num, level, diff, help, GeometryOptions_String,
702  "Geometry.", file, vec);
703  PrintOptionCategory(level, diff, help, "Geometry options (numbers)", file,
704  vec);
705  PrintNumberOptions(num, level, diff, help, GeometryOptions_Number,
706  "Geometry.", file, vec);
707  PrintOptionCategory(level, diff, help, "Geometry options (colors)", file,
708  vec);
709  PrintColorOptions(num, level, diff, help, GeometryOptions_Color, "Geometry.",
710  file, vec);
711 
712  PrintOptionCategory(level, diff, help, "Mesh options (strings)", file, vec);
713  PrintStringOptions(num, level, diff, help, MeshOptions_String, "Mesh.", file,
714  vec);
715  PrintOptionCategory(level, diff, help, "Mesh options (numbers)", file, vec);
716  PrintNumberOptions(num, level, diff, help, MeshOptions_Number, "Mesh.", file,
717  vec);
718  PrintOptionCategory(level, diff, help, "Mesh options (colors)", file, vec);
719  PrintColorOptions(num, level, diff, help, MeshOptions_Color, "Mesh.", file,
720  vec);
721 
722  PrintOptionCategory(level, diff, help, "Solver options (strings)", file, vec);
723  PrintStringOptions(num, level, diff, help, SolverOptions_String, "Solver.",
724  file, vec);
725  PrintOptionCategory(level, diff, help, "Solver options (numbers)", file, vec);
726  PrintNumberOptions(num, level, diff, help, SolverOptions_Number, "Solver.",
727  file, vec);
728  PrintOptionCategory(level, diff, help, "Solver options (colors)", file, vec);
729  PrintColorOptions(num, level, diff, help, SolverOptions_Color, "Solver.",
730  file, vec);
731 
732  PrintOptionCategory(level, diff, help, "Post-processing options (strings)",
733  file, vec);
734  PrintStringOptions(num, level, diff, help, PostProcessingOptions_String,
735  "PostProcessing.", file, vec);
736  PrintOptionCategory(level, diff, help, "Post-processing options (numbers)",
737  file, vec);
738  PrintNumberOptions(num, level, diff, help, PostProcessingOptions_Number,
739  "PostProcessing.", file, vec);
740  PrintOptionCategory(level, diff, help, "Post-processing options (colors)",
741  file, vec);
742  PrintColorOptions(num, level, diff, help, PostProcessingOptions_Color,
743  "PostProcessing.", file, vec);
744 
745  if(level & GMSH_FULLRC) {
746 #if defined(HAVE_POST)
747  for(std::size_t i = 0; i < PView::list.size(); i++) {
748  char tmp[256];
749  sprintf(tmp, "View[%lu].", i);
750  PrintOptionCategory(level, diff, help, "View options (strings)", file,
751  vec);
752  PrintStringOptions(i, level, diff, help, ViewOptions_String, tmp, file,
753  vec);
754  PrintOptionCategory(level, diff, help, "View options (numbers)", file,
755  vec);
756  PrintNumberOptions(i, level, diff, help, ViewOptions_Number, tmp, file,
757  vec);
758  PrintOptionCategory(level, diff, help, "View options (colors)", file,
759  vec);
760  PrintColorOptions(i, level, diff, help, ViewOptions_Color, tmp, file,
761  vec);
762  strcat(tmp, "ColorTable");
763  PrintColorTable(i, diff, tmp, file, vec);
764  }
765 #endif
766  }
767  else if(level & GMSH_OPTIONSRC) {
768  PrintOptionCategory(level, diff, help, "View options (strings)", file, vec);
769  PrintStringOptions(num, level, diff, help, ViewOptions_String, "View.",
770  file, vec);
771  PrintOptionCategory(level, diff, help, "View options (numbers)", file, vec);
772  PrintNumberOptions(num, level, diff, help, ViewOptions_Number, "View.",
773  file, vec);
774  PrintOptionCategory(level, diff, help, "View options (colors)", file, vec);
775  PrintColorOptions(num, level, diff, help, ViewOptions_Color, "View.", file,
776  vec);
777  PrintColorTable(num, diff, "View.ColorTable", file, vec);
778  }
779 
780  PrintOptionCategory(level, diff, help, "Print options (strings)", file, vec);
781  PrintStringOptions(num, level, diff, help, PrintOptions_String, "Print.",
782  file, vec);
783  PrintOptionCategory(level, diff, help, "Print options (numbers)", file, vec);
784  PrintNumberOptions(num, level, diff, help, PrintOptions_Number, "Print.",
785  file, vec);
786  PrintOptionCategory(level, diff, help, "Print options (colors)", file, vec);
787  PrintColorOptions(num, level, diff, help, PrintOptions_Color, "Print.", file,
788  vec);
789 
790  if(filename) fclose(file);
791 }
792 
794 {
795  const char *warn =
796  "@c This file was generated by \"gmsh -doc\": do not edit manually!\n\n";
797 
798  {
799  FILE *file = Fopen("opt_general.texi", "w");
800  if(!file) {
801  Msg::Error("Unable to open file 'opt_general.texi'");
802  return;
803  }
804  fprintf(file, "%s@ftable @code\n", warn);
805  PrintStringOptionsDoc(GeneralOptions_String, "General.", file);
806  PrintNumberOptionsDoc(GeneralOptions_Number, "General.", file);
807  PrintColorOptionsDoc(GeneralOptions_Color, "General.", file);
808  fprintf(file, "@end ftable\n");
809  fclose(file);
810  }
811  {
812  FILE *file = Fopen("opt_print.texi", "w");
813  if(!file) {
814  Msg::Error("Unable to open file 'opt_print.texi'");
815  return;
816  }
817  fprintf(file, "%s@ftable @code\n", warn);
820  PrintColorOptionsDoc(PrintOptions_Color, "Print.", file);
821  fprintf(file, "@end ftable\n");
822  fclose(file);
823  }
824  {
825  FILE *file = Fopen("opt_geometry.texi", "w");
826  if(!file) {
827  Msg::Error("Unable to open file 'opt_geometry.texi'");
828  return;
829  }
830  fprintf(file, "%s@ftable @code\n", warn);
831  PrintStringOptionsDoc(GeometryOptions_String, "Geometry.", file);
832  PrintNumberOptionsDoc(GeometryOptions_Number, "Geometry.", file);
833  PrintColorOptionsDoc(GeometryOptions_Color, "Geometry.", file);
834  fprintf(file, "@end ftable\n");
835  fclose(file);
836  }
837  {
838  FILE *file = Fopen("opt_mesh.texi", "w");
839  if(!file) {
840  Msg::Error("Unable to open file 'opt_mesh.texi'");
841  return;
842  }
843  fprintf(file, "%s@ftable @code\n", warn);
846  PrintColorOptionsDoc(MeshOptions_Color, "Mesh.", file);
847  fprintf(file, "@end ftable\n");
848  fclose(file);
849  }
850  {
851  FILE *file = Fopen("opt_solver.texi", "w");
852  if(!file) {
853  Msg::Error("Unable to open file 'opt_solver.texi'");
854  return;
855  }
856  fprintf(file, "%s@ftable @code\n", warn);
859  PrintColorOptionsDoc(SolverOptions_Color, "Solver.", file);
860  fprintf(file, "@end ftable\n");
861  fclose(file);
862  }
863  {
864  FILE *file = Fopen("opt_post.texi", "w");
865  if(!file) {
866  Msg::Error("Unable to open file 'opt_post.texi'");
867  return;
868  }
869  fprintf(file, "%s@ftable @code\n", warn);
871  file);
873  file);
874  PrintColorOptionsDoc(PostProcessingOptions_Color, "PostProcessing.", file);
875  fprintf(file, "@end ftable\n");
876  fclose(file);
877  }
878  {
879 #if defined(HAVE_POST)
880  FILE *file = Fopen("opt_view.texi", "w");
881  if(!file) {
882  Msg::Error("Unable to open file 'opt_view.texi'");
883  return;
884  }
885  fprintf(file, "%s@ftable @code\n", warn);
888  PrintColorOptionsDoc(ViewOptions_Color, "View.", file);
889  fprintf(file, "@item View.ColorTable\n");
890  fprintf(file, "Color table used to draw the view@*\n");
891  fprintf(file, "Saved in: @code{%s}\n\n",
893  fprintf(file, "@end ftable\n");
894  fclose(file);
895 #endif
896  }
897  {
898 #if defined(HAVE_PLUGINS)
899  FILE *file = Fopen("plugins.texi", "w");
900  if(!file) {
901  Msg::Error("Unable to open file 'plugins.texi'");
902  return;
903  }
904  fprintf(file, "%s@ftable @code\n", warn);
905  for(auto it =
906  PluginManager::instance()->begin();
907  it != PluginManager::instance()->end(); ++it) {
908  GMSH_Plugin *p = it->second;
909  fprintf(file, "@item Plugin(%s)\n", p->getName().c_str());
910  std::string help = p->getHelp();
911  Sanitize_String_Texi(help);
912  fprintf(file, "%s\n", help.c_str());
913  int m = p->getNbOptionsStr();
914  if(m) {
915  fprintf(file, "String options:\n");
916  fprintf(file, "@table @code\n");
917  for(int i = 0; i < m; i++) {
918  StringXString *sxs = p->getOptionStr(i);
919  fprintf(file, "@item %s\n", sxs->str);
920  fprintf(file, "Default value: @code{\"%s\"}\n", sxs->def.c_str());
921  }
922  fprintf(file, "@end table\n");
923  }
924  int n = p->getNbOptions();
925  if(n) {
926  fprintf(file, "Numeric options:\n");
927  fprintf(file, "@table @code\n");
928  for(int i = 0; i < n; i++) {
929  StringXNumber *sxn = p->getOption(i);
930  fprintf(file, "@item %s\n", sxn->str);
931  fprintf(file, "Default value: @code{%g}\n", sxn->def);
932  }
933  fprintf(file, "@end table\n");
934  }
935  fprintf(file, "\n");
936  }
937  fprintf(file, "@end ftable\n");
938  fclose(file);
939 #endif
940  }
941 
942 #if defined(HAVE_MESH)
943  {
944  FILE *file = Fopen("fields.texi", "w");
945  if(!file) {
946  Msg::Error("Unable to open file 'fields.texi'");
947  return;
948  }
949  fprintf(file, "%s@ftable @code\n", warn);
950  FieldManager &fields = *GModel::current()->getFields();
951  for(auto it = fields.mapTypeName.begin(); it != fields.mapTypeName.end();
952  it++) {
953  if(it->first == "Attractor") continue;
954  Field *f = (*it->second)();
955  if(f->isDeprecated()) continue;
956  fprintf(file, "@item %s\n", it->first.c_str());
957  std::string field_description = f->getDescription();
958  Sanitize_String_Texi(field_description);
959  fprintf(file, "%s@*\n", field_description.c_str());
960  if(!f->options.empty()) {
961  fprintf(file, "@*\nOptions:@*\n");
962  fprintf(file, "@table @code\n");
963  for(auto it2 = f->options.begin(); it2 != f->options.end(); it2++) {
964  if(it2->second->isDeprecated()) continue;
965  fprintf(file, "@item %s\n", it2->first.c_str());
966  std::string val;
967  it2->second->getTextRepresentation(val);
969  fprintf(file, "%s@*\nType: %s@*\nDefault value: @code{%s}\n",
970  it2->second->getDescription().c_str(),
971  it2->second->getTypeName().c_str(), val.c_str());
972  }
973  fprintf(file, "@end table\n\n");
974  }
975  if(!f->callbacks.empty()) {
976  fprintf(file, "Actions:@*\n");
977  fprintf(file, "@table @code\n");
978  for(auto it2 =
979  f->callbacks.begin();
980  it2 != f->callbacks.end(); it2++) {
981  fprintf(file, "@item %s\n", it2->first.c_str());
982  fprintf(file, "%s@*\n", it2->second->getDescription().c_str());
983  }
984  fprintf(file, "@end table\n\n");
985  }
986  }
987  fprintf(file, "@end ftable\n");
988  fclose(file);
989  }
990 #endif
991  {
992  FILE *file = Fopen("shortcuts.texi", "w");
993  if(!file) {
994  Msg::Error("Unable to open file 'shortcuts.texi'");
995  return;
996  }
997  std::vector<std::pair<std::string, std::string> > s =
998  GetShortcutsUsage("Ctrl+");
999  fprintf(file, "%s@table @kbd\n", warn);
1000  for(std::size_t i = 0; i < s.size(); i++)
1001  fprintf(file, "@item %s\n%s\n", s[i].first.c_str(), s[i].second.c_str());
1002  fprintf(file, "@end table\n");
1003  fclose(file);
1004  }
1005  {
1006  FILE *file = Fopen("mouse.texi", "w");
1007  if(!file) {
1008  Msg::Error("Unable to open file 'mouse.texi'");
1009  return;
1010  }
1011  std::vector<std::pair<std::string, std::string> > s = GetMouseUsage();
1012  fprintf(file, "%s@table @kbd\n", warn);
1013  for(std::size_t i = 0; i < s.size(); i++)
1014  fprintf(file, "@item %s\n%s\n", s[i].first.c_str(), s[i].second.c_str());
1015  fprintf(file, "@end table\n");
1016  fclose(file);
1017  }
1018  {
1019  FILE *file = Fopen("commandline.texi", "w");
1020  if(!file) {
1021  Msg::Error("Unable to open file 'commandline.texi'");
1022  return;
1023  }
1024  std::vector<std::pair<std::string, std::string> > s = GetUsage();
1025  fprintf(file, "%s@ftable @code\n", warn);
1026  for(std::size_t i = 0; i < s.size(); i++)
1027  if(s[i].first.size() && s[i].second.size())
1028  fprintf(file, "@item %s\n%s\n", s[i].first.c_str(),
1029  s[i].second.c_str());
1030  else if(s[i].first.size() && s[i].second.empty())
1031  fprintf(file, "@end ftable\n %s\n@ftable @code\n", s[i].first.c_str());
1032  fprintf(file, "@end ftable\n");
1033  fclose(file);
1034  }
1035 }
1036 
1037 #define GET_VIEW(error_val) \
1038  PView *view = 0; \
1039  PViewData *data = 0; \
1040  PViewOptions *opt; \
1041  if(PView::list.empty()) \
1042  opt = PViewOptions::reference(); \
1043  else { \
1044  if(num < 0 || num >= (int)PView::list.size()) { \
1045  Msg::Warning("View[%d] does not exist", num); \
1046  return (error_val); \
1047  } \
1048  view = PView::list[num]; \
1049  data = view->getData(); \
1050  opt = view->getOptions(); \
1051  }
1052 
1053 #define GET_VIEWo(error_val) \
1054  PView *view = 0; \
1055  PViewOptions *opt; \
1056  if(PView::list.empty()) \
1057  opt = PViewOptions::reference(); \
1058  else { \
1059  if(num < 0 || num >= (int)PView::list.size()) { \
1060  Msg::Warning("View[%d] does not exist", num); \
1061  return (error_val); \
1062  } \
1063  view = PView::list[num]; \
1064  opt = view->getOptions(); \
1065  }
1066 
1067 #define GET_VIEWd(error_val) \
1068  PView *view = 0; \
1069  PViewData *data = 0; \
1070  if(!PView::list.empty()) { \
1071  if(num < 0 || num >= (int)PView::list.size()) { \
1072  Msg::Warning("View[%d] does not exist", num); \
1073  return (error_val); \
1074  } \
1075  view = PView::list[num]; \
1076  data = view->getData(); \
1077  }
1078 
1079 // String option routines
1080 
1082 {
1083  if(action & GMSH_SET) CTX::instance()->axesLabel[0] = val;
1084 #if defined(HAVE_FLTK)
1085  if(FlGui::available() && (action & GMSH_GUI))
1086  FlGui::instance()->options->general.input[6]->value(
1087  CTX::instance()->axesLabel[0].c_str());
1088 #endif
1089  return CTX::instance()->axesLabel[0];
1090 }
1091 
1093 {
1094  if(action & GMSH_SET) CTX::instance()->axesLabel[1] = val;
1095 #if defined(HAVE_FLTK)
1096  if(FlGui::available() && (action & GMSH_GUI))
1097  FlGui::instance()->options->general.input[7]->value(
1098  CTX::instance()->axesLabel[1].c_str());
1099 #endif
1100  return CTX::instance()->axesLabel[1];
1101 }
1102 
1104 {
1105  if(action & GMSH_SET) CTX::instance()->axesLabel[2] = val;
1106 #if defined(HAVE_FLTK)
1107  if(FlGui::available() && (action & GMSH_GUI))
1108  FlGui::instance()->options->general.input[8]->value(
1109  CTX::instance()->axesLabel[2].c_str());
1110 #endif
1111  return CTX::instance()->axesLabel[2];
1112 }
1113 
1115 {
1116  if(action & GMSH_SET) CTX::instance()->axesFormat[0] = val;
1117 #if defined(HAVE_FLTK)
1118  if(FlGui::available() && (action & GMSH_GUI))
1119  FlGui::instance()->options->general.input[3]->value(
1120  CTX::instance()->axesFormat[0].c_str());
1121 #endif
1122  return CTX::instance()->axesFormat[0];
1123 }
1124 
1126 {
1127  if(action & GMSH_SET) CTX::instance()->axesFormat[1] = val;
1128 #if defined(HAVE_FLTK)
1129  if(FlGui::available() && (action & GMSH_GUI))
1130  FlGui::instance()->options->general.input[4]->value(
1131  CTX::instance()->axesFormat[1].c_str());
1132 #endif
1133  return CTX::instance()->axesFormat[1];
1134 }
1135 
1137 {
1138  if(action & GMSH_SET) CTX::instance()->axesFormat[2] = val;
1139 #if defined(HAVE_FLTK)
1140  if(FlGui::available() && (action & GMSH_GUI))
1141  FlGui::instance()->options->general.input[5]->value(
1142  CTX::instance()->axesFormat[2].c_str());
1143 #endif
1144  return CTX::instance()->axesFormat[2];
1145 }
1146 
1148 {
1149  if(action & GMSH_SET) CTX::instance()->display = val;
1150  return CTX::instance()->display;
1151 }
1152 
1154 {
1155  if(action & GMSH_SET) {
1156 #if defined(HAVE_FLTK)
1157  if(CTX::instance()->bgImageFileName != val && FlGui::available()) {
1158  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
1159  for(std::size_t j = 0; j < FlGui::instance()->graph[i]->gl.size(); j++)
1160  FlGui::instance()
1161  ->graph[i]
1162  ->gl[j]
1163  ->getDrawContext()
1164  ->invalidateBgImageTexture();
1165  }
1166 #endif
1167  CTX::instance()->bgImageFileName = val;
1168  }
1169  return CTX::instance()->bgImageFileName;
1170 }
1171 
1172 std::string opt_general_version(OPT_ARGS_STR) { return GMSH_VERSION; }
1173 
1175 {
1176  std::string s = GMSH_CONFIG_OPTIONS;
1177  s.erase(0, 1);
1178  return s;
1179 }
1180 
1182 {
1183  std::vector<std::string> ss = GetBuildInfo();
1184  std::string s;
1185  for(std::size_t i = 0; i < ss.size(); i++) {
1186  s += ReplaceSubString(" :", ":", ss[i]);
1187  if(i != ss.size() - 1) s += "; ";
1188  }
1189  std::string::size_type pos;
1190  while((pos = s.find(" ")) != std::string::npos) {
1191  s.replace(pos, 2, " ");
1192  }
1193  return s;
1194 }
1195 
1197 {
1198  return GModel::current()->getFileName();
1199 }
1200 
1202 {
1203  return CTX::instance()->exeFileName;
1204 }
1205 
1207 {
1208  if(action & GMSH_SET) CTX::instance()->defaultFileName = val;
1209 #if defined(HAVE_FLTK)
1210  if(FlGui::available() && (action & GMSH_GUI))
1211  FlGui::instance()->options->general.input[0]->value(
1212  CTX::instance()->defaultFileName.c_str());
1213 #endif
1214  return CTX::instance()->defaultFileName;
1215 }
1216 
1218 {
1219  if(action & GMSH_SET) CTX::instance()->tmpFileName = val;
1220  return CTX::instance()->tmpFileName;
1221 }
1222 
1224 {
1225  if(action & GMSH_SET) CTX::instance()->errorFileName = val;
1226  return CTX::instance()->errorFileName;
1227 }
1228 
1230 {
1231  if(action & GMSH_SET) CTX::instance()->sessionFileName = val;
1232  return CTX::instance()->sessionFileName;
1233 }
1234 
1236 {
1237  if(action & GMSH_SET) CTX::instance()->optionsFileName = val;
1238  return CTX::instance()->optionsFileName;
1239 }
1240 
1242 {
1243  if(action & GMSH_SET) CTX::instance()->recentFiles[0] = val;
1244  return CTX::instance()->recentFiles[0];
1245 }
1246 
1248 {
1249  if(action & GMSH_SET) CTX::instance()->recentFiles[1] = val;
1250  return CTX::instance()->recentFiles[1];
1251 }
1252 
1254 {
1255  if(action & GMSH_SET) CTX::instance()->recentFiles[2] = val;
1256  return CTX::instance()->recentFiles[2];
1257 }
1258 
1260 {
1261  if(action & GMSH_SET) CTX::instance()->recentFiles[3] = val;
1262  return CTX::instance()->recentFiles[3];
1263 }
1264 
1266 {
1267  if(action & GMSH_SET) CTX::instance()->recentFiles[4] = val;
1268  return CTX::instance()->recentFiles[4];
1269 }
1270 
1272 {
1273  if(action & GMSH_SET) CTX::instance()->recentFiles[5] = val;
1274  return CTX::instance()->recentFiles[5];
1275 }
1276 
1278 {
1279  if(action & GMSH_SET) CTX::instance()->recentFiles[6] = val;
1280  return CTX::instance()->recentFiles[6];
1281 }
1282 
1284 {
1285  if(action & GMSH_SET) CTX::instance()->recentFiles[7] = val;
1286  return CTX::instance()->recentFiles[7];
1287 }
1288 
1290 {
1291  if(action & GMSH_SET) CTX::instance()->recentFiles[8] = val;
1292  return CTX::instance()->recentFiles[8];
1293 }
1294 
1296 {
1297  if(action & GMSH_SET) CTX::instance()->recentFiles[9] = val;
1298  return CTX::instance()->recentFiles[9];
1299 }
1300 
1302 {
1303  if(action & GMSH_SET)
1304  CTX::instance()->scriptLang = SplitString(val, ',', true);
1305  std::string out = "";
1306  for(std::size_t i = 0; i < CTX::instance()->scriptLang.size(); i++) {
1307  if(i) out += ", ";
1308  out += CTX::instance()->scriptLang[i];
1309  }
1310  return out;
1311 }
1312 
1314 {
1315  if(action & GMSH_SET) CTX::instance()->editor = val;
1316 #if defined(HAVE_FLTK)
1317  if(FlGui::available() && (action & GMSH_GUI))
1318  FlGui::instance()->options->general.input[1]->value(
1319  CTX::instance()->editor.c_str());
1320 #endif
1321  return CTX::instance()->editor;
1322 }
1323 
1325 {
1326  if(action & GMSH_SET) CTX::instance()->watchFilePattern = val;
1327  return CTX::instance()->watchFilePattern;
1328 }
1329 
1331 {
1332  if(action & GMSH_SET) CTX::instance()->guiTheme = val;
1333  return CTX::instance()->guiTheme;
1334 }
1335 
1337 {
1338  if(action & GMSH_SET) CTX::instance()->glFont = val;
1339 #if defined(HAVE_FLTK)
1340  drawContextFltk dc;
1341  int index = dc.getFontIndex(CTX::instance()->glFont.c_str());
1342  if(action & GMSH_SET) {
1343  CTX::instance()->glFont = dc.getFontName(index);
1344  CTX::instance()->glFontEnum = dc.getFontEnum(index);
1345  }
1346  if(FlGui::available() && (action & GMSH_GUI)) {
1347  FlGui::instance()->options->general.choice[1]->value(index);
1348  }
1349 #endif
1350  return CTX::instance()->glFont;
1351 }
1352 
1354 {
1355  if(action & GMSH_SET) CTX::instance()->glFontTitle = val;
1356 #if defined(HAVE_FLTK)
1357  drawContextFltk dc;
1358  int index = dc.getFontIndex(CTX::instance()->glFontTitle.c_str());
1359  if(action & GMSH_SET) {
1360  CTX::instance()->glFontTitle = dc.getFontName(index);
1361  CTX::instance()->glFontEnumTitle = dc.getFontEnum(index);
1362  }
1363  if(FlGui::available() && (action & GMSH_GUI)) {
1364  FlGui::instance()->options->general.choice[6]->value(index);
1365  }
1366 #endif
1367  return CTX::instance()->glFontTitle;
1368 }
1369 
1371 {
1372  if(action & GMSH_SET) CTX::instance()->glFontEngine = val;
1373 
1374 #if defined(HAVE_FLTK)
1375  if(action & GMSH_SET) {
1377  if(!old || old->getName() != CTX::instance()->glFontEngine) {
1378 #if defined(HAVE_CAIRO)
1379  if(CTX::instance()->glFontEngine == "Cairo")
1380  drawContext::setGlobal(new drawContextFltkCairo);
1381  else
1382 #endif
1383  if(CTX::instance()->glFontEngine == "StringTexture")
1384  drawContext::setGlobal(new drawContextFltkStringTexture);
1385  else
1386  drawContext::setGlobal(new drawContextFltk);
1387  if(old) delete old;
1388  }
1389  }
1390  if(FlGui::available() && (action & GMSH_GUI)) {
1391  int index = 0;
1392 #if defined(HAVE_CAIRO)
1393  if(CTX::instance()->glFontEngine == "Cairo") index = 1;
1394 #endif
1395  if(CTX::instance()->glFontEngine == "StringTexture") index = 2;
1396  FlGui::instance()->options->general.choice[7]->value(index);
1397  }
1398 #endif
1399 
1400  return CTX::instance()->glFontEngine;
1401 }
1402 
1404 {
1405  if(action & GMSH_SET) CTX::instance()->geom.doubleClickedPointCommand = val;
1407 }
1408 
1410 {
1411  if(action & GMSH_SET) CTX::instance()->geom.doubleClickedCurveCommand = val;
1413 }
1414 
1416 {
1419 }
1420 
1422 {
1423  if(action & GMSH_SET) CTX::instance()->geom.doubleClickedVolumeCommand = val;
1425 }
1426 
1428 {
1429  if(action & GMSH_SET) CTX::instance()->geom.occTargetUnit = val;
1430  return CTX::instance()->geom.occTargetUnit;
1431 }
1432 
1434 {
1435  if(action & GMSH_SET) CTX::instance()->geom.pipeDefaultTrihedron = val;
1437 }
1438 
1440 {
1441  if(action & GMSH_SET) CTX::instance()->solver.socketName = val;
1442 #if defined(HAVE_FLTK)
1443  if(FlGui::available() && (action & GMSH_GUI))
1444  FlGui::instance()->options->solver.input[0]->value(
1445  CTX::instance()->solver.socketName.c_str());
1446 #endif
1447  return CTX::instance()->solver.socketName;
1448 }
1449 
1451 {
1452  if(num < 0 || num > NUM_SOLVERS - 1) return "";
1453  if(action & GMSH_SET) CTX::instance()->solver.name[num] = val;
1454  return CTX::instance()->solver.name[num];
1455 }
1456 
1458 {
1459  return opt_solver_name(0, action, val);
1460 }
1461 
1463 {
1464  return opt_solver_name(1, action, val);
1465 }
1466 
1468 {
1469  return opt_solver_name(2, action, val);
1470 }
1471 
1473 {
1474  return opt_solver_name(3, action, val);
1475 }
1476 
1478 {
1479  return opt_solver_name(4, action, val);
1480 }
1481 
1483 {
1484  return opt_solver_name(5, action, val);
1485 }
1486 
1488 {
1489  return opt_solver_name(6, action, val);
1490 }
1491 
1493 {
1494  return opt_solver_name(7, action, val);
1495 }
1496 
1498 {
1499  return opt_solver_name(8, action, val);
1500 }
1501 
1503 {
1504  return opt_solver_name(9, action, val);
1505 }
1506 
1508 {
1509  if(num < 0 || num > NUM_SOLVERS - 1) return "";
1510  if(action & GMSH_SET) CTX::instance()->solver.extension[num] = val;
1511  return CTX::instance()->solver.extension[num];
1512 }
1513 
1515 {
1516  return opt_solver_extension(0, action, val);
1517 }
1518 
1520 {
1521  return opt_solver_extension(1, action, val);
1522 }
1523 
1525 {
1526  return opt_solver_extension(2, action, val);
1527 }
1528 
1530 {
1531  return opt_solver_extension(3, action, val);
1532 }
1533 
1535 {
1536  return opt_solver_extension(4, action, val);
1537 }
1538 
1540 {
1541  return opt_solver_extension(5, action, val);
1542 }
1543 
1545 {
1546  return opt_solver_extension(6, action, val);
1547 }
1548 
1550 {
1551  return opt_solver_extension(7, action, val);
1552 }
1553 
1555 {
1556  return opt_solver_extension(8, action, val);
1557 }
1558 
1560 {
1561  return opt_solver_extension(9, action, val);
1562 }
1563 
1565 {
1566  if(num < 0 || num > NUM_SOLVERS - 1) return "";
1567  if(action & GMSH_SET) CTX::instance()->solver.executable[num] = val;
1568  return CTX::instance()->solver.executable[num];
1569 }
1570 
1572 {
1573  return opt_solver_executable(0, action, val);
1574 }
1575 
1577 {
1578  return opt_solver_executable(1, action, val);
1579 }
1580 
1582 {
1583  return opt_solver_executable(2, action, val);
1584 }
1585 
1587 {
1588  return opt_solver_executable(3, action, val);
1589 }
1590 
1592 {
1593  return opt_solver_executable(4, action, val);
1594 }
1595 
1597 {
1598  return opt_solver_executable(5, action, val);
1599 }
1600 
1602 {
1603  return opt_solver_executable(6, action, val);
1604 }
1605 
1607 {
1608  return opt_solver_executable(7, action, val);
1609 }
1610 
1612 {
1613  return opt_solver_executable(8, action, val);
1614 }
1615 
1617 {
1618  return opt_solver_executable(9, action, val);
1619 }
1620 
1622 {
1623  if(num < 0 || num > NUM_SOLVERS - 1) return "";
1624  if(action & GMSH_SET) CTX::instance()->solver.remoteLogin[num] = val;
1625  return CTX::instance()->solver.remoteLogin[num];
1626 }
1627 
1629 {
1630  return opt_solver_remote_login(0, action, val);
1631 }
1632 
1634 {
1635  return opt_solver_remote_login(1, action, val);
1636 }
1637 
1639 {
1640  return opt_solver_remote_login(2, action, val);
1641 }
1642 
1644 {
1645  return opt_solver_remote_login(3, action, val);
1646 }
1647 
1649 {
1650  return opt_solver_remote_login(4, action, val);
1651 }
1652 
1654 {
1655  return opt_solver_remote_login(5, action, val);
1656 }
1657 
1659 {
1660  return opt_solver_remote_login(6, action, val);
1661 }
1662 
1664 {
1665  return opt_solver_remote_login(7, action, val);
1666 }
1667 
1669 {
1670  return opt_solver_remote_login(8, action, val);
1671 }
1672 
1674 {
1675  return opt_solver_remote_login(9, action, val);
1676 }
1677 
1679 {
1680  if(action & GMSH_SET) CTX::instance()->solver.pythonInterpreter = val;
1681 #if defined(HAVE_FLTK)
1682  if(FlGui::available() && (action & GMSH_GUI))
1683  FlGui::instance()->options->solver.input[1]->value(
1684  CTX::instance()->solver.pythonInterpreter.c_str());
1685 #endif
1687 }
1688 
1690 {
1691  if(action & GMSH_SET) CTX::instance()->solver.octaveInterpreter = val;
1692 #if defined(HAVE_FLTK)
1693  if(FlGui::available() && (action & GMSH_GUI))
1694  FlGui::instance()->options->solver.input[2]->value(
1695  CTX::instance()->solver.octaveInterpreter.c_str());
1696 #endif
1698 }
1699 
1701 {
1702  if(action & GMSH_SET)
1705 }
1706 
1707 #if defined(HAVE_FLTK)
1708 int _gui_action_valid(int action, int num)
1709 {
1710  if(!FlGui::available()) return 0;
1711  return (action & GMSH_GUI) && (num == FlGui::instance()->options->view.index);
1712 }
1713 #endif
1714 
1716 {
1717 #if defined(HAVE_POST)
1718  GET_VIEWd("");
1719  if(!data) return "";
1720  if(action & GMSH_SET) {
1721  data->setName(val);
1722 #if defined(HAVE_FLTK)
1723  // change name in GUI for the view and its aliases
1724  if(FlGui::available()) {
1725  for(int i = 0; i < (int)PView::list.size(); i++) {
1726  if((i == num || PView::list[i]->getAliasOf() == view->getTag() ||
1727  PView::list[i]->getTag() == view->getAliasOf()) &&
1728  FlGui::instance()->onelab->getViewButton(i)) {
1729  FlGui::instance()->onelab->getViewButton(i)->copy_label(
1730  data->getName());
1731  FlGui::instance()->onelab->getViewButton(i)->redraw();
1732  }
1733  }
1734  }
1735 #endif
1736  }
1737 #if defined(HAVE_FLTK)
1738  if(_gui_action_valid(action, num)) {
1739  FlGui::instance()->options->view.input[0]->value(data->getName().c_str());
1740  }
1741 #endif
1742  return data->getName();
1743 #else
1744  return "";
1745 #endif
1746 }
1747 
1749 {
1750 #if defined(HAVE_POST)
1751  GET_VIEWo("");
1752  if(action & GMSH_SET) { opt->format = val; }
1753 #if defined(HAVE_FLTK)
1754  if(_gui_action_valid(action, num))
1755  FlGui::instance()->options->view.input[1]->value(opt->format.c_str());
1756 #endif
1757  return opt->format;
1758 #else
1759  return "";
1760 #endif
1761 }
1762 
1764 {
1765 #if defined(HAVE_POST)
1766  GET_VIEWo("");
1767  if(action & GMSH_SET) { opt->doubleClickedCommand = val; }
1768  return opt->doubleClickedCommand;
1769 #else
1770  return "";
1771 #endif
1772 }
1773 
1775 {
1776 #if defined(HAVE_POST)
1777  GET_VIEWo("");
1778  if(action & GMSH_SET) { opt->group = val; }
1779  return opt->group;
1780 #else
1781  return "";
1782 #endif
1783 }
1784 
1786 {
1787 #if defined(HAVE_POST)
1788  GET_VIEWd("");
1789  if(!data) return "";
1790  return data->getFileName();
1791 #else
1792  return "";
1793 #endif
1794 }
1795 
1797 {
1798 #if defined(HAVE_POST)
1799  GET_VIEWo("");
1800  if(action & GMSH_SET) { opt->axesLabel[0] = val; }
1801 #if defined(HAVE_FLTK)
1802  if(_gui_action_valid(action, num))
1803  FlGui::instance()->options->view.input[10]->value(
1804  opt->axesLabel[0].c_str());
1805 #endif
1806  return opt->axesLabel[0];
1807 #else
1808  return "";
1809 #endif
1810 }
1811 
1813 {
1814 #if defined(HAVE_POST)
1815  GET_VIEWo("");
1816  if(action & GMSH_SET) { opt->axesLabel[1] = val; }
1817 #if defined(HAVE_FLTK)
1818  if(_gui_action_valid(action, num))
1819  FlGui::instance()->options->view.input[11]->value(
1820  opt->axesLabel[1].c_str());
1821 #endif
1822  return opt->axesLabel[1];
1823 #else
1824  return "";
1825 #endif
1826 }
1827 
1829 {
1830 #if defined(HAVE_POST)
1831  GET_VIEWo("");
1832  if(action & GMSH_SET) { opt->axesLabel[2] = val; }
1833 #if defined(HAVE_FLTK)
1834  if(_gui_action_valid(action, num))
1835  FlGui::instance()->options->view.input[12]->value(
1836  opt->axesLabel[2].c_str());
1837 #endif
1838  return opt->axesLabel[2];
1839 #else
1840  return "";
1841 #endif
1842 }
1843 
1845 {
1846 #if defined(HAVE_POST)
1847  GET_VIEWo("");
1848  if(action & GMSH_SET) { opt->axesFormat[0] = val; }
1849 #if defined(HAVE_FLTK)
1850  if(_gui_action_valid(action, num))
1851  FlGui::instance()->options->view.input[7]->value(
1852  opt->axesFormat[0].c_str());
1853 #endif
1854  return opt->axesFormat[0];
1855 #else
1856  return "";
1857 #endif
1858 }
1859 
1861 {
1862 #if defined(HAVE_POST)
1863  GET_VIEWo("");
1864  if(action & GMSH_SET) { opt->axesFormat[1] = val; }
1865 #if defined(HAVE_FLTK)
1866  if(_gui_action_valid(action, num))
1867  FlGui::instance()->options->view.input[8]->value(
1868  opt->axesFormat[1].c_str());
1869 #endif
1870  return opt->axesFormat[1];
1871 #else
1872  return "";
1873 #endif
1874 }
1875 
1877 {
1878 #if defined(HAVE_POST)
1879  GET_VIEWo("");
1880  if(action & GMSH_SET) { opt->axesFormat[2] = val; }
1881 #if defined(HAVE_FLTK)
1882  if(_gui_action_valid(action, num))
1883  FlGui::instance()->options->view.input[9]->value(
1884  opt->axesFormat[2].c_str());
1885 #endif
1886  return opt->axesFormat[2];
1887 #else
1888  return "";
1889 #endif
1890 }
1891 
1893 {
1894 #if defined(HAVE_POST)
1895  GET_VIEWo("");
1896  if(action & GMSH_SET) {
1897  opt->genRaiseX = val;
1898  if(view) view->setChanged(true);
1899  }
1900 #if defined(HAVE_FLTK)
1901  if(_gui_action_valid(action, num))
1902  FlGui::instance()->options->view.input[4]->value(opt->genRaiseX.c_str());
1903 #endif
1904  return opt->genRaiseX;
1905 #else
1906  return "";
1907 #endif
1908 }
1909 
1911 {
1912 #if defined(HAVE_POST)
1913  GET_VIEWo("");
1914  if(action & GMSH_SET) {
1915  opt->genRaiseY = val;
1916  if(view) view->setChanged(true);
1917  }
1918 #if defined(HAVE_FLTK)
1919  if(_gui_action_valid(action, num))
1920  FlGui::instance()->options->view.input[5]->value(opt->genRaiseY.c_str());
1921 #endif
1922  return opt->genRaiseY;
1923 #else
1924  return "";
1925 #endif
1926 }
1927 
1929 {
1930 #if defined(HAVE_POST)
1931  GET_VIEWo("");
1932  if(action & GMSH_SET) {
1933  opt->genRaiseZ = val;
1934  if(view) view->setChanged(true);
1935  }
1936 #if defined(HAVE_FLTK)
1937  if(_gui_action_valid(action, num))
1938  FlGui::instance()->options->view.input[6]->value(opt->genRaiseZ.c_str());
1939 #endif
1940  return opt->genRaiseZ;
1941 #else
1942  return "";
1943 #endif
1944 }
1945 
1946 int _h2d(char c)
1947 {
1948  switch(c) {
1949  case 'a':
1950  case 'A': return 10;
1951  case 'b':
1952  case 'B': return 11;
1953  case 'c':
1954  case 'C': return 12;
1955  case 'd':
1956  case 'D': return 13;
1957  case 'e':
1958  case 'E': return 14;
1959  case 'f':
1960  case 'F': return 15;
1961  default:
1962  if(c >= '0' && c <= '9')
1963  return c - '0';
1964  else
1965  return 0;
1966  }
1967 }
1968 
1969 void _string2stipple(std::string str, int &repeat, int &pattern)
1970 {
1971  // "n*0xabcd"
1972  if(str.size() < 8) {
1973  repeat = 1;
1974  pattern = 0xFFFF;
1975  }
1976  else if(str[1] != '*' || str[2] != '0' || str[3] != 'x') {
1977  // bad format
1978  repeat = 1;
1979  pattern = 0xFFFF;
1980  }
1981  else {
1982  repeat = (int)str[0] - '0';
1983  pattern = 16 * 16 * 16 * _h2d(str[4]) + 16 * 16 * _h2d(str[5]) +
1984  16 * _h2d(str[6]) + _h2d(str[7]);
1985  }
1986 }
1987 
1989 {
1990 #if defined(HAVE_POST)
1991  GET_VIEWo("");
1992  if(action & GMSH_SET) {
1993  opt->stippleString[0] = val;
1994  _string2stipple(opt->stippleString[0], opt->stipple[0][0],
1995  opt->stipple[0][1]);
1996  }
1997  return opt->stippleString[0];
1998 #else
1999  return "";
2000 #endif
2001 }
2002 
2004 {
2005 #if defined(HAVE_POST)
2006  GET_VIEWo("");
2007  if(action & GMSH_SET) {
2008  opt->stippleString[1] = val;
2009  _string2stipple(opt->stippleString[1], opt->stipple[1][0],
2010  opt->stipple[1][1]);
2011  }
2012  return opt->stippleString[1];
2013 #else
2014  return "";
2015 #endif
2016 }
2017 
2019 {
2020 #if defined(HAVE_POST)
2021  GET_VIEWo("");
2022  if(action & GMSH_SET) {
2023  opt->stippleString[2] = val;
2024  _string2stipple(opt->stippleString[2], opt->stipple[2][0],
2025  opt->stipple[2][1]);
2026  }
2027  return opt->stippleString[2];
2028 #else
2029  return "";
2030 #endif
2031 }
2032 
2034 {
2035 #if defined(HAVE_POST)
2036  GET_VIEWo("");
2037  if(action & GMSH_SET) {
2038  opt->stippleString[3] = val;
2039  _string2stipple(opt->stippleString[3], opt->stipple[3][0],
2040  opt->stipple[3][1]);
2041  }
2042  return opt->stippleString[3];
2043 #else
2044  return "";
2045 #endif
2046 }
2047 
2049 {
2050 #if defined(HAVE_POST)
2051  GET_VIEWo("");
2052  if(action & GMSH_SET) {
2053  opt->stippleString[4] = val;
2054  _string2stipple(opt->stippleString[4], opt->stipple[4][0],
2055  opt->stipple[4][1]);
2056  }
2057  return opt->stippleString[4];
2058 #else
2059  return "";
2060 #endif
2061 }
2062 
2064 {
2065 #if defined(HAVE_POST)
2066  GET_VIEWo("");
2067  if(action & GMSH_SET) {
2068  opt->stippleString[5] = val;
2069  _string2stipple(opt->stippleString[5], opt->stipple[5][0],
2070  opt->stipple[5][1]);
2071  }
2072  return opt->stippleString[5];
2073 #else
2074  return "";
2075 #endif
2076 }
2077 
2079 {
2080 #if defined(HAVE_POST)
2081  GET_VIEWo("");
2082  if(action & GMSH_SET) {
2083  opt->stippleString[6] = val;
2084  _string2stipple(opt->stippleString[6], opt->stipple[6][0],
2085  opt->stipple[6][1]);
2086  }
2087  return opt->stippleString[6];
2088 #else
2089  return "";
2090 #endif
2091 }
2092 
2094 {
2095 #if defined(HAVE_POST)
2096  GET_VIEWo("");
2097  if(action & GMSH_SET) {
2098  opt->stippleString[7] = val;
2099  _string2stipple(opt->stippleString[7], opt->stipple[7][0],
2100  opt->stipple[7][1]);
2101  }
2102  return opt->stippleString[7];
2103 #else
2104  return "";
2105 #endif
2106 }
2107 
2109 {
2110 #if defined(HAVE_POST)
2111  GET_VIEWo("");
2112  if(action & GMSH_SET) {
2113  opt->stippleString[8] = val;
2114  _string2stipple(opt->stippleString[8], opt->stipple[8][0],
2115  opt->stipple[8][1]);
2116  }
2117  return opt->stippleString[8];
2118 #else
2119  return "";
2120 #endif
2121 }
2122 
2124 {
2125 #if defined(HAVE_POST)
2126  GET_VIEWo("");
2127  if(action & GMSH_SET) {
2128  opt->stippleString[9] = val;
2129  _string2stipple(opt->stippleString[9], opt->stipple[9][0],
2130  opt->stipple[9][1]);
2131  }
2132  return opt->stippleString[9];
2133 #else
2134  return "";
2135 #endif
2136 }
2137 
2139 {
2140 #if defined(HAVE_POST)
2141  GET_VIEWo("");
2142  if(action & GMSH_SET) opt->attributes = val;
2143  return opt->attributes;
2144 #else
2145  return "";
2146 #endif
2147 }
2148 
2150 {
2151  if(action & GMSH_SET) CTX::instance()->print.parameterCommand = val;
2153 }
2154 
2155 // Numeric option routines
2156 
2158 {
2159  if(action & GMSH_SET) CTX::instance()->abortOnError = (int)val;
2160  return CTX::instance()->abortOnError;
2161 }
2162 
2164 {
2165  if(action & GMSH_SET) CTX::instance()->initialContext = (int)val;
2166  return CTX::instance()->initialContext;
2167 }
2168 
2170 {
2171  if(action & GMSH_SET) CTX::instance()->showOptionsOnStartup = (int)val;
2173 }
2174 
2176 {
2177  if(action & GMSH_SET) CTX::instance()->showMessagesOnStartup = (int)val;
2179 }
2180 
2182 {
2183  if(action & GMSH_SET) { CTX::instance()->fontSize = (int)val; }
2184  return CTX::instance()->fontSize;
2185 }
2186 
2188 {
2189  if(action & GMSH_SET) CTX::instance()->guiColorScheme = (int)val;
2190 #if defined(HAVE_FLTK)
2191  if(FlGui::available() && (action & GMSH_GUI)) {
2192  FlGui::instance()->options->general.butt[21]->value(
2193  CTX::instance()->guiColorScheme);
2194  }
2195  if(action & GMSH_SET && FlGui::available()) {
2196  FlGui::instance()->applyColorScheme(true);
2197  }
2198 #endif
2199  return CTX::instance()->guiColorScheme;
2200 }
2201 
2203 {
2204  if(action & GMSH_SET) CTX::instance()->guiRefreshRate = val;
2205  return CTX::instance()->guiRefreshRate;
2206 }
2207 
2209 {
2210  if(action & GMSH_SET) CTX::instance()->glFontSize = (int)val;
2211 #if defined(HAVE_FLTK)
2212  if(FlGui::available() && (action & GMSH_GUI))
2213  FlGui::instance()->options->general.value[12]->value(
2214  CTX::instance()->glFontSize);
2215 #endif
2216  return CTX::instance()->glFontSize;
2217 }
2218 
2220 {
2221  if(action & GMSH_SET) CTX::instance()->glFontSizeTitle = (int)val;
2222 #if defined(HAVE_FLTK)
2223  if(FlGui::available() && (action & GMSH_GUI))
2224  FlGui::instance()->options->general.value[28]->value(
2225  CTX::instance()->glFontSizeTitle);
2226 #endif
2227  return CTX::instance()->glFontSizeTitle;
2228 }
2229 
2231 {
2232  if(action & GMSH_SET) CTX::instance()->polygonOffsetAlways = (int)val;
2233 #if defined(HAVE_FLTK)
2234  if(FlGui::available() && (action & GMSH_GUI))
2235  FlGui::instance()->options->general.butt[4]->value(
2236  CTX::instance()->polygonOffsetAlways);
2237 #endif
2239 }
2240 
2242 {
2243  if(action & GMSH_SET) CTX::instance()->polygonOffsetFactor = val;
2244 #if defined(HAVE_FLTK)
2245  if(FlGui::available() && (action & GMSH_GUI))
2246  FlGui::instance()->options->general.value[15]->value(
2247  CTX::instance()->polygonOffsetFactor);
2248 #endif
2250 }
2251 
2253 {
2254  if(action & GMSH_SET) CTX::instance()->polygonOffsetUnits = val;
2255 #if defined(HAVE_FLTK)
2256  if(FlGui::available() && (action & GMSH_GUI))
2257  FlGui::instance()->options->general.value[16]->value(
2258  CTX::instance()->polygonOffsetUnits);
2259 #endif
2261 }
2262 
2264 {
2265  if(action & GMSH_SET) CTX::instance()->glPosition[0] = (int)val;
2266  return CTX::instance()->glPosition[0];
2267 }
2268 
2270 {
2271  if(action & GMSH_SET) CTX::instance()->glPosition[1] = (int)val;
2272  return CTX::instance()->glPosition[1];
2273 }
2274 
2276 {
2277  if(action & GMSH_SET) {
2278  CTX::instance()->glSize[0] = (int)val;
2279  if(CTX::instance()->glSize[0] <= 0) CTX::instance()->glSize[0] = 600;
2280  }
2281 #if defined(HAVE_FLTK)
2282  if(FlGui::available() && (action & GMSH_GUI)) {
2283  FlGui::instance()->graph[0]->setGlWidth(CTX::instance()->glSize[0]);
2284  }
2285 #endif
2286  return CTX::instance()->glSize[0];
2287 }
2288 
2290 {
2291  if(action & GMSH_SET) {
2292  CTX::instance()->glSize[1] = (int)val;
2293  if(CTX::instance()->glSize[1] <= 0) CTX::instance()->glSize[1] = 600;
2294  }
2295 #if defined(HAVE_FLTK)
2296  if(FlGui::available() && (action & GMSH_GUI)) {
2297  FlGui::instance()->graph[0]->setGlHeight(CTX::instance()->glSize[1]);
2298  }
2299 #endif
2300  return CTX::instance()->glSize[1];
2301 }
2302 
2304 {
2305  if(action & GMSH_SET) CTX::instance()->ctxPosition[0] = (int)val;
2306  return CTX::instance()->ctxPosition[0];
2307 }
2308 
2310 {
2311  if(action & GMSH_SET) CTX::instance()->ctxPosition[1] = (int)val;
2312  return CTX::instance()->ctxPosition[1];
2313 }
2314 
2316 {
2317  if(action & GMSH_SET) CTX::instance()->fileChooserPosition[0] = (int)val;
2318  return CTX::instance()->fileChooserPosition[0];
2319 }
2320 
2322 {
2323  if(action & GMSH_SET) CTX::instance()->fileChooserPosition[1] = (int)val;
2324  return CTX::instance()->fileChooserPosition[1];
2325 }
2326 
2328 {
2329  if(action & GMSH_SET) CTX::instance()->systemMenuBar = (int)val;
2330  return CTX::instance()->systemMenuBar;
2331 }
2332 
2334 {
2335  if(action & GMSH_SET) CTX::instance()->nativeFileChooser = (int)val;
2336  return CTX::instance()->nativeFileChooser;
2337 }
2338 
2340 {
2341  if(action & GMSH_SET) CTX::instance()->showModuleMenu = (int)val;
2342  return CTX::instance()->showModuleMenu;
2343 }
2344 
2346 {
2347  if(action & GMSH_SET) {
2348  CTX::instance()->msgSize = (int)val;
2349  if(CTX::instance()->msgSize <= 0) CTX::instance()->msgSize = 100;
2350  }
2351  return CTX::instance()->msgSize;
2352 }
2353 
2355 {
2356  if(action & GMSH_SET) {
2357  CTX::instance()->msgFontSize = (int)val;
2358 #if defined(HAVE_FLTK)
2359  if(FlGui::available() && (action & GMSH_GUI)) {
2360  FlGui::instance()->graph[0]->setMessageFontSize(
2361  CTX::instance()->msgFontSize);
2362  }
2363 #endif
2364  }
2365  return CTX::instance()->msgFontSize;
2366 }
2367 
2369 {
2370  if(action & GMSH_SET) { CTX::instance()->detachedMenu = (int)val; }
2371 #if defined(HAVE_FLTK)
2372  if(FlGui::available() && (action & GMSH_GUI)) {
2374  FlGui::instance()->graph[0]->detachMenu();
2375  else
2376  FlGui::instance()->graph[0]->attachMenu();
2377  }
2378 #endif
2379  return CTX::instance()->detachedMenu;
2380 }
2381 
2383 {
2384  if(action & GMSH_SET) CTX::instance()->detachedProcess = (int)val;
2385  return CTX::instance()->detachedProcess;
2386 }
2387 
2389 {
2390  if(action & GMSH_SET) {
2391  CTX::instance()->menuSize[0] = (int)val;
2392  if(CTX::instance()->menuSize[0] < 0) CTX::instance()->menuSize[0] = 0;
2393  }
2394 #if defined(HAVE_FLTK)
2395  if(FlGui::available() && (action & GMSH_GUI)) {
2396  FlGui::instance()->graph[0]->setMenuWidth(CTX::instance()->menuSize[0]);
2397  }
2398 #endif
2399  return CTX::instance()->menuSize[0];
2400 }
2401 
2403 {
2404  if(action & GMSH_SET) {
2405  CTX::instance()->menuSize[1] = (int)val;
2406  if(CTX::instance()->menuSize[1] < 0) CTX::instance()->menuSize[1] = 300;
2407  }
2408  return CTX::instance()->menuSize[1];
2409 }
2410 
2412 {
2413  if(action & GMSH_SET) {
2414  CTX::instance()->menuPosition[0] = (int)val;
2415  if(CTX::instance()->menuPosition[0] < 0)
2416  CTX::instance()->menuPosition[0] = 0;
2417  }
2418  return CTX::instance()->menuPosition[0];
2419 }
2420 
2422 {
2423  if(action & GMSH_SET) {
2424  CTX::instance()->menuPosition[1] = (int)val;
2425  if(CTX::instance()->menuPosition[1] < 0)
2426  CTX::instance()->menuPosition[1] = 300;
2427  }
2428  return CTX::instance()->menuPosition[1];
2429 }
2430 
2432 {
2433  if(action & GMSH_SET) CTX::instance()->optPosition[0] = (int)val;
2434  return CTX::instance()->optPosition[0];
2435 }
2436 
2438 {
2439  if(action & GMSH_SET) CTX::instance()->optPosition[1] = (int)val;
2440  return CTX::instance()->optPosition[1];
2441 }
2442 
2444 {
2445  if(action & GMSH_SET) CTX::instance()->pluginPosition[0] = (int)val;
2446  return CTX::instance()->pluginPosition[0];
2447 }
2448 
2450 {
2451  if(action & GMSH_SET) CTX::instance()->pluginPosition[1] = (int)val;
2452  return CTX::instance()->pluginPosition[1];
2453 }
2454 
2456 {
2457  if(action & GMSH_SET) CTX::instance()->pluginSize[0] = (int)val;
2458  return CTX::instance()->pluginSize[0];
2459 }
2460 
2462 {
2463  if(action & GMSH_SET) CTX::instance()->pluginSize[1] = (int)val;
2464  return CTX::instance()->pluginSize[1];
2465 }
2466 
2468 {
2469  if(action & GMSH_SET) CTX::instance()->fieldPosition[0] = (int)val;
2470  return CTX::instance()->fieldPosition[0];
2471 }
2472 
2474 {
2475  if(action & GMSH_SET) CTX::instance()->fieldPosition[1] = (int)val;
2476  return CTX::instance()->fieldPosition[1];
2477 }
2478 
2480 {
2481  if(action & GMSH_SET) CTX::instance()->fieldSize[0] = (int)val;
2482  return CTX::instance()->fieldSize[0];
2483 }
2484 
2486 {
2487  if(action & GMSH_SET) CTX::instance()->fieldSize[1] = (int)val;
2488  return CTX::instance()->fieldSize[1];
2489 }
2490 
2492 {
2493  if(action & GMSH_SET) CTX::instance()->extraPosition[0] = (int)val;
2494  return CTX::instance()->extraPosition[0];
2495 }
2496 
2498 {
2499  if(action & GMSH_SET) CTX::instance()->extraPosition[1] = (int)val;
2500  return CTX::instance()->extraPosition[1];
2501 }
2502 
2504 {
2505  if(action & GMSH_SET) CTX::instance()->extraSize[0] = (int)val;
2506  return CTX::instance()->extraSize[0];
2507 }
2508 
2510 {
2511  if(action & GMSH_SET) CTX::instance()->extraSize[1] = (int)val;
2512  return CTX::instance()->extraSize[1];
2513 }
2514 
2516 {
2517  if(action & GMSH_SET) CTX::instance()->statPosition[0] = (int)val;
2518  return CTX::instance()->statPosition[0];
2519 }
2520 
2522 {
2523  if(action & GMSH_SET) CTX::instance()->statPosition[1] = (int)val;
2524  return CTX::instance()->statPosition[1];
2525 }
2526 
2528 {
2529  if(action & GMSH_SET) CTX::instance()->visPosition[0] = (int)val;
2530  return CTX::instance()->visPosition[0];
2531 }
2532 
2534 {
2535  if(action & GMSH_SET) CTX::instance()->visPosition[1] = (int)val;
2536  return CTX::instance()->visPosition[1];
2537 }
2538 
2540 {
2541  if(action & GMSH_SET) CTX::instance()->clipPosition[0] = (int)val;
2542  return CTX::instance()->clipPosition[0];
2543 }
2544 
2546 {
2547  if(action & GMSH_SET) CTX::instance()->clipPosition[1] = (int)val;
2548  return CTX::instance()->clipPosition[1];
2549 }
2550 
2552 {
2553  if(action & GMSH_SET) CTX::instance()->manipPosition[0] = (int)val;
2554  return CTX::instance()->manipPosition[0];
2555 }
2556 
2558 {
2559  if(action & GMSH_SET) CTX::instance()->manipPosition[1] = (int)val;
2560  return CTX::instance()->manipPosition[1];
2561 }
2562 
2564 {
2565  if(action & GMSH_SET) CTX::instance()->hotPosition[0] = (int)val;
2566  return CTX::instance()->hotPosition[0];
2567 }
2568 
2570 {
2571  if(action & GMSH_SET) CTX::instance()->hotPosition[1] = (int)val;
2572  return CTX::instance()->hotPosition[1];
2573 }
2574 
2576 {
2577  if(action & GMSH_SET) CTX::instance()->highResolutionGraphics = (int)val;
2579 }
2580 
2582 {
2583  if(action & GMSH_SET) CTX::instance()->sessionSave = (int)val;
2584 #if defined(HAVE_FLTK)
2585  if(FlGui::available() && (action & GMSH_GUI))
2586  FlGui::instance()->options->general.butt[8]->value(
2587  CTX::instance()->sessionSave);
2588 #endif
2589  return CTX::instance()->sessionSave;
2590 }
2591 
2593 {
2594  if(action & GMSH_SET) CTX::instance()->optionsSave = (int)val;
2595 #if defined(HAVE_FLTK)
2596  if(FlGui::available() && (action & GMSH_GUI))
2597  FlGui::instance()->options->general.butt[9]->value(
2598  CTX::instance()->optionsSave ? 1 : 0);
2599 #endif
2600  return CTX::instance()->optionsSave;
2601 }
2602 
2604 {
2605  if(action & GMSH_SET) CTX::instance()->confirmOverwrite = (int)val;
2606 #if defined(HAVE_FLTK)
2607  if(FlGui::available() && (action & GMSH_GUI))
2608  FlGui::instance()->options->general.butt[14]->value(
2609  CTX::instance()->confirmOverwrite);
2610 #endif
2611  return CTX::instance()->confirmOverwrite;
2612 }
2613 
2615 {
2616  if(action & GMSH_SET) CTX::instance()->tmpRotation[0] = val;
2617 #if defined(HAVE_FLTK)
2618  if(FlGui::available()) {
2619  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2620  if(action & GMSH_SET) gl->getDrawContext()->r[0] = val;
2621  return gl->getDrawContext()->r[0];
2622  }
2623 #endif
2624  return CTX::instance()->tmpRotation[0];
2625 }
2626 
2628 {
2629  if(action & GMSH_SET) CTX::instance()->tmpRotation[1] = val;
2630 #if defined(HAVE_FLTK)
2631  if(FlGui::available()) {
2632  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2633  if(action & GMSH_SET) gl->getDrawContext()->r[1] = val;
2634  return gl->getDrawContext()->r[1];
2635  }
2636 #endif
2637  return CTX::instance()->tmpRotation[1];
2638 }
2639 
2641 {
2642  if(action & GMSH_SET) CTX::instance()->tmpRotation[2] = val;
2643 #if defined(HAVE_FLTK)
2644  if(FlGui::available()) {
2645  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2646  if(action & GMSH_SET) gl->getDrawContext()->r[2] = val;
2647  return gl->getDrawContext()->r[2];
2648  }
2649 #endif
2650  return CTX::instance()->tmpRotation[2];
2651 }
2652 
2654 {
2655  if(action & GMSH_SET) CTX::instance()->rotationCenter[0] = val;
2656 #if defined(HAVE_FLTK)
2657  if(FlGui::available() && (action & GMSH_GUI))
2658  FlGui::instance()->options->general.value[8]->value(
2659  CTX::instance()->rotationCenter[0]);
2660 #endif
2661  return CTX::instance()->rotationCenter[0];
2662 }
2663 
2665 {
2666  if(action & GMSH_SET) CTX::instance()->rotationCenter[1] = val;
2667 #if defined(HAVE_FLTK)
2668  if(FlGui::available() && (action & GMSH_GUI))
2669  FlGui::instance()->options->general.value[9]->value(
2670  CTX::instance()->rotationCenter[1]);
2671 #endif
2672  return CTX::instance()->rotationCenter[1];
2673 }
2674 
2676 {
2677  if(action & GMSH_SET) CTX::instance()->rotationCenter[2] = val;
2678 #if defined(HAVE_FLTK)
2679  if(FlGui::available() && (action & GMSH_GUI))
2680  FlGui::instance()->options->general.value[10]->value(
2681  CTX::instance()->rotationCenter[2]);
2682 #endif
2683  return CTX::instance()->rotationCenter[2];
2684 }
2685 
2687 {
2688  if(action & GMSH_SET) CTX::instance()->tmpQuaternion[0] = val;
2689 #if defined(HAVE_FLTK)
2690  if(FlGui::available()) {
2691  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2692  if(action & GMSH_SET) gl->getDrawContext()->quaternion[0] = val;
2693  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2694  return gl->getDrawContext()->quaternion[0];
2695  }
2696 #endif
2697  return CTX::instance()->tmpQuaternion[0];
2698 }
2699 
2701 {
2702  if(action & GMSH_SET) CTX::instance()->tmpQuaternion[1] = val;
2703 #if defined(HAVE_FLTK)
2704  if(FlGui::available()) {
2705  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2706  if(action & GMSH_SET) gl->getDrawContext()->quaternion[1] = val;
2707  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2708  return gl->getDrawContext()->quaternion[1];
2709  }
2710 #endif
2711  return CTX::instance()->tmpQuaternion[1];
2712 }
2713 
2715 {
2716  if(action & GMSH_SET) CTX::instance()->tmpQuaternion[2] = val;
2717 #if defined(HAVE_FLTK)
2718  if(FlGui::available()) {
2719  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2720  if(action & GMSH_SET) gl->getDrawContext()->quaternion[2] = val;
2721  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2722  return gl->getDrawContext()->quaternion[2];
2723  }
2724 #endif
2725  return CTX::instance()->tmpQuaternion[2];
2726 }
2727 
2729 {
2730  if(action & GMSH_SET) CTX::instance()->tmpQuaternion[3] = val;
2731 #if defined(HAVE_FLTK)
2732  if(FlGui::available()) {
2733  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2734  if(action & GMSH_SET) gl->getDrawContext()->quaternion[3] = val;
2735  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2736  return gl->getDrawContext()->quaternion[3];
2737  }
2738 #endif
2739  return CTX::instance()->tmpQuaternion[3];
2740 }
2741 
2743 {
2744  if(action & GMSH_SET) CTX::instance()->tmpTranslation[0] = val;
2745 #if defined(HAVE_FLTK)
2746  if(FlGui::available()) {
2747  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2748  if(action & GMSH_SET) gl->getDrawContext()->t[0] = val;
2749  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2750  return gl->getDrawContext()->t[0];
2751  }
2752 #endif
2753  return CTX::instance()->tmpTranslation[0];
2754 }
2755 
2757 {
2758  if(action & GMSH_SET) CTX::instance()->tmpTranslation[1] = val;
2759 #if defined(HAVE_FLTK)
2760  if(FlGui::available()) {
2761  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2762  if(action & GMSH_SET) gl->getDrawContext()->t[1] = val;
2763  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2764  return gl->getDrawContext()->t[1];
2765  }
2766 #endif
2767  return CTX::instance()->tmpTranslation[1];
2768 }
2769 
2771 {
2772  if(action & GMSH_SET) CTX::instance()->tmpTranslation[2] = val;
2773 #if defined(HAVE_FLTK)
2774  if(FlGui::available()) {
2775  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2776  if(action & GMSH_SET) gl->getDrawContext()->t[2] = val;
2777  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2778  return gl->getDrawContext()->t[2];
2779  }
2780 #endif
2781  return CTX::instance()->tmpTranslation[2];
2782 }
2783 
2785 {
2786  if(action & GMSH_SET) CTX::instance()->tmpScale[0] = val ? val : 1.0;
2787 #if defined(HAVE_FLTK)
2788  if(FlGui::available()) {
2789  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2790  if(action & GMSH_SET) gl->getDrawContext()->s[0] = val ? val : 1.0;
2791  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2792  return gl->getDrawContext()->s[0];
2793  }
2794 #endif
2795  return CTX::instance()->tmpScale[0];
2796 }
2797 
2799 {
2800  if(action & GMSH_SET) CTX::instance()->tmpScale[1] = val ? val : 1.0;
2801 #if defined(HAVE_FLTK)
2802  if(FlGui::available()) {
2803  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2804  if(action & GMSH_SET) gl->getDrawContext()->s[1] = val ? val : 1.0;
2805  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2806  return gl->getDrawContext()->s[1];
2807  }
2808 #endif
2809  return CTX::instance()->tmpScale[1];
2810 }
2811 
2813 {
2814  if(action & GMSH_SET) CTX::instance()->tmpScale[2] = val ? val : 1.0;
2815 #if defined(HAVE_FLTK)
2816  if(FlGui::available()) {
2817  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
2818  if(action & GMSH_SET) gl->getDrawContext()->s[2] = val ? val : 1.0;
2819  if(action & GMSH_GUI) FlGui::instance()->manip->update();
2820  return gl->getDrawContext()->s[2];
2821  }
2822 #endif
2823  return CTX::instance()->tmpScale[2];
2824 }
2825 
2827 {
2828  if(action & GMSH_SET) {
2829  // should never be zero (or negative)
2830  if(val < 0.01)
2831  CTX::instance()->clipFactor = 0.01;
2832  else
2833  CTX::instance()->clipFactor = val;
2834  }
2835 #if defined(HAVE_FLTK)
2836  if(FlGui::available() && (action & GMSH_GUI))
2837  FlGui::instance()->options->general.value[14]->value(
2838  CTX::instance()->clipFactor);
2839 #endif
2840  return CTX::instance()->clipFactor;
2841 }
2842 
2844 {
2845  if(action & GMSH_SET) CTX::instance()->displayBorderFactor = val;
2847 }
2848 
2850 {
2851  if(action & GMSH_SET) CTX::instance()->geom.reparamOnFaceRobust = val;
2853 }
2854 
2856 {
2857  if(action & GMSH_SET) CTX::instance()->pointSize = val;
2858 #if defined(HAVE_FLTK)
2859  if(FlGui::available() && (action & GMSH_GUI))
2860  FlGui::instance()->options->general.value[6]->value(
2861  CTX::instance()->pointSize);
2862 #endif
2863  return CTX::instance()->pointSize;
2864 }
2865 
2867 {
2868  if(action & GMSH_SET) CTX::instance()->lineWidth = val;
2869 #if defined(HAVE_FLTK)
2870  if(FlGui::available() && (action & GMSH_GUI))
2871  FlGui::instance()->options->general.value[7]->value(
2872  CTX::instance()->lineWidth);
2873 #endif
2874  return CTX::instance()->lineWidth;
2875 }
2876 
2878 {
2879  if(action & GMSH_SET) CTX::instance()->shine = val;
2880 #if defined(HAVE_FLTK)
2881  if(FlGui::available() && (action & GMSH_GUI))
2882  FlGui::instance()->options->general.value[1]->value(CTX::instance()->shine);
2883 #endif
2884  return CTX::instance()->shine;
2885 }
2886 
2888 {
2889  if(action & GMSH_SET) CTX::instance()->shineExponent = val;
2890 #if defined(HAVE_FLTK)
2891  if(FlGui::available() && (action & GMSH_GUI))
2892  FlGui::instance()->options->general.value[0]->value(
2893  CTX::instance()->shineExponent);
2894 #endif
2895  return CTX::instance()->shineExponent;
2896 }
2897 
2899 {
2900  if(action & GMSH_SET) { Msg::SetVerbosity((int)val); }
2901 #if defined(HAVE_FLTK)
2902  if(FlGui::available() && (action & GMSH_GUI))
2903  FlGui::instance()->options->general.value[5]->value(Msg::GetVerbosity());
2904 #endif
2905  return Msg::GetVerbosity();
2906 }
2907 
2909 {
2910  if(action & GMSH_SET) { Msg::SetProgressMeterStep((int)val); }
2911  return Msg::GetProgressMeterStep();
2912 }
2913 
2915 {
2916  if(action & GMSH_SET) CTX::instance()->noPopup = (int)val;
2917  return CTX::instance()->noPopup;
2918 }
2919 
2921 {
2922  if(action & GMSH_SET) CTX::instance()->nonModalWindows = (int)val;
2923  return CTX::instance()->nonModalWindows;
2924 }
2925 
2927 {
2928  if(action & GMSH_SET) CTX::instance()->terminal = (int)val;
2929 #if defined(HAVE_FLTK)
2930  if(FlGui::available() && (action & GMSH_GUI))
2931  FlGui::instance()->options->general.butt[7]->value(
2932  CTX::instance()->terminal);
2933 #endif
2934  return CTX::instance()->terminal;
2935 }
2936 
2938 {
2939  if(action & GMSH_SET) {
2940  CTX::instance()->tooltips = (int)val;
2941 #if defined(HAVE_FLTK)
2942  if(CTX::instance()->tooltips)
2943  Fl_Tooltip::enable();
2944  else
2945  Fl_Tooltip::disable();
2946 #endif
2947  }
2948 #if defined(HAVE_FLTK)
2949  if(FlGui::available() && (action & GMSH_GUI))
2950  FlGui::instance()->options->general.butt[13]->value(
2951  CTX::instance()->tooltips);
2952 #endif
2953  return CTX::instance()->tooltips;
2954 }
2955 
2957 {
2958  if(action & GMSH_SET) { CTX::instance()->inputScrolling = (int)val; }
2959  return CTX::instance()->inputScrolling;
2960 }
2961 
2963 {
2964  if(action & GMSH_SET) CTX::instance()->ortho = (int)val;
2965 #if defined(HAVE_FLTK)
2966  if(FlGui::available() && (action & GMSH_GUI)) {
2967  if(CTX::instance()->ortho) {
2968  FlGui::instance()->options->general.choice[2]->value(0);
2969  if(FlGui::available()) Msg::StatusBar(false, "Orthographic projection");
2970  }
2971  else {
2972  FlGui::instance()->options->general.choice[2]->value(1);
2973  if(FlGui::available()) Msg::StatusBar(false, "Perspective projection");
2974  }
2975  }
2976 #endif
2977  return CTX::instance()->ortho;
2978 }
2979 
2981 {
2982  if(action & GMSH_SET) CTX::instance()->mouseSelection = (int)val;
2983 #if defined(HAVE_FLTK)
2984  if(FlGui::available() && (action & GMSH_GUI)) {
2985  if(CTX::instance()->mouseSelection) {
2986  if(FlGui::available()) Msg::StatusBar(false, "Mouse selection ON");
2987  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
2988  FlGui::instance()->graph[i]->getSelectionButton()->color(
2989  FL_BACKGROUND_COLOR);
2990  }
2991  else {
2992  if(FlGui::available()) Msg::StatusBar(false, "Mouse selection OFF");
2993  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
2994  FlGui::instance()->graph[i]->getSelectionButton()->color(FL_RED);
2995  }
2996  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
2997  FlGui::instance()->graph[i]->getSelectionButton()->redraw();
2998  }
2999 #endif
3000  return CTX::instance()->mouseSelection;
3001 }
3002 
3004 {
3005  if(action & GMSH_SET) CTX::instance()->mouseHoverMeshes = (int)val;
3006 #if defined(HAVE_FLTK)
3007  if(FlGui::available() && (action & GMSH_GUI))
3008  FlGui::instance()->options->general.butt[11]->value(
3009  CTX::instance()->mouseHoverMeshes);
3010 #endif
3011  return CTX::instance()->mouseHoverMeshes;
3012 }
3013 
3015 {
3016  if(action & GMSH_SET) CTX::instance()->mouseInvertZoom = (int)val;
3017 #if defined(HAVE_FLTK)
3018  if(FlGui::available() && (action & GMSH_GUI))
3019  FlGui::instance()->options->general.butt[22]->value(
3020  CTX::instance()->mouseInvertZoom);
3021 #endif
3022  return CTX::instance()->mouseInvertZoom;
3023 }
3024 
3026 {
3027  if(action & GMSH_SET) CTX::instance()->fastRedraw = (int)val;
3028 #if defined(HAVE_FLTK)
3029  if(FlGui::available() && (action & GMSH_GUI)) {
3030  FlGui::instance()->options->general.butt[2]->value(
3031  CTX::instance()->fastRedraw);
3032  FlGui::instance()->options->activate("fast_redraw");
3033  }
3034 #endif
3035  return CTX::instance()->fastRedraw;
3036 }
3037 
3039 {
3040  if(action & GMSH_SET) CTX::instance()->drawBBox = (int)val;
3041 #if defined(HAVE_FLTK)
3042  if(FlGui::available() && (action & GMSH_GUI))
3043  FlGui::instance()->options->general.butt[6]->value(
3044  CTX::instance()->drawBBox);
3045 #endif
3046  return CTX::instance()->drawBBox;
3047 }
3048 
3050 {
3052  return bb.empty() ? 0. : bb.min().x();
3053 }
3054 
3056 {
3058  return bb.empty() ? 0. : bb.max().x();
3059 }
3060 
3062 {
3064  return bb.empty() ? 0. : bb.min().y();
3065 }
3066 
3068 {
3070  return bb.empty() ? 0. : bb.max().y();
3071 }
3072 
3074 {
3076  return bb.empty() ? 0. : bb.min().z();
3077 }
3078 
3080 {
3082  return bb.empty() ? 0. : bb.max().z();
3083 }
3084 
3086 
3088 {
3089  if(action & GMSH_SET) {
3090  CTX::instance()->axes = (int)val;
3091  if(CTX::instance()->axes < 0 || CTX::instance()->axes > 5)
3092  CTX::instance()->axes = 0;
3093  }
3094 #if defined(HAVE_FLTK)
3095  if(FlGui::available() && (action & GMSH_GUI)) {
3096  FlGui::instance()->options->general.choice[4]->value(CTX::instance()->axes);
3097  FlGui::instance()->options->activate("general_axes");
3098  }
3099 #endif
3100  return CTX::instance()->axes;
3101 }
3102 
3104 {
3105  if(action & GMSH_SET) { CTX::instance()->axesMikado = (int)val; }
3106 #if defined(HAVE_FLTK)
3107  if(FlGui::available() && (action & GMSH_GUI))
3108  FlGui::instance()->options->general.butt[16]->value(
3109  CTX::instance()->axesMikado);
3110 #endif
3111  return CTX::instance()->axesMikado;
3112 }
3113 
3115 {
3116  if(action & GMSH_SET) CTX::instance()->axesAutoPosition = (int)val;
3117 #if defined(HAVE_FLTK)
3118  if(FlGui::available() && (action & GMSH_GUI)) {
3119  FlGui::instance()->options->general.butt[0]->value(
3120  CTX::instance()->axesAutoPosition);
3121  FlGui::instance()->options->activate("general_axes_auto");
3122  }
3123 #endif
3124  return CTX::instance()->axesAutoPosition;
3125 }
3126 
3128 {
3129  if(action & GMSH_SET) CTX::instance()->axesTics[0] = val;
3130 #if defined(HAVE_FLTK)
3131  if(FlGui::available() && (action & GMSH_GUI))
3132  FlGui::instance()->options->general.value[17]->value(
3133  CTX::instance()->axesTics[0]);
3134 #endif
3135  return CTX::instance()->axesTics[0];
3136 }
3137 
3139 {
3140  if(action & GMSH_SET) CTX::instance()->axesTics[1] = val;
3141 #if defined(HAVE_FLTK)
3142  if(FlGui::available() && (action & GMSH_GUI))
3143  FlGui::instance()->options->general.value[18]->value(
3144  CTX::instance()->axesTics[1]);
3145 #endif
3146  return CTX::instance()->axesTics[1];
3147 }
3148 
3150 {
3151  if(action & GMSH_SET) CTX::instance()->axesTics[2] = val;
3152 #if defined(HAVE_FLTK)
3153  if(FlGui::available() && (action & GMSH_GUI))
3154  FlGui::instance()->options->general.value[19]->value(
3155  CTX::instance()->axesTics[2]);
3156 #endif
3157  return CTX::instance()->axesTics[2];
3158 }
3159 
3161 {
3162  if(action & GMSH_SET) CTX::instance()->axesPosition[0] = val;
3163 #if defined(HAVE_FLTK)
3164  if(FlGui::available() && (action & GMSH_GUI))
3165  FlGui::instance()->options->general.value[20]->value(
3166  CTX::instance()->axesPosition[0]);
3167 #endif
3168  return CTX::instance()->axesPosition[0];
3169 }
3170 
3172 {
3173  if(action & GMSH_SET) CTX::instance()->axesPosition[1] = val;
3174 #if defined(HAVE_FLTK)
3175  if(FlGui::available() && (action & GMSH_GUI))
3176  FlGui::instance()->options->general.value[23]->value(
3177  CTX::instance()->axesPosition[1]);
3178 #endif
3179  return CTX::instance()->axesPosition[1];
3180 }
3181 
3183 {
3184  if(action & GMSH_SET) CTX::instance()->axesPosition[2] = val;
3185 #if defined(HAVE_FLTK)
3186  if(FlGui::available() && (action & GMSH_GUI))
3187  FlGui::instance()->options->general.value[21]->value(
3188  CTX::instance()->axesPosition[2]);
3189 #endif
3190  return CTX::instance()->axesPosition[2];
3191 }
3192 
3194 {
3195  if(action & GMSH_SET) CTX::instance()->axesPosition[3] = val;
3196 #if defined(HAVE_FLTK)
3197  if(FlGui::available() && (action & GMSH_GUI))
3198  FlGui::instance()->options->general.value[24]->value(
3199  CTX::instance()->axesPosition[3]);
3200 #endif
3201  return CTX::instance()->axesPosition[3];
3202 }
3203 
3205 {
3206  if(action & GMSH_SET) CTX::instance()->axesPosition[4] = val;
3207 #if defined(HAVE_FLTK)
3208  if(FlGui::available() && (action & GMSH_GUI))
3209  FlGui::instance()->options->general.value[22]->value(
3210  CTX::instance()->axesPosition[4]);
3211 #endif
3212  return CTX::instance()->axesPosition[4];
3213 }
3214 
3216 {
3217  if(action & GMSH_SET) CTX::instance()->axesPosition[5] = val;
3218 #if defined(HAVE_FLTK)
3219  if(FlGui::available() && (action & GMSH_GUI))
3220  FlGui::instance()->options->general.value[25]->value(
3221  CTX::instance()->axesPosition[5]);
3222 #endif
3223  return CTX::instance()->axesPosition[5];
3224 }
3225 
3227 {
3228  if(action & GMSH_SET) CTX::instance()->axesForceValue = (int)val;
3229  return CTX::instance()->axesForceValue;
3230 }
3231 
3233 {
3234  if(action & GMSH_SET) CTX::instance()->axesValue[0] = val;
3235  return CTX::instance()->axesValue[0];
3236 }
3237 
3239 {
3240  if(action & GMSH_SET) CTX::instance()->axesValue[1] = val;
3241  return CTX::instance()->axesValue[1];
3242 }
3243 
3245 {
3246  if(action & GMSH_SET) CTX::instance()->axesValue[2] = val;
3247  return CTX::instance()->axesValue[2];
3248 }
3249 
3251 {
3252  if(action & GMSH_SET) CTX::instance()->axesValue[3] = val;
3253  return CTX::instance()->axesValue[3];
3254 }
3255 
3257 {
3258  if(action & GMSH_SET) CTX::instance()->axesValue[4] = val;
3259  return CTX::instance()->axesValue[4];
3260 }
3261 
3263 {
3264  if(action & GMSH_SET) CTX::instance()->axesValue[5] = val;
3265  return CTX::instance()->axesValue[5];
3266 }
3267 
3269 {
3270  if(action & GMSH_SET) CTX::instance()->smallAxes = (int)val;
3271 #if defined(HAVE_FLTK)
3272  if(FlGui::available() && (action & GMSH_GUI)) {
3273  FlGui::instance()->options->general.butt[1]->value(
3274  CTX::instance()->smallAxes);
3275  FlGui::instance()->options->activate("general_small_axes");
3276  }
3277 #endif
3278  return CTX::instance()->smallAxes;
3279 }
3280 
3282 {
3283  if(action & GMSH_SET) CTX::instance()->smallAxesPos[0] = (int)val;
3284 #if defined(HAVE_FLTK)
3285  if(FlGui::available() && (action & GMSH_GUI))
3286  FlGui::instance()->options->general.value[26]->value(
3287  CTX::instance()->smallAxesPos[0]);
3288 #endif
3289  return CTX::instance()->smallAxesPos[0];
3290 }
3291 
3293 {
3294  if(action & GMSH_SET) CTX::instance()->smallAxesPos[1] = (int)val;
3295 #if defined(HAVE_FLTK)
3296  if(FlGui::available() && (action & GMSH_GUI))
3297  FlGui::instance()->options->general.value[27]->value(
3298  CTX::instance()->smallAxesPos[1]);
3299 #endif
3300  return CTX::instance()->smallAxesPos[1];
3301 }
3302 
3304 {
3305  if(action & GMSH_SET) CTX::instance()->smallAxesSize = (int)val;
3306  return CTX::instance()->smallAxesSize;
3307 }
3308 
3310 {
3311  if(action & GMSH_SET) CTX::instance()->quadricSubdivisions = (int)val;
3312 #if defined(HAVE_FLTK)
3313  if(FlGui::available()) {
3314  if(action & GMSH_GUI)
3315  FlGui::instance()->options->general.value[11]->value(
3316  CTX::instance()->quadricSubdivisions);
3317  }
3318 #endif
3320 }
3321 
3323 {
3324  if(action & GMSH_SET) {
3325  CTX::instance()->db = (int)val;
3326 #if defined(HAVE_FLTK)
3327  if(FlGui::available()) {
3328  int mode =
3329  FL_RGB | FL_DEPTH | (CTX::instance()->db ? FL_DOUBLE : FL_SINGLE);
3330  if(CTX::instance()->antialiasing) mode |= FL_MULTISAMPLE;
3331  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
3332  for(std::size_t j = 0; j < FlGui::instance()->graph[i]->gl.size(); j++)
3333  FlGui::instance()->graph[i]->gl[j]->mode(mode);
3334  }
3335 #endif
3336  }
3337 #if defined(HAVE_FLTK)
3338  if(FlGui::available() && (action & GMSH_GUI))
3339  FlGui::instance()->options->general.butt[3]->value(CTX::instance()->db);
3340 #endif
3341  return CTX::instance()->db;
3342 }
3343 
3345 {
3346  if(action & GMSH_SET) {
3347  CTX::instance()->antialiasing = (int)val;
3348 #if defined(HAVE_FLTK)
3349  if(FlGui::available()) {
3350  int mode =
3351  FL_RGB | FL_DEPTH | (CTX::instance()->db ? FL_DOUBLE : FL_SINGLE);
3352  if(CTX::instance()->antialiasing) mode |= FL_MULTISAMPLE;
3353  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
3354  for(std::size_t j = 0; j < FlGui::instance()->graph[i]->gl.size(); j++)
3355  FlGui::instance()->graph[i]->gl[j]->mode(mode);
3356  }
3357 #endif
3358  }
3359 #if defined(HAVE_FLTK)
3360  if(FlGui::available() && (action & GMSH_GUI))
3361  FlGui::instance()->options->general.butt[12]->value(
3362  CTX::instance()->antialiasing);
3363 #endif
3364  return CTX::instance()->antialiasing;
3365 }
3366 
3368 {
3369  if(action & GMSH_SET) CTX::instance()->alpha = (int)val;
3370  return CTX::instance()->alpha;
3371 }
3372 
3374 {
3375  if(action & GMSH_SET) {
3376  CTX::instance()->vectorType = (int)val;
3377  if(CTX::instance()->vectorType < 1 || CTX::instance()->vectorType > 4)
3378  CTX::instance()->vectorType = 1;
3379  }
3380 #if defined(HAVE_FLTK)
3381  if(FlGui::available() && (action & GMSH_GUI)) {
3382  FlGui::instance()->options->general.choice[0]->value(
3383  CTX::instance()->vectorType - 1);
3384  }
3385 #endif
3386  return CTX::instance()->vectorType;
3387 }
3388 
3390 {
3391  if(action & GMSH_SET) {
3392  if(val < 0.) val = 0.;
3393  if(val > 1.) val = 1.;
3395  }
3397 }
3398 
3400 {
3401  if(action & GMSH_SET) {
3402  if(val < 0.) val = 0.;
3403  if(val > 1.) val = 1.;
3405  }
3407 }
3408 
3410 {
3411  if(action & GMSH_SET) {
3412  if(val < 0.) val = 0.;
3413  if(val > 1.) val = 1.;
3415  }
3417 }
3418 
3420 {
3421  if(action & GMSH_SET) {
3422  CTX::instance()->colorScheme = (int)val;
3429 #if defined(HAVE_POST)
3430  for(std::size_t i = 0; i < PView::list.size(); i++)
3432 #endif
3434 
3440 #if defined(HAVE_POST)
3441  for(std::size_t i = 0; i < PView::list.size(); i++)
3443 #endif
3445 
3446 #if defined(HAVE_POST)
3447  // horrible trick so that opt_view_XXX will act on the reference view
3448  std::vector<PView *> tmp = PView::list;
3449  PView::list.clear();
3451  PView::list = tmp;
3452 #endif
3453  }
3454 #if defined(HAVE_FLTK)
3455  if(FlGui::available() && (action & GMSH_GUI))
3456  FlGui::instance()->options->general.choice[3]->value(
3457  CTX::instance()->colorScheme);
3458 #endif
3459  return CTX::instance()->colorScheme;
3460 }
3461 
3463 {
3464  if(action & GMSH_SET) {
3465  CTX::instance()->bgGradient = (int)val;
3466  if(CTX::instance()->bgGradient < 0 || CTX::instance()->bgGradient > 3)
3467  CTX::instance()->bgGradient = 0;
3468  }
3469 #if defined(HAVE_FLTK)
3470  if(FlGui::available() && (action & GMSH_GUI))
3471  FlGui::instance()->options->general.choice[5]->value(
3472  CTX::instance()->bgGradient);
3473 #endif
3474  return CTX::instance()->bgGradient;
3475 }
3476 
3478 {
3479  if(action & GMSH_SET) CTX::instance()->bgImagePosition[0] = val;
3480  return CTX::instance()->bgImagePosition[0];
3481 }
3482 
3484 {
3485  if(action & GMSH_SET) CTX::instance()->bgImagePosition[1] = val;
3486  return CTX::instance()->bgImagePosition[1];
3487 }
3488 
3490 {
3491  if(action & GMSH_SET) CTX::instance()->bgImageSize[0] = val;
3492  return CTX::instance()->bgImageSize[0];
3493 }
3494 
3496 {
3497  if(action & GMSH_SET) CTX::instance()->bgImageSize[1] = val;
3498  return CTX::instance()->bgImageSize[1];
3499 }
3500 
3502 {
3503  if(action & GMSH_SET) CTX::instance()->bgImage3d = (int)val;
3504  return CTX::instance()->bgImage3d;
3505 }
3506 
3508 {
3509  if(action & GMSH_SET) CTX::instance()->bgImagePage = (int)val;
3510  return CTX::instance()->bgImagePage;
3511 }
3512 
3514 {
3515  if(action & GMSH_SET) CTX::instance()->useTrackball = (int)val;
3516 #if defined(HAVE_FLTK)
3517  if(FlGui::available() && (action & GMSH_GUI))
3518  FlGui::instance()->options->general.butt[5]->value(
3519  CTX::instance()->useTrackball);
3520 #endif
3521  return CTX::instance()->useTrackball;
3522 }
3523 
3525 {
3526  if(action & GMSH_SET) CTX::instance()->trackballHyperbolicSheet = (int)val;
3528 }
3529 
3531 {
3532  if(action & GMSH_SET) {
3533  if(val) {
3534  if(!CTX::instance()->gamepad) {
3535  CTX::instance()->gamepad = new GamePad();
3536  if(CTX::instance()->gamepad->active)
3538  }
3539  }
3540  else {
3541  if(CTX::instance()->gamepad) {
3542  delete CTX::instance()->gamepad;
3543  CTX::instance()->gamepad = nullptr;
3544  }
3545  }
3546  }
3547  return CTX::instance()->gamepad ? 1 : 0;
3548 }
3549 
3551 {
3552  if(action & GMSH_SET) CTX::instance()->rotationCenterCg = (int)val;
3553 #if defined(HAVE_FLTK)
3554  if(FlGui::available() && (action & GMSH_GUI)) {
3555  FlGui::instance()->options->general.butt[15]->value(
3556  CTX::instance()->rotationCenterCg);
3557  FlGui::instance()->options->activate("rotation_center");
3558  }
3559 #endif
3560  return CTX::instance()->rotationCenterCg;
3561 }
3562 
3564 {
3565  if(action & GMSH_SET) CTX::instance()->zoomFactor = val;
3566  return CTX::instance()->zoomFactor;
3567 }
3568 
3570 {
3571  if(action & GMSH_SET) CTX::instance()->expertMode = (int)val;
3572 #if defined(HAVE_FLTK)
3573  if(FlGui::available() && (action & GMSH_GUI))
3574  FlGui::instance()->options->general.butt[10]->value(
3575  CTX::instance()->expertMode);
3576 #endif
3577  return CTX::instance()->expertMode;
3578 }
3579 
3580 #if defined(HAVE_VISUDEV)
3581 double opt_general_heavy_visualization(OPT_ARGS_NUM)
3582 {
3583  if(action & GMSH_SET) {
3584  if(CTX::instance()->heavyVisu != val)
3586  CTX::instance()->heavyVisu = (int)val;
3587  }
3588 #if defined(HAVE_FLTK)
3589  if(FlGui::available() && (action & GMSH_GUI))
3590  FlGui::instance()->options->general.butt[20]->value(
3591  CTX::instance()->heavyVisu);
3592 #endif
3593  return CTX::instance()->heavyVisu;
3594 }
3595 #endif
3596 
3598 {
3599  if(action & GMSH_SET) CTX::instance()->stereo = (int)val;
3600  if(CTX::instance()->stereo) opt_general_camera_mode(num, action, 1.);
3601 #if defined(HAVE_FLTK)
3602  if(FlGui::available() && (action & GMSH_GUI))
3603  FlGui::instance()->options->general.butt[17]->value(CTX::instance()->stereo);
3604 #endif
3605  return CTX::instance()->stereo;
3606 }
3607 
3609 {
3610  if(action & GMSH_SET) CTX::instance()->eye_sep_ratio = (double)val;
3611 #if defined(HAVE_FLTK)
3612  if(FlGui::available() && (action & GMSH_GUI))
3613  FlGui::instance()->options->general.value[29]->value
3614  (CTX::instance()->eye_sep_ratio) ;
3615 #endif
3616  return CTX::instance()->eye_sep_ratio;
3617 }
3618 
3620 {
3621  if(action & GMSH_SET) CTX::instance()->focallength_ratio = (double)val;
3622 #if defined(HAVE_FLTK)
3623  if(FlGui::available() && (action & GMSH_GUI))
3624  FlGui::instance()->options->general.value[30]->value
3625  (CTX::instance()->focallength_ratio);
3626 #endif
3627  return CTX::instance()->focallength_ratio;
3628 }
3629 
3631 {
3632  if(action & GMSH_SET) CTX::instance()->camera_aperture = (double)val;
3633 #if defined(HAVE_FLTK)
3634  if(FlGui::available() && (action & GMSH_GUI))
3635  FlGui::instance()->options->general.value[31]->value
3636  (CTX::instance()->camera_aperture);
3637 #endif
3638  return CTX::instance()->camera_aperture;
3639 }
3640 
3642 {
3643  if(action & GMSH_SET) CTX::instance()->camera = (int)val;
3644 #if defined(HAVE_FLTK)
3645  if(FlGui::available() && (action & GMSH_GUI)){
3646  FlGui::instance()->options->general.butt[18]->value
3647  (CTX::instance()->camera);
3648  FlGui::instance()->options->activate("general_camera");
3649  }
3650 #endif
3651  return CTX::instance()->camera;
3652 }
3653 
3655 {
3656  if(action & GMSH_SET) CTX::instance()->clipPlane[0][0] = val;
3657 #if defined(HAVE_FLTK)
3658  if(FlGui::available() && (action & GMSH_GUI))
3659  FlGui::instance()->clipping->resetBrowser();
3660 #endif
3661  return CTX::instance()->clipPlane[0][0];
3662 }
3663 
3665 {
3666  if(action & GMSH_SET) CTX::instance()->clipPlane[0][1] = val;
3667 #if defined(HAVE_FLTK)
3668  if(FlGui::available() && (action & GMSH_GUI))
3669  FlGui::instance()->clipping->resetBrowser();
3670 #endif
3671  return CTX::instance()->clipPlane[0][1];
3672 }
3673 
3675 {
3676  if(action & GMSH_SET) CTX::instance()->clipPlane[0][2] = val;
3677 #if defined(HAVE_FLTK)
3678  if(FlGui::available() && (action & GMSH_GUI))
3679  FlGui::instance()->clipping->resetBrowser();
3680 #endif
3681  return CTX::instance()->clipPlane[0][2];
3682 }
3683 
3685 {
3686  if(action & GMSH_SET) CTX::instance()->clipPlane[0][3] = val;
3687 #if defined(HAVE_FLTK)
3688  if(FlGui::available() && (action & GMSH_GUI))
3689  FlGui::instance()->clipping->resetBrowser();
3690 #endif
3691  return CTX::instance()->clipPlane[0][3];
3692 }
3693 
3695 {
3696  if(action & GMSH_SET) CTX::instance()->clipPlane[1][0] = val;
3697 #if defined(HAVE_FLTK)
3698  if(FlGui::available() && (action & GMSH_GUI))
3699  FlGui::instance()->clipping->resetBrowser();
3700 #endif
3701  return CTX::instance()->clipPlane[1][0];
3702 }
3703 
3705 {
3706  if(action & GMSH_SET) CTX::instance()->clipPlane[1][1] = val;
3707 #if defined(HAVE_FLTK)
3708  if(FlGui::available() && (action & GMSH_GUI))
3709  FlGui::instance()->clipping->resetBrowser();
3710 #endif
3711  return CTX::instance()->clipPlane[1][1];
3712 }
3713 
3715 {
3716  if(action & GMSH_SET) CTX::instance()->clipPlane[1][2] = val;
3717 #if defined(HAVE_FLTK)
3718  if(FlGui::available() && (action & GMSH_GUI))
3719  FlGui::instance()->clipping->resetBrowser();
3720 #endif
3721  return CTX::instance()->clipPlane[1][2];
3722 }
3723 
3725 {
3726  if(action & GMSH_SET) CTX::instance()->clipPlane[1][3] = val;
3727 #if defined(HAVE_FLTK)
3728  if(FlGui::available() && (action & GMSH_GUI))
3729  FlGui::instance()->clipping->resetBrowser();
3730 #endif
3731  return CTX::instance()->clipPlane[1][3];
3732 }
3733 
3735 {
3736  if(action & GMSH_SET) CTX::instance()->clipPlane[2][0] = val;
3737 #if defined(HAVE_FLTK)
3738  if(FlGui::available() && (action & GMSH_GUI))
3739  FlGui::instance()->clipping->resetBrowser();
3740 #endif
3741  return CTX::instance()->clipPlane[2][0];
3742 }
3743 
3745 {
3746  if(action & GMSH_SET) CTX::instance()->clipPlane[2][1] = val;
3747 #if defined(HAVE_FLTK)
3748  if(FlGui::available() && (action & GMSH_GUI))
3749  FlGui::instance()->clipping->resetBrowser();
3750 #endif
3751  return CTX::instance()->clipPlane[2][1];
3752 }
3753 
3755 {
3756  if(action & GMSH_SET) CTX::instance()->clipPlane[2][2] = val;
3757 #if defined(HAVE_FLTK)
3758  if(FlGui::available() && (action & GMSH_GUI))
3759  FlGui::instance()->clipping->resetBrowser();
3760 #endif
3761  return CTX::instance()->clipPlane[2][2];
3762 }
3763 
3765 {
3766  if(action & GMSH_SET) CTX::instance()->clipPlane[2][3] = val;
3767 #if defined(HAVE_FLTK)
3768  if(FlGui::available() && (action & GMSH_GUI))
3769  FlGui::instance()->clipping->resetBrowser();
3770 #endif
3771  return CTX::instance()->clipPlane[2][3];
3772 }
3773 
3775 {
3776  if(action & GMSH_SET) CTX::instance()->clipPlane[3][0] = val;
3777 #if defined(HAVE_FLTK)
3778  if(FlGui::available() && (action & GMSH_GUI))
3779  FlGui::instance()->clipping->resetBrowser();
3780 #endif
3781  return CTX::instance()->clipPlane[3][0];
3782 }
3783 
3785 {
3786  if(action & GMSH_SET) CTX::instance()->clipPlane[3][1] = val;
3787 #if defined(HAVE_FLTK)
3788  if(FlGui::available() && (action & GMSH_GUI))
3789  FlGui::instance()->clipping->resetBrowser();
3790 #endif
3791  return CTX::instance()->clipPlane[3][1];
3792 }
3793 
3795 {
3796  if(action & GMSH_SET) CTX::instance()->clipPlane[3][2] = val;
3797 #if defined(HAVE_FLTK)
3798  if(FlGui::available() && (action & GMSH_GUI))
3799  FlGui::instance()->clipping->resetBrowser();
3800 #endif
3801  return CTX::instance()->clipPlane[3][2];
3802 }
3803 
3805 {
3806  if(action & GMSH_SET) CTX::instance()->clipPlane[3][3] = val;
3807 #if defined(HAVE_FLTK)
3808  if(FlGui::available() && (action & GMSH_GUI))
3809  FlGui::instance()->clipping->resetBrowser();
3810 #endif
3811  return CTX::instance()->clipPlane[3][3];
3812 }
3813 
3815 {
3816  if(action & GMSH_SET) CTX::instance()->clipPlane[4][0] = val;
3817 #if defined(HAVE_FLTK)
3818  if(FlGui::available() && (action & GMSH_GUI))
3819  FlGui::instance()->clipping->resetBrowser();
3820 #endif
3821  return CTX::instance()->clipPlane[4][0];
3822 }
3823 
3825 {
3826  if(action & GMSH_SET) CTX::instance()->clipPlane[4][1] = val;
3827 #if defined(HAVE_FLTK)
3828  if(FlGui::available() && (action & GMSH_GUI))
3829  FlGui::instance()->clipping->resetBrowser();
3830 #endif
3831  return CTX::instance()->clipPlane[4][1];
3832 }
3833 
3835 {
3836  if(action & GMSH_SET) CTX::instance()->clipPlane[4][2] = val;
3837 #if defined(HAVE_FLTK)
3838  if(FlGui::available() && (action & GMSH_GUI))
3839  FlGui::instance()->clipping->resetBrowser();
3840 #endif
3841  return CTX::instance()->clipPlane[4][2];
3842 }
3843 
3845 {
3846  if(action & GMSH_SET) CTX::instance()->clipPlane[4][3] = val;
3847 #if defined(HAVE_FLTK)
3848  if(FlGui::available() && (action & GMSH_GUI))
3849  FlGui::instance()->clipping->resetBrowser();
3850 #endif
3851  return CTX::instance()->clipPlane[4][3];
3852 }
3853 
3855 {
3856  if(action & GMSH_SET) CTX::instance()->clipPlane[5][0] = val;
3857 #if defined(HAVE_FLTK)
3858  if(FlGui::available() && (action & GMSH_GUI))
3859  FlGui::instance()->clipping->resetBrowser();
3860 #endif
3861  return CTX::instance()->clipPlane[5][0];
3862 }
3863 
3865 {
3866  if(action & GMSH_SET) CTX::instance()->clipPlane[5][1] = val;
3867 #if defined(HAVE_FLTK)
3868  if(FlGui::available() && (action & GMSH_GUI))
3869  FlGui::instance()->clipping->resetBrowser();
3870 #endif
3871  return CTX::instance()->clipPlane[5][1];
3872 }
3873 
3875 {
3876  if(action & GMSH_SET) CTX::instance()->clipPlane[5][2] = val;
3877 #if defined(HAVE_FLTK)
3878  if(FlGui::available() && (action & GMSH_GUI))
3879  FlGui::instance()->clipping->resetBrowser();
3880 #endif
3881  return CTX::instance()->clipPlane[5][2];
3882 }
3883 
3885 {
3886  if(action & GMSH_SET) CTX::instance()->clipPlane[5][3] = val;
3887 #if defined(HAVE_FLTK)
3888  if(FlGui::available() && (action & GMSH_GUI))
3889  FlGui::instance()->clipping->resetBrowser();
3890 #endif
3891  return CTX::instance()->clipPlane[5][3];
3892 }
3893 
3895 {
3896  if(action & GMSH_SET) CTX::instance()->clipWholeElements = (int)val;
3897 #if defined(HAVE_FLTK)
3898  if(FlGui::available() && (action & GMSH_GUI)) {
3899  FlGui::instance()->clipping->butt[0]->value(
3900  CTX::instance()->clipWholeElements);
3901  FlGui::instance()->options->activate("clip_whole_elements");
3902  }
3903 #endif
3904  return CTX::instance()->clipWholeElements;
3905 }
3906 
3908 {
3909  if(action & GMSH_SET)
3911 #if defined(HAVE_FLTK)
3912  if(FlGui::available() && (action & GMSH_GUI))
3913  FlGui::instance()->clipping->butt[1]->value(
3914  CTX::instance()->clipOnlyDrawIntersectingVolume);
3915 #endif
3917 }
3918 
3920 {
3921  if(action & GMSH_SET) CTX::instance()->clipOnlyVolume = (int)val;
3922 #if defined(HAVE_FLTK)
3923  if(FlGui::available() && (action & GMSH_GUI))
3924  FlGui::instance()->clipping->butt[2]->value(
3925  CTX::instance()->clipOnlyVolume);
3926 #endif
3927  return CTX::instance()->clipOnlyVolume;
3928 }
3929 
3931 {
3932  if(action & GMSH_SET) CTX::instance()->light[0] = (int)val;
3933  return CTX::instance()->light[0];
3934 }
3935 
3937 {
3938  if(action & GMSH_SET) CTX::instance()->lightPosition[0][0] = val;
3939 #if defined(HAVE_FLTK)
3940  if(FlGui::available() && (action & GMSH_GUI)) {
3941  FlGui::instance()->options->general.value[2]->value(
3942  CTX::instance()->lightPosition[0][0]);
3943  FlGui::instance()->options->general.sphere->setValue(
3944  CTX::instance()->lightPosition[0][0],
3945  CTX::instance()->lightPosition[0][1],
3946  CTX::instance()->lightPosition[0][2]);
3947  }
3948 #endif
3949  return CTX::instance()->lightPosition[0][0];
3950 }
3951 
3953 {
3954  if(action & GMSH_SET) CTX::instance()->lightPosition[0][1] = val;
3955 #if defined(HAVE_FLTK)
3956  if(FlGui::available() && (action & GMSH_GUI)) {
3957  FlGui::instance()->options->general.value[3]->value(
3958  CTX::instance()->lightPosition[0][1]);
3959  FlGui::instance()->options->general.sphere->setValue(
3960  CTX::instance()->lightPosition[0][0],
3961  CTX::instance()->lightPosition[0][1],
3962  CTX::instance()->lightPosition[0][2]);
3963  }
3964 #endif
3965  return CTX::instance()->lightPosition[0][1];
3966 }
3967 
3969 {
3970  if(action & GMSH_SET) CTX::instance()->lightPosition[0][2] = val;
3971 #if defined(HAVE_FLTK)
3972  if(FlGui::available() && (action & GMSH_GUI)) {
3973  FlGui::instance()->options->general.value[4]->value(
3974  CTX::instance()->lightPosition[0][2]);
3975  FlGui::instance()->options->general.sphere->setValue(
3976  CTX::instance()->lightPosition[0][0],
3977  CTX::instance()->lightPosition[0][1],
3978  CTX::instance()->lightPosition[0][2]);
3979  }
3980 #endif
3981  return CTX::instance()->lightPosition[0][2];
3982 }
3983 
3985 {
3986  if(action & GMSH_SET) CTX::instance()->lightPosition[0][3] = val;
3987 #if defined(HAVE_FLTK)
3988  if(FlGui::available() && (action & GMSH_GUI))
3989  FlGui::instance()->options->general.value[13]->value(
3990  CTX::instance()->lightPosition[0][3]);
3991 #endif
3992  return CTX::instance()->lightPosition[0][3];
3993 }
3994 
3996 {
3997  if(action & GMSH_SET) CTX::instance()->light[1] = (int)val;
3998  return CTX::instance()->light[1];
3999 }
4000 
4002 {
4003  if(action & GMSH_SET) CTX::instance()->lightPosition[1][0] = val;
4004  return CTX::instance()->lightPosition[1][0];
4005 }
4006 
4008 {
4009  if(action & GMSH_SET) CTX::instance()->lightPosition[1][1] = val;
4010  return CTX::instance()->lightPosition[1][1];
4011 }
4012 
4014 {
4015  if(action & GMSH_SET) CTX::instance()->lightPosition[1][2] = val;
4016  return CTX::instance()->lightPosition[1][2];
4017 }
4018 
4020 {
4021  if(action & GMSH_SET) CTX::instance()->lightPosition[1][3] = val;
4022  return CTX::instance()->lightPosition[1][3];
4023 }
4024 
4026 {
4027  if(action & GMSH_SET) CTX::instance()->light[2] = (int)val;
4028  return CTX::instance()->light[2];
4029 }
4030 
4032 {
4033  if(action & GMSH_SET) CTX::instance()->lightPosition[2][0] = val;
4034  return CTX::instance()->lightPosition[2][0];
4035 }
4036 
4038 {
4039  if(action & GMSH_SET) CTX::instance()->lightPosition[2][1] = val;
4040  return CTX::instance()->lightPosition[2][1];
4041 }
4042 
4044 {
4045  if(action & GMSH_SET) CTX::instance()->lightPosition[2][2] = val;
4046  return CTX::instance()->lightPosition[2][2];
4047 }
4048 
4050 {
4051  if(action & GMSH_SET) CTX::instance()->lightPosition[2][3] = val;
4052  return CTX::instance()->lightPosition[2][3];
4053 }
4054 
4056 {
4057  if(action & GMSH_SET) CTX::instance()->light[3] = (int)val;
4058  return CTX::instance()->light[3];
4059 }
4060 
4062 {
4063  if(action & GMSH_SET) CTX::instance()->lightPosition[3][0] = val;
4064  return CTX::instance()->lightPosition[3][0];
4065 }
4066 
4068 {
4069  if(action & GMSH_SET) CTX::instance()->lightPosition[3][1] = val;
4070  return CTX::instance()->lightPosition[3][1];
4071 }
4072 
4074 {
4075  if(action & GMSH_SET) CTX::instance()->lightPosition[3][2] = val;
4076  return CTX::instance()->lightPosition[3][2];
4077 }
4078 
4080 {
4081  if(action & GMSH_SET) CTX::instance()->lightPosition[3][3] = val;
4082  return CTX::instance()->lightPosition[3][3];
4083 }
4084 
4086 {
4087  if(action & GMSH_SET) CTX::instance()->light[4] = (int)val;
4088  return CTX::instance()->light[4];
4089 }
4090 
4092 {
4093  if(action & GMSH_SET) CTX::instance()->lightPosition[4][0] = val;
4094  return CTX::instance()->lightPosition[4][0];
4095 }
4096 
4098 {
4099  if(action & GMSH_SET) CTX::instance()->lightPosition[4][1] = val;
4100  return CTX::instance()->lightPosition[4][1];
4101 }
4102 
4104 {
4105  if(action & GMSH_SET) CTX::instance()->lightPosition[4][2] = val;
4106  return CTX::instance()->lightPosition[4][2];
4107 }
4108 
4110 {
4111  if(action & GMSH_SET) CTX::instance()->lightPosition[4][3] = val;
4112  return CTX::instance()->lightPosition[4][3];
4113 }
4114 
4116 {
4117  if(action & GMSH_SET) CTX::instance()->light[5] = (int)val;
4118  return CTX::instance()->light[5];
4119 }
4120 
4122 {
4123  if(action & GMSH_SET) CTX::instance()->lightPosition[5][0] = val;
4124  return CTX::instance()->lightPosition[5][0];
4125 }
4126 
4128 {
4129  if(action & GMSH_SET) CTX::instance()->lightPosition[5][1] = val;
4130  return CTX::instance()->lightPosition[5][1];
4131 }
4132 
4134 {
4135  if(action & GMSH_SET) CTX::instance()->lightPosition[5][2] = val;
4136  return CTX::instance()->lightPosition[5][2];
4137 }
4138 
4140 {
4141  if(action & GMSH_SET) CTX::instance()->lightPosition[5][3] = val;
4142  return CTX::instance()->lightPosition[5][3];
4143 }
4144 
4146 {
4147  if(action & GMSH_SET) {
4148  CTX::instance()->numThreads = (int)val;
4149  }
4150 #if defined(HAVE_FLTK)
4151  if(FlGui::available() && (action & GMSH_GUI))
4152  FlGui::instance()->options->general.value[32]->value(CTX::instance()->numThreads);
4153 #endif
4154  return CTX::instance()->numThreads;
4155 }
4156 
4158 {
4159  if(action & GMSH_SET) {
4160  CTX::instance()->geom.useTransform = (int)val;
4161  if(CTX::instance()->geom.useTransform < 0 ||
4164  }
4165 #if defined(HAVE_FLTK)
4166  if(FlGui::available()) {
4167  if(action & GMSH_GUI)
4168  FlGui::instance()->options->geo.choice[3]->value(
4169  CTX::instance()->geom.useTransform);
4170  if(action & GMSH_SET) {
4171  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
4172  if(CTX::instance()->geom.useTransform == 1) {
4174  CTX::instance()->geom.transform, CTX::instance()->geom.offset);
4175  gl->getDrawContext()->setTransform(tr);
4176  }
4177  else {
4178  drawTransform *tr = gl->getDrawContext()->getTransform();
4179  gl->getDrawContext()->setTransform(nullptr);
4180  if(tr) delete tr;
4181  }
4182  }
4183  FlGui::instance()->options->activate("geo_transform");
4184  }
4185 #endif
4186  return CTX::instance()->geom.useTransform;
4187 }
4188 
4189 static double _opt_geometry_transform(OPT_ARGS_NUM, int ii, int jj, int nn)
4190 {
4191  if(action & GMSH_SET) CTX::instance()->geom.transform[ii][jj] = val;
4192 #if defined(HAVE_FLTK)
4193  if(FlGui::available()) {
4194  if(action & GMSH_GUI)
4195  FlGui::instance()->options->geo.value[nn]->value(
4196  CTX::instance()->geom.transform[ii][jj]);
4197  if(action & GMSH_SET) {
4198  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
4199  drawTransform *tr = gl->getDrawContext()->getTransform();
4200  if(tr)
4201  tr->setMatrix(CTX::instance()->geom.transform,
4203  }
4204  }
4205 #endif
4206  return CTX::instance()->geom.transform[ii][jj];
4207 }
4208 
4210 {
4211  return _opt_geometry_transform(num, action, val, 0, 0, 7);
4212 }
4213 
4215 {
4216  return _opt_geometry_transform(num, action, val, 0, 1, 8);
4217 }
4218 
4220 {
4221  return _opt_geometry_transform(num, action, val, 0, 2, 9);
4222 }
4223 
4225 {
4226  return _opt_geometry_transform(num, action, val, 1, 0, 11);
4227 }
4228 
4230 {
4231  return _opt_geometry_transform(num, action, val, 1, 1, 12);
4232 }
4233 
4235 {
4236  return _opt_geometry_transform(num, action, val, 1, 2, 13);
4237 }
4238 
4240 {
4241  return _opt_geometry_transform(num, action, val, 2, 0, 15);
4242 }
4243 
4245 {
4246  return _opt_geometry_transform(num, action, val, 2, 1, 16);
4247 }
4248 
4250 {
4251  return _opt_geometry_transform(num, action, val, 2, 2, 17);
4252 }
4253 
4254 static double _opt_geometry_offset(OPT_ARGS_NUM, int ii, int nn)
4255 {
4256  if(action & GMSH_SET) CTX::instance()->geom.offset[ii] = val;
4257 #if defined(HAVE_FLTK)
4258  if(FlGui::available()) {
4259  if(action & GMSH_GUI)
4260  FlGui::instance()->options->geo.value[nn]->value(
4261  CTX::instance()->geom.offset[ii]);
4262  if(action & GMSH_SET) {
4263  openglWindow *gl = FlGui::instance()->getCurrentOpenglWindow();
4264  drawTransform *tr = gl->getDrawContext()->getTransform();
4265  if(tr)
4266  tr->setMatrix(CTX::instance()->geom.transform,
4268  }
4269  }
4270 #endif
4271  return CTX::instance()->geom.offset[ii];
4272 }
4273 
4275 {
4276  return _opt_geometry_offset(num, action, val, 0, 10);
4277 }
4278 
4280 {
4281  return _opt_geometry_offset(num, action, val, 1, 14);
4282 }
4283 
4285 {
4286  return _opt_geometry_offset(num, action, val, 2, 18);
4287 }
4288 
4290 {
4291  if(action & GMSH_SET) CTX::instance()->geom.autoCoherence = (int)val;
4292 #if defined(HAVE_FLTK)
4293  if(FlGui::available() && (action & GMSH_GUI))
4294  FlGui::instance()->options->geo.butt[8]->value(
4295  CTX::instance()->geom.autoCoherence);
4296 #endif
4297  return CTX::instance()->geom.autoCoherence;
4298 }
4299 
4301 {
4302  if(action & GMSH_SET) CTX::instance()->geom.orientedPhysicals = (int)val;
4304 }
4305 
4307 {
4308  if(action & GMSH_SET) CTX::instance()->geom.highlightOrphans = (int)val;
4309 #if defined(HAVE_FLTK)
4310  if(FlGui::available() && (action & GMSH_GUI))
4311  FlGui::instance()->options->geo.butt[10]->value(
4312  CTX::instance()->geom.highlightOrphans);
4313 #endif
4315 }
4316 
4318 {
4319  if(action & GMSH_SET) CTX::instance()->geom.tolerance = val;
4320 #if defined(HAVE_FLTK)
4321  if(FlGui::available() && (action & GMSH_GUI))
4322  FlGui::instance()->options->geo.value[2]->value(
4323  CTX::instance()->geom.tolerance);
4324 #endif
4325  return CTX::instance()->geom.tolerance;
4326 }
4327 
4329 {
4330  if(action & GMSH_SET) CTX::instance()->geom.toleranceBoolean = val;
4332 }
4333 
4335 {
4336  if(action & GMSH_SET) CTX::instance()->geom.normals = val;
4337 #if defined(HAVE_FLTK)
4338  if(FlGui::available() && (action & GMSH_GUI))
4339  FlGui::instance()->options->geo.value[0]->value(
4340  CTX::instance()->geom.normals);
4341 #endif
4342  return CTX::instance()->geom.normals;
4343 }
4344 
4346 {
4347  if(action & GMSH_SET) CTX::instance()->geom.tangents = val;
4348 #if defined(HAVE_FLTK)
4349  if(FlGui::available() && (action & GMSH_GUI))
4350  FlGui::instance()->options->geo.value[1]->value(
4351  CTX::instance()->geom.tangents);
4352 #endif
4353  return CTX::instance()->geom.tangents;
4354 }
4355 
4357 {
4358  if(action & GMSH_SET) CTX::instance()->geom.points = (int)val;
4359 #if defined(HAVE_FLTK)
4360  if(FlGui::available() && (action & GMSH_GUI))
4361  FlGui::instance()->options->geo.butt[0]->value(
4362  CTX::instance()->geom.points);
4363 #endif
4364  return CTX::instance()->geom.points;
4365 }
4366 
4368 {
4369  if(action & GMSH_SET) CTX::instance()->geom.curves = (int)val;
4370 #if defined(HAVE_FLTK)
4371  if(FlGui::available() && (action & GMSH_GUI))
4372  FlGui::instance()->options->geo.butt[1]->value(
4373  CTX::instance()->geom.curves);
4374 #endif
4375  return CTX::instance()->geom.curves;
4376 }
4377 
4379 {
4380  if(action & GMSH_SET) CTX::instance()->geom.surfaces = (int)val;
4381 #if defined(HAVE_FLTK)
4382  if(FlGui::available() && (action & GMSH_GUI))
4383  FlGui::instance()->options->geo.butt[2]->value(
4384  CTX::instance()->geom.surfaces);
4385 #endif
4386  return CTX::instance()->geom.surfaces;
4387 }
4388 
4390 {
4391  if(action & GMSH_SET) CTX::instance()->geom.volumes = (int)val;
4392 #if defined(HAVE_FLTK)
4393  if(FlGui::available() && (action & GMSH_GUI))
4394  FlGui::instance()->options->geo.butt[3]->value(
4395  CTX::instance()->geom.volumes);
4396 #endif
4397  return CTX::instance()->geom.volumes;
4398 }
4399 
4401 {
4402  if(action & GMSH_SET) CTX::instance()->geom.pointLabels = (int)val;
4403 #if defined(HAVE_FLTK)
4404  if(FlGui::available() && (action & GMSH_GUI))
4405  FlGui::instance()->options->geo.butt[4]->value(
4406  CTX::instance()->geom.pointLabels);
4407 #endif
4408  return CTX::instance()->geom.pointLabels;
4409 }
4410 
4412 {
4413  if(action & GMSH_SET) CTX::instance()->geom.curveLabels = (int)val;
4414 #if defined(HAVE_FLTK)
4415  if(FlGui::available() && (action & GMSH_GUI))
4416  FlGui::instance()->options->geo.butt[5]->value(
4417  CTX::instance()->geom.curveLabels);
4418 #endif
4419  return CTX::instance()->geom.curveLabels;
4420 }
4421 
4423 {
4424  if(action & GMSH_SET) CTX::instance()->geom.surfaceLabels = (int)val;
4425 #if defined(HAVE_FLTK)
4426  if(FlGui::available() && (action & GMSH_GUI))
4427  FlGui::instance()->options->geo.butt[6]->value(
4428  CTX::instance()->geom.surfaceLabels);
4429 #endif
4430  return CTX::instance()->geom.surfaceLabels;
4431 }
4432 
4434 {
4435  if(action & GMSH_SET) CTX::instance()->geom.volumeLabels = (int)val;
4436 #if defined(HAVE_FLTK)
4437  if(FlGui::available() && (action & GMSH_GUI))
4438  FlGui::instance()->options->geo.butt[7]->value(
4439  CTX::instance()->geom.volumeLabels);
4440 #endif
4441  return CTX::instance()->geom.volumeLabels;
4442 }
4443 
4445 {
4446  if(action & GMSH_SET) {
4447  CTX::instance()->geom.labelType = (int)val;
4448  if(CTX::instance()->geom.labelType < 0 ||
4449  CTX::instance()->geom.labelType > 4)
4450  CTX::instance()->geom.labelType = 0;
4451  }
4452 #if defined(HAVE_FLTK)
4453  if(FlGui::available() && (action & GMSH_GUI)) {
4454  FlGui::instance()->options->geo.choice[4]->value(
4455  CTX::instance()->geom.labelType);
4456  }
4457 #endif
4458  return CTX::instance()->geom.labelType;
4459 }
4460 
4462 {
4463  if(action & GMSH_SET) CTX::instance()->geom.pointSize = val;
4464 #if defined(HAVE_FLTK)
4465  if(FlGui::available() && (action & GMSH_GUI))
4466  FlGui::instance()->options->geo.value[3]->value(
4467  CTX::instance()->geom.pointSize);
4468 #endif
4469  return CTX::instance()->geom.pointSize;
4470 }
4471 
4473 {
4474  if(action & GMSH_SET) CTX::instance()->geom.selectedPointSize = val;
4475 #if defined(HAVE_FLTK)
4476  if(FlGui::available() && (action & GMSH_GUI))
4477  FlGui::instance()->options->geo.value[5]->value(
4478  CTX::instance()->geom.selectedPointSize);
4479 #endif
4481 }
4482 
4484 {
4485  if(action & GMSH_SET) { CTX::instance()->geom.pointType = (int)val; }
4486 #if defined(HAVE_FLTK)
4487  if(FlGui::available() && (action & GMSH_GUI)) {
4488  FlGui::instance()->options->geo.choice[0]->value(
4489  CTX::instance()->geom.pointType);
4490  }
4491 #endif
4492  return CTX::instance()->geom.pointType;
4493 }
4494 
4496 {
4497  if(action & GMSH_SET) CTX::instance()->geom.curveWidth = val;
4498 #if defined(HAVE_FLTK)
4499  if(FlGui::available() && (action & GMSH_GUI))
4500  FlGui::instance()->options->geo.value[4]->value(
4501  CTX::instance()->geom.curveWidth);
4502 #endif
4503  return CTX::instance()->geom.curveWidth;
4504 }
4505 
4507 {
4508  if(action & GMSH_SET) CTX::instance()->geom.selectedCurveWidth = val;
4509 #if defined(HAVE_FLTK)
4510  if(FlGui::available() && (action & GMSH_GUI))
4511  FlGui::instance()->options->geo.value[6]->value(
4512  CTX::instance()->geom.selectedCurveWidth);
4513 #endif
4515 }
4516 
4518 {
4519  if(action & GMSH_SET) { CTX::instance()->geom.curveType = (int)val; }
4520 #if defined(HAVE_FLTK)
4521  if(FlGui::available() && (action & GMSH_GUI)) {
4522  FlGui::instance()->options->geo.choice[1]->value(
4523  CTX::instance()->geom.curveType);
4524  }
4525 #endif
4526  return CTX::instance()->geom.curveType;
4527 }
4528 
4530 {
4531  if(action & GMSH_SET) {
4532  CTX::instance()->geom.surfaceType = (int)val;
4533  if(CTX::instance()->geom.surfaceType < 0 ||
4536  }
4537 #if defined(HAVE_FLTK)
4538  if(FlGui::available() && (action & GMSH_GUI)) {
4539  FlGui::instance()->options->geo.choice[2]->value(
4540  CTX::instance()->geom.surfaceType);
4541  }
4542 #endif
4543  return CTX::instance()->geom.surfaceType;
4544 }
4545 
4547 {
4548  if(action & GMSH_SET) CTX::instance()->geom.light = (int)val;
4549 #if defined(HAVE_FLTK)
4550  if(FlGui::available() && (action & GMSH_GUI)) {
4551  FlGui::instance()->options->geo.butt[9]->value(CTX::instance()->geom.light);
4552  }
4553 #endif
4554  return CTX::instance()->geom.light;
4555 }
4556 
4558 {
4559  if(action & GMSH_SET) CTX::instance()->geom.lightTwoSide = (int)val;
4560 #if defined(HAVE_FLTK)
4561  if(FlGui::available() && (action & GMSH_GUI))
4562  FlGui::instance()->options->geo.butt[15]->value(
4563  CTX::instance()->geom.lightTwoSide);
4564 #endif
4565  return CTX::instance()->geom.lightTwoSide;
4566 }
4567 
4569 {
4570  if(action & GMSH_SET) CTX::instance()->geom.occAutoEmbed = val ? 1 : 0;
4571  return CTX::instance()->geom.occAutoEmbed;
4572 }
4573 
4575 {
4576  if(action & GMSH_SET) CTX::instance()->geom.occSafeUnbind = val ? 1 : 0;
4577  return CTX::instance()->geom.occSafeUnbind;
4578 }
4579 
4581 {
4582  if(action & GMSH_SET) CTX::instance()->geom.occAutoFix = val ? 1 : 0;
4583  return CTX::instance()->geom.occAutoFix;
4584 }
4585 
4587 {
4588  if(action & GMSH_SET) CTX::instance()->geom.occBoundsUseSTL = val ? 1 : 0;
4590 }
4591 
4593 {
4594  if(action & GMSH_SET) CTX::instance()->geom.occDisableSTL = val ? 1 : 0;
4595  return CTX::instance()->geom.occDisableSTL;
4596 }
4597 
4599 {
4600  if(action & GMSH_SET) CTX::instance()->geom.occFixDegenerated = val ? 1 : 0;
4601 #if defined(HAVE_FLTK)
4602  if(FlGui::available() && (action & GMSH_GUI)) {
4603  FlGui::instance()->options->geo.butt[16]->value(
4604  CTX::instance()->geom.occFixDegenerated);
4605  }
4606 #endif
4608 }
4609 
4611 {
4612  if(action & GMSH_SET) CTX::instance()->geom.occFixSmallEdges = val ? 1 : 0;
4613 #if defined(HAVE_FLTK)
4614  if(FlGui::available() && (action & GMSH_GUI)) {
4615  FlGui::instance()->options->geo.butt[11]->value(
4616  CTX::instance()->geom.occFixSmallEdges);
4617  }
4618 #endif
4620 }
4621 
4623 {
4624  if(action & GMSH_SET) CTX::instance()->geom.occFixSmallFaces = val ? 1 : 0;
4625 #if defined(HAVE_FLTK)
4626  if(FlGui::available() && (action & GMSH_GUI)) {
4627  FlGui::instance()->options->geo.butt[12]->value(
4628  CTX::instance()->geom.occFixSmallFaces);
4629  }
4630 #endif
4632 }
4633 
4635 {
4636  if(action & GMSH_SET) { CTX::instance()->geom.occSewFaces = val ? 1 : 0; }
4637 #if defined(HAVE_FLTK)
4638  if(FlGui::available() && (action & GMSH_GUI)) {
4639  FlGui::instance()->options->geo.butt[13]->value(
4640  CTX::instance()->geom.occSewFaces);
4641  }
4642 #endif
4643  return CTX::instance()->geom.occSewFaces;
4644 }
4645 
4647 {
4648  if(action & GMSH_SET) { CTX::instance()->geom.occMakeSolids = val ? 1 : 0; }
4649 #if defined(HAVE_FLTK)
4650  if(FlGui::available() && (action & GMSH_GUI)) {
4651  FlGui::instance()->options->geo.butt[14]->value(
4652  CTX::instance()->geom.occMakeSolids);
4653  }
4654 #endif
4655  return CTX::instance()->geom.occMakeSolids;
4656 }
4657 
4659 {
4660  if(action & GMSH_SET) CTX::instance()->geom.occUnionUnify = (int)val;
4661  return CTX::instance()->geom.occUnionUnify;
4662 }
4663 
4665 {
4666  if(action & GMSH_SET) CTX::instance()->geom.occThruSectionsDegree = (int)val;
4668 }
4669 
4671 {
4672  if(action & GMSH_SET) CTX::instance()->geom.occParallel = (int)val;
4673  return CTX::instance()->geom.occParallel;
4674 }
4675 
4677 {
4678  if(action & GMSH_SET)
4681 }
4682 
4684 {
4685  if(action & GMSH_SET) CTX::instance()->geom.occScaling = val;
4686 #if defined(HAVE_FLTK)
4687  if(FlGui::available() && (action & GMSH_GUI)) {
4688  FlGui::instance()->options->geo.value[20]->value(
4689  CTX::instance()->geom.occScaling);
4690  }
4691 #endif
4692  return CTX::instance()->geom.occScaling;
4693 }
4694 
4696 {
4697  if(action & GMSH_SET) CTX::instance()->geom.occExportOnlyVisible = (int)val;
4699 }
4700 
4702 {
4703  if(action & GMSH_SET) CTX::instance()->geom.occImportLabels = (int)val;
4705 }
4706 
4708 {
4709  if(action & GMSH_SET) CTX::instance()->geom.occUseGenericClosestPoint = (int)val;
4711 }
4712 
4714 {
4715  if(action & GMSH_SET) CTX::instance()->geom.oldCircle = (int)val;
4716  return CTX::instance()->geom.oldCircle;
4717 }
4718 
4720 {
4721  if(action & GMSH_SET) CTX::instance()->geom.oldRuledSurface = (int)val;
4723 }
4724 
4726 {
4727  if(action & GMSH_SET) CTX::instance()->geom.oldNewreg = (int)val;
4728  return CTX::instance()->geom.oldNewreg;
4729 }
4730 
4732 {
4733  if(action & GMSH_SET) {
4734  CTX::instance()->geom.numSubEdges = (int)val;
4735  if(CTX::instance()->geom.numSubEdges < 1)
4737  }
4738 #if defined(HAVE_FLTK)
4739  if(FlGui::available() && (action & GMSH_GUI)) {
4740  FlGui::instance()->options->geo.value[19]->value(
4741  CTX::instance()->geom.numSubEdges);
4742  }
4743 #endif
4744  return CTX::instance()->geom.numSubEdges;
4745 }
4746 
4748 {
4749  if(action & GMSH_SET) CTX::instance()->geom.extrudeSplinePoints = (int)val;
4751 }
4752 
4754 {
4755  if(action & GMSH_SET) CTX::instance()->geom.extrudeReturnLateral = (int)val;
4757 }
4758 
4760 {
4761  if(action & GMSH_SET) CTX::instance()->geom.scalingFactor = val;
4762  return CTX::instance()->geom.scalingFactor;
4763 }
4764 
4766 {
4767  if(action & GMSH_SET) CTX::instance()->geom.snapPoints = val;
4768  return CTX::instance()->geom.snapPoints;
4769 }
4770 
4772 {
4773  if(action & GMSH_SET) CTX::instance()->geom.snap[0] = val;
4774 #if defined(HAVE_FLTK)
4775  if(FlGui::available() && (action & GMSH_GUI))
4776  FlGui::instance()->elementaryContext->value[0]->value(
4777  CTX::instance()->geom.snap[0]);
4778 #endif
4779  return CTX::instance()->geom.snap[0];
4780 }
4781 
4783 {
4784  if(action & GMSH_SET) CTX::instance()->geom.snap[1] = val;
4785 #if defined(HAVE_FLTK)
4786  if(FlGui::available() && (action & GMSH_GUI))
4787  FlGui::instance()->elementaryContext->value[1]->value(
4788  CTX::instance()->geom.snap[1]);
4789 #endif
4790  return CTX::instance()->geom.snap[1];
4791 }
4792 
4794 {
4795  if(action & GMSH_SET) CTX::instance()->geom.snap[2] = val;
4796 #if defined(HAVE_FLTK)
4797  if(FlGui::available() && (action & GMSH_GUI))
4798  FlGui::instance()->elementaryContext->value[2]->value(
4799  CTX::instance()->geom.snap[2]);
4800 #endif
4801  return CTX::instance()->geom.snap[2];
4802 }
4803 
4805 {
4806  if(action & GMSH_SET) CTX::instance()->geom.clip = (int)val;
4807 #if defined(HAVE_FLTK)
4808  if(FlGui::available() && (action & GMSH_GUI))
4809  FlGui::instance()->clipping->resetBrowser();
4810 #endif
4811  return CTX::instance()->geom.clip;
4812 }
4813 
4815 {
4816  if(action & GMSH_SET) CTX::instance()->geom.copyMeshingMethod = (int)val;
4818 }
4819 
4821 {
4822  if(action & GMSH_SET) CTX::instance()->geom.doubleClickedEntityTag = (int)val;
4824 }
4825 
4827 {
4828  if(action & GMSH_SET) CTX::instance()->geom.exactExtrusion = (int)val;
4829  return CTX::instance()->geom.exactExtrusion;
4830 }
4831 
4833 {
4834  if(action & GMSH_SET) CTX::instance()->geom.matchGeomAndMesh = (int)val;
4836 }
4837 
4839 {
4840  if(action & GMSH_SET)
4841  CTX::instance()->geom.matchMeshScaleFactor = (double)val;
4843 }
4844 
4846 {
4847  if(action & GMSH_SET) CTX::instance()->geom.matchMeshTolerance = (double)val;
4849 }
4850 
4852 {
4853  if(action & GMSH_SET) {
4854  if(!(action & GMSH_SET_DEFAULT) &&
4855  (int)val != CTX::instance()->mesh.optimize)
4857  CTX::instance()->mesh.optimize = (int)val;
4858  }
4859 #if defined(HAVE_FLTK)
4860  if(FlGui::available() && (action & GMSH_GUI))
4861  FlGui::instance()->options->mesh.butt[2]->value(
4862  CTX::instance()->mesh.optimize);
4863 #endif
4864  return CTX::instance()->mesh.optimize;
4865 }
4866 
4868 {
4869  if(action & GMSH_SET) {
4870  if(!(action & GMSH_SET_DEFAULT) &&
4871  val != CTX::instance()->mesh.optimizeThreshold)
4874  }
4876 }
4877 
4879 {
4880  if(action & GMSH_SET) {
4881  if(!(action & GMSH_SET_DEFAULT) &&
4882  (int)val != CTX::instance()->mesh.optimizeNetgen)
4884  CTX::instance()->mesh.optimizeNetgen = (int)val;
4885  }
4886 #if defined(HAVE_FLTK)
4887  if(FlGui::available() && (action & GMSH_GUI))
4888  FlGui::instance()->options->mesh.butt[24]->value(
4889  CTX::instance()->mesh.optimizeNetgen);
4890 #endif
4891  return CTX::instance()->mesh.optimizeNetgen;
4892 }
4893 
4895 {
4896  if(action & GMSH_SET) {
4897  if(!(action & GMSH_SET_DEFAULT) &&
4898  (int)val != CTX::instance()->mesh.refineSteps)
4900  CTX::instance()->mesh.refineSteps = (int)val;
4901  }
4902  return CTX::instance()->mesh.refineSteps;
4903 }
4904 
4906 {
4907  if(action & GMSH_SET) CTX::instance()->mesh.renumber = (int)val;
4908  return CTX::instance()->mesh.renumber;
4909 }
4910 
4912 {
4913  if(action & GMSH_SET) { CTX::instance()->mesh.normals = val; }
4914 #if defined(HAVE_FLTK)
4915  if(FlGui::available() && (action & GMSH_GUI))
4916  FlGui::instance()->options->mesh.value[8]->value(
4917  CTX::instance()->mesh.normals);
4918 #endif
4919  return CTX::instance()->mesh.normals;
4920 }
4921 
4923 {
4924  if(action & GMSH_SET) {
4925  if(CTX::instance()->mesh.numSubEdges != val)
4927  CTX::instance()->mesh.numSubEdges = (int)val;
4928  if(CTX::instance()->mesh.numSubEdges < 1)
4930  }
4931 #if defined(HAVE_FLTK)
4932  if(FlGui::available() && (action & GMSH_GUI))
4933  FlGui::instance()->options->mesh.value[14]->value(
4934  CTX::instance()->mesh.numSubEdges);
4935 #endif
4936  return CTX::instance()->mesh.numSubEdges;
4937 }
4938 
4940 {
4941  if(action & GMSH_SET) { CTX::instance()->mesh.tangents = val; }
4942 #if defined(HAVE_FLTK)
4943  if(FlGui::available() && (action & GMSH_GUI))
4944  FlGui::instance()->options->mesh.value[13]->value(
4945  CTX::instance()->mesh.tangents);
4946 #endif
4947  return CTX::instance()->mesh.tangents;
4948 }
4949 
4951 {
4952  if(action & GMSH_SET) {
4953  if(CTX::instance()->mesh.explode != val)
4955  CTX::instance()->mesh.explode = val;
4956  }
4957 #if defined(HAVE_FLTK)
4958  if(FlGui::available() && (action & GMSH_GUI))
4959  FlGui::instance()->options->mesh.value[9]->value(
4960  CTX::instance()->mesh.explode);
4961 #endif
4962  return CTX::instance()->mesh.explode;
4963 }
4964 
4966 {
4967  if(action & GMSH_SET) {
4968  if(!(action & GMSH_SET_DEFAULT) &&
4969  val != CTX::instance()->mesh.scalingFactor)
4971  CTX::instance()->mesh.scalingFactor = val;
4972  }
4973  return CTX::instance()->mesh.scalingFactor;
4974 }
4975 
4977 {
4978  if(action & GMSH_SET) {
4979  if(val > 0) {
4980  if(!(action & GMSH_SET_DEFAULT) && val != CTX::instance()->mesh.lcFactor)
4982  CTX::instance()->mesh.lcFactor = val;
4983  if(CTX::instance()->mesh.lcFactor <= 0.0){
4984  Msg::Error("Mesh element size factor must be > 0");
4985  CTX::instance()->mesh.lcFactor = 1.;
4986  }
4987  }
4988  }
4989 #if defined(HAVE_FLTK)
4990  if(FlGui::available() && (action & GMSH_GUI))
4991  FlGui::instance()->options->mesh.value[2]->value(
4992  CTX::instance()->mesh.lcFactor);
4993 #endif
4994  return CTX::instance()->mesh.lcFactor;
4995 }
4996 
4998 {
4999  if(action & GMSH_SET) {
5000  if(!(action & GMSH_SET_DEFAULT) && val != CTX::instance()->mesh.lcMin)
5002  CTX::instance()->mesh.lcMin = val;
5003  }
5004 #if defined(HAVE_FLTK)
5005  if(FlGui::available() && (action & GMSH_GUI))
5006  FlGui::instance()->options->mesh.value[25]->value(
5007  CTX::instance()->mesh.lcMin);
5008 #endif
5009  return CTX::instance()->mesh.lcMin;
5010 }
5011 
5013 {
5014  if(action & GMSH_SET) {
5015  if(!(action & GMSH_SET_DEFAULT) && val != CTX::instance()->mesh.lcMax)
5017  CTX::instance()->mesh.lcMax = val;
5018  }
5019 #if defined(HAVE_FLTK)
5020  if(FlGui::available() && (action & GMSH_GUI))
5021  FlGui::instance()->options->mesh.value[26]->value(
5022  CTX::instance()->mesh.lcMax);
5023 #endif
5024  return CTX::instance()->mesh.lcMax;
5025 }
5026 
5028 {
5029  if(action & GMSH_SET) {
5030  if(!(action & GMSH_SET_DEFAULT) &&
5031  val != CTX::instance()->mesh.toleranceEdgeLength)
5034  }
5036 }
5037 
5039 {
5040  if(action & GMSH_SET) {
5041  if(!(action & GMSH_SET_DEFAULT) &&
5042  val != CTX::instance()->mesh.toleranceInitialDelaunay)
5045  }
5047 }
5048 
5050 {
5051  if(action & GMSH_SET) {
5052  if(!(action & GMSH_SET_DEFAULT) &&
5053  (int)val != CTX::instance()->mesh.lcFromCurvature)
5055  CTX::instance()->mesh.lcFromCurvature = (int)val;
5056  }
5057 #if defined(HAVE_FLTK)
5058  if(FlGui::available() && (action & GMSH_GUI)) {
5059  FlGui::instance()->options->mesh.value[1]->value(
5060  CTX::instance()->mesh.lcFromCurvature);
5061  }
5062 #endif
5064 }
5065 
5067 {
5068  if(action & GMSH_SET) {
5069  if(!(action & GMSH_SET_DEFAULT) &&
5070  (int)val != CTX::instance()->mesh.lcFromCurvatureIso)
5072  CTX::instance()->mesh.lcFromCurvatureIso = (int)val;
5073  }
5075 }
5076 
5078 {
5079  if(action & GMSH_SET) {
5080  if(!(action & GMSH_SET_DEFAULT) &&
5081  (int)val != CTX::instance()->mesh.lcFromPoints)
5083  CTX::instance()->mesh.lcFromPoints = (int)val;
5084  }
5085 #if defined(HAVE_FLTK)
5086  if(FlGui::available() && (action & GMSH_GUI)) {
5087  FlGui::instance()->options->mesh.butt[5]->value(
5088  CTX::instance()->mesh.lcFromPoints ? 1 : 0);
5089  }
5090 #endif
5091  return CTX::instance()->mesh.lcFromPoints;
5092 }
5093 
5095 {
5096  if(action & GMSH_SET) {
5097  if(!(action & GMSH_SET_DEFAULT) &&
5098  (int)val != CTX::instance()->mesh.lcFromParametricPoints)
5101  }
5102 #if defined(HAVE_FLTK)
5103  if(FlGui::available() && (action & GMSH_GUI))
5104  FlGui::instance()->options->mesh.butt[26]->value(
5105  CTX::instance()->mesh.lcFromParametricPoints ? 1 : 0);
5106 #endif
5108 }
5109 
5111 {
5112  if(action & GMSH_SET) {
5113  if(!(action & GMSH_SET_DEFAULT) &&
5114  (int)val != CTX::instance()->mesh.lcExtendFromBoundary)
5116  CTX::instance()->mesh.lcExtendFromBoundary = (int)val;
5117  }
5118 #if defined(HAVE_FLTK)
5119  if(FlGui::available() && (action & GMSH_GUI))
5120  FlGui::instance()->options->mesh.butt[16]->value(
5121  CTX::instance()->mesh.lcExtendFromBoundary ? 1 : 0);
5122 #endif
5124 }
5125 
5127 {
5128  if(action & GMSH_SET) {
5129  if(!(action & GMSH_SET_DEFAULT) &&
5130  val != CTX::instance()->mesh.lcIntegrationPrecision)
5133  }
5135 }
5136 
5138 {
5139  if(action & GMSH_SET) {
5140  if(!(action & GMSH_SET_DEFAULT) && val != CTX::instance()->mesh.randFactor)
5142  CTX::instance()->mesh.randFactor = val;
5143  }
5144  return CTX::instance()->mesh.randFactor;
5145 }
5146 
5148 {
5149  if(action & GMSH_SET) {
5150  if(!(action & GMSH_SET_DEFAULT) &&
5151  val != CTX::instance()->mesh.randFactor3d)
5153  CTX::instance()->mesh.randFactor3d = val;
5154  }
5155  return CTX::instance()->mesh.randFactor3d;
5156 }
5157 
5159 {
5160  if(action & GMSH_SET) {
5161  if(CTX::instance()->mesh.qualityType != val)
5163  CTX::instance()->mesh.qualityType = (int)val;
5164  if(CTX::instance()->mesh.qualityType < 0 ||
5167  }
5168 #if defined(HAVE_FLTK)
5169  if(FlGui::available() && (action & GMSH_GUI)) {
5170  FlGui::instance()->options->mesh.choice[6]->value(
5171  CTX::instance()->mesh.qualityType);
5172  }
5173 #endif
5174  return CTX::instance()->mesh.qualityType;
5175 }
5176 
5178 {
5179  if(action & GMSH_SET) {
5180  if(CTX::instance()->mesh.qualityInf != val)
5182  CTX::instance()->mesh.qualityInf = val;
5183  }
5184 #if defined(HAVE_FLTK)
5185  if(FlGui::available() && (action & GMSH_GUI))
5186  FlGui::instance()->options->mesh.value[4]->value(
5187  CTX::instance()->mesh.qualityInf);
5188 #endif
5189  return CTX::instance()->mesh.qualityInf;
5190 }
5191 
5193 {
5194  if(action & GMSH_SET) {
5195  if(CTX::instance()->mesh.qualitySup != val)
5197  CTX::instance()->mesh.qualitySup = val;
5198  }
5199 #if defined(HAVE_FLTK)
5200  if(FlGui::available() && (action & GMSH_GUI))
5201  FlGui::instance()->options->mesh.value[5]->value(
5202  CTX::instance()->mesh.qualitySup);
5203 #endif
5204  return CTX::instance()->mesh.qualitySup;
5205 }
5206 
5208 {
5209  if(action & GMSH_SET) {
5210  if(CTX::instance()->mesh.radiusInf != val)
5212  CTX::instance()->mesh.radiusInf = val;
5213  }
5214 #if defined(HAVE_FLTK)
5215  if(FlGui::available() && (action & GMSH_GUI))
5216  FlGui::instance()->options->mesh.value[6]->value(
5217  CTX::instance()->mesh.radiusInf);
5218 #endif
5219  return CTX::instance()->mesh.radiusInf;
5220 }
5221 
5223 {
5224  if(action & GMSH_SET) {
5225  if(CTX::instance()->mesh.radiusSup != val)
5227  CTX::instance()->mesh.radiusSup = val;
5228  }
5229 #if defined(HAVE_FLTK)
5230  if(FlGui::available() && (action & GMSH_GUI))
5231  FlGui::instance()->options->mesh.value[7]->value(
5232  CTX::instance()->mesh.radiusSup);
5233 #endif
5234  return CTX::instance()->mesh.radiusSup;
5235 }
5236 
5238 {
5239  if(action & GMSH_SET) {
5240  CTX::instance()->mesh.labelType = (int)val;
5241  if(CTX::instance()->mesh.labelType < 0 ||
5242  CTX::instance()->mesh.labelType > 4)
5243  CTX::instance()->mesh.labelType = 0;
5244  }
5245 #if defined(HAVE_FLTK)
5246  if(FlGui::available() && (action & GMSH_GUI)) {
5247  FlGui::instance()->options->mesh.choice[7]->value(
5248  CTX::instance()->mesh.labelType);
5249  }
5250 #endif
5251  return CTX::instance()->mesh.labelType;
5252 }
5253 
5255 {
5256  if(action & GMSH_SET) {
5257  CTX::instance()->mesh.firstElementTag = (val > 1) ? (int)val : 1;
5258  }
5260 }
5261 
5263 {
5264  if(action & GMSH_SET) {
5265  CTX::instance()->mesh.firstNodeTag = (val > 1) ? (int)val : 1;
5266  }
5267  return CTX::instance()->mesh.firstNodeTag;
5268 }
5269 
5271 {
5272  if(action & GMSH_SET) { CTX::instance()->mesh.nodes = (int)val; }
5273 #if defined(HAVE_FLTK)
5274  if(FlGui::available() && (action & GMSH_GUI))
5275  FlGui::instance()->options->mesh.butt[6]->value(
5276  CTX::instance()->mesh.nodes);
5277 #endif
5278  return CTX::instance()->mesh.nodes;
5279 }
5280 
5282 {
5283  if(action & GMSH_SET) {
5284  if(CTX::instance()->mesh.lines != val)
5286  CTX::instance()->mesh.lines = (int)val;
5287  }
5288 #if defined(HAVE_FLTK)
5289  if(FlGui::available() && (action & GMSH_GUI))
5290  FlGui::instance()->options->mesh.butt[7]->value(
5291  CTX::instance()->mesh.lines);
5292 #endif
5293  return CTX::instance()->mesh.lines;
5294 }
5295 
5297 {
5298  if(action & GMSH_SET) {
5299  if(CTX::instance()->mesh.triangles != val)
5301  CTX::instance()->mesh.triangles = (int)val;
5302  }
5303 #if defined(HAVE_FLTK)
5304  if(FlGui::available() && (action & GMSH_GUI)) {
5306  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[0].set();
5307  else
5308  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[0]
5309  .clear();
5310  }
5311 #endif
5312  return CTX::instance()->mesh.triangles;
5313 }
5314 
5316 {
5317  if(action & GMSH_SET) {
5318  if(CTX::instance()->mesh.quadrangles != val)
5320  CTX::instance()->mesh.quadrangles = (int)val;
5321  }
5322 #if defined(HAVE_FLTK)
5323  if(FlGui::available() && (action & GMSH_GUI)) {
5325  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[1].set();
5326  else
5327  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[1]
5328  .clear();
5329  }
5330 #endif
5331  return CTX::instance()->mesh.quadrangles;
5332 }
5333 
5335 {
5336  if(action & GMSH_SET) {
5337  if(CTX::instance()->mesh.tetrahedra != val)
5339  CTX::instance()->mesh.tetrahedra = (int)val;
5340  }
5341 #if defined(HAVE_FLTK)
5342  if(FlGui::available() && (action & GMSH_GUI)) {
5344  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[2].set();
5345  else
5346  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[2]
5347  .clear();
5348  }
5349 #endif
5350  return CTX::instance()->mesh.tetrahedra;
5351 }
5352 
5354 {
5355  if(action & GMSH_SET) {
5356  if(CTX::instance()->mesh.hexahedra != val)
5358  CTX::instance()->mesh.hexahedra = (int)val;
5359  }
5360 #if defined(HAVE_FLTK)
5361  if(FlGui::available() && (action & GMSH_GUI)) {
5363  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[3].set();
5364  else
5365  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[3]
5366  .clear();
5367  }
5368 #endif
5369  return CTX::instance()->mesh.hexahedra;
5370 }
5371 
5373 {
5374  if(action & GMSH_SET) {
5375  if(CTX::instance()->mesh.prisms != val)
5377  CTX::instance()->mesh.prisms = (int)val;
5378  }
5379 #if defined(HAVE_FLTK)
5380  if(FlGui::available() && (action & GMSH_GUI)) {
5381  if(CTX::instance()->mesh.prisms)
5382  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[4].set();
5383  else
5384  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[4]
5385  .clear();
5386  }
5387 #endif
5388  return CTX::instance()->mesh.prisms;
5389 }
5390 
5392 {
5393  if(action & GMSH_SET) {
5394  if(CTX::instance()->mesh.pyramids != val)
5396  CTX::instance()->mesh.pyramids = (int)val;
5397  }
5398 #if defined(HAVE_FLTK)
5399  if(FlGui::available() && (action & GMSH_GUI)) {
5400  if(CTX::instance()->mesh.pyramids)
5401  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[5].set();
5402  else
5403  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[5]
5404  .clear();
5405  }
5406 #endif
5407  return CTX::instance()->mesh.pyramids;
5408 }
5409 
5411 {
5412  if(action & GMSH_SET) {
5413  if(CTX::instance()->mesh.trihedra != val)
5415  CTX::instance()->mesh.trihedra = (int)val;
5416  }
5417 #if defined(HAVE_FLTK)
5418  if(FlGui::available() && (action & GMSH_GUI)) {
5419  if(CTX::instance()->mesh.trihedra)
5420  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[6].set();
5421  else
5422  ((Fl_Menu_Item *)FlGui::instance()->options->mesh.menu->menu())[6]
5423  .clear();
5424  }
5425 #endif
5426  return CTX::instance()->mesh.trihedra;
5427 }
5428 
5430 {
5431  if(action & GMSH_SET) CTX::instance()->mesh.transfiniteTri = (int)val;
5432  return CTX::instance()->mesh.transfiniteTri;
5433 }
5434 
5436 {
5437  if(action & GMSH_SET) {
5438  if(CTX::instance()->mesh.surfaceEdges != val)
5440  CTX::instance()->mesh.surfaceEdges = (int)val;
5441  }
5442 #if defined(HAVE_FLTK)
5443  if(FlGui::available() && (action & GMSH_GUI))
5444  FlGui::instance()->options->mesh.butt[8]->value(
5445  CTX::instance()->mesh.surfaceEdges);
5446 #endif
5447  return CTX::instance()->mesh.surfaceEdges;
5448 }
5449 
5451 {
5452  if(action & GMSH_SET) {
5453  if(CTX::instance()->mesh.surfaceFaces != val)
5455  CTX::instance()->mesh.surfaceFaces = (int)val;
5456  }
5457 #if defined(HAVE_FLTK)
5458  if(FlGui::available() && (action & GMSH_GUI))
5459  FlGui::instance()->options->mesh.butt[9]->value(
5460  CTX::instance()->mesh.surfaceFaces);
5461 #endif
5462  return CTX::instance()->mesh.surfaceFaces;
5463 }
5464 
5466 {
5467  if(action & GMSH_SET) {
5468  if(CTX::instance()->mesh.volumeEdges != val)
5470  CTX::instance()->mesh.volumeEdges = (int)val;
5471  }
5472 #if defined(HAVE_FLTK)
5473  if(FlGui::available() && (action & GMSH_GUI))
5474  FlGui::instance()->options->mesh.butt[10]->value(
5475  CTX::instance()->mesh.volumeEdges);
5476 #endif
5477  return CTX::instance()->mesh.volumeEdges;
5478 }
5479 
5481 {
5482  if(action & GMSH_SET) {
5483  if(CTX::instance()->mesh.volumeFaces != val)
5485  CTX::instance()->mesh.volumeFaces = (int)val;
5486  }
5487 #if defined(HAVE_FLTK)
5488  if(FlGui::available() && (action & GMSH_GUI))
5489  FlGui::instance()->options->mesh.butt[11]->value(
5490  CTX::instance()->mesh.volumeFaces);
5491 #endif
5492  return CTX::instance()->mesh.volumeFaces;
5493 }
5494 
5496 {
5497  if(action & GMSH_SET) { CTX::instance()->mesh.nodeLabels = (int)val; }
5498 #if defined(HAVE_FLTK)
5499  if(FlGui::available() && (action & GMSH_GUI))
5500  FlGui::instance()->options->mesh.butt[12]->value(
5501  CTX::instance()->mesh.nodeLabels);
5502 #endif
5503  return CTX::instance()->mesh.nodeLabels;
5504 }
5505 
5507 {
5508  if(action & GMSH_SET) { CTX::instance()->mesh.lineLabels = (int)val; }
5509 #if defined(HAVE_FLTK)
5510  if(FlGui::available() && (action & GMSH_GUI))
5511  FlGui::instance()->options->mesh.butt[13]->value(
5512  CTX::instance()->mesh.lineLabels);
5513 #endif
5514  return CTX::instance()->mesh.lineLabels;
5515 }
5516 
5518 {
5519  if(action & GMSH_SET) { CTX::instance()->mesh.surfaceLabels = (int)val; }
5520 #if defined(HAVE_FLTK)
5521  if(FlGui::available() && (action & GMSH_GUI))
5522  FlGui::instance()->options->mesh.butt[14]->value(
5523  CTX::instance()->mesh.surfaceLabels);
5524 #endif
5525  return CTX::instance()->mesh.surfaceLabels;
5526 }
5527 
5529 {
5530  if(action & GMSH_SET) { CTX::instance()->mesh.volumeLabels = (int)val; }
5531 #if defined(HAVE_FLTK)
5532  if(FlGui::available() && (action & GMSH_GUI))
5533  FlGui::instance()->options->mesh.butt[15]->value(
5534  CTX::instance()->mesh.volumeLabels);
5535 #endif
5536  return CTX::instance()->mesh.volumeLabels;
5537 }
5538 
5540 {
5541  if(action & GMSH_SET) { CTX::instance()->mesh.nodeSize = val; }
5542 #if defined(HAVE_FLTK)
5543  if(FlGui::available() && (action & GMSH_GUI))
5544  FlGui::instance()->options->mesh.value[10]->value(
5545  CTX::instance()->mesh.nodeSize);
5546 #endif
5547  return CTX::instance()->mesh.nodeSize;
5548 }
5549 
5551 {
5552  if(action & GMSH_SET) { CTX::instance()->mesh.nodeType = (int)val; }
5553 #if defined(HAVE_FLTK)
5554  if(FlGui::available() && (action & GMSH_GUI)) {
5555  FlGui::instance()->options->mesh.choice[0]->value(
5556  CTX::instance()->mesh.nodeType ? 1 : 0);
5557  }
5558 #endif
5559  return CTX::instance()->mesh.nodeType;
5560 }
5561 
5563 {
5564  if(action & GMSH_SET) { CTX::instance()->mesh.lineWidth = val; }
5565 #if defined(HAVE_FLTK)
5566  if(FlGui::available() && (action & GMSH_GUI))
5567  FlGui::instance()->options->mesh.value[11]->value(
5568  CTX::instance()->mesh.lineWidth);
5569 #endif
5570  return CTX::instance()->mesh.lineWidth;
5571 }
5572 
5574 {
5575  if(action & GMSH_SET) { CTX::instance()->mesh.labelSampling = (int)val; }
5576 #if defined(HAVE_FLTK)
5577  if(FlGui::available() && (action & GMSH_GUI))
5578  FlGui::instance()->options->mesh.value[12]->value(
5579  CTX::instance()->mesh.labelSampling);
5580 #endif
5581  return CTX::instance()->mesh.labelSampling;
5582 }
5583 
5585 {
5586  if(action & GMSH_SET) {
5587  if(CTX::instance()->mesh.smoothNormals != val)
5589  CTX::instance()->mesh.smoothNormals = (int)val;
5590  }
5591 #if defined(HAVE_FLTK)
5592  if(FlGui::available() && (action & GMSH_GUI))
5593  FlGui::instance()->options->mesh.butt[19]->value(
5594  CTX::instance()->mesh.smoothNormals);
5595 #endif
5596  return CTX::instance()->mesh.smoothNormals;
5597 }
5598 
5600 {
5601  if(action & GMSH_SET) CTX::instance()->mesh.smoothRatio = val;
5602  return CTX::instance()->mesh.smoothRatio;
5603 }
5604 
5606 {
5607  if(action & GMSH_SET) CTX::instance()->mesh.anisoMax = val;
5608  return CTX::instance()->mesh.anisoMax;
5609 }
5610 
5612 {
5613  if(action & GMSH_SET) {
5614  if(CTX::instance()->mesh.angleSmoothNormals != val)
5617  }
5618 #if defined(HAVE_FLTK)
5619  if(FlGui::available() && (action & GMSH_GUI))
5620  FlGui::instance()->options->mesh.value[18]->value(
5621  CTX::instance()->mesh.angleSmoothNormals);
5622 #endif
5624 }
5625 
5627 {
5628  if(action & GMSH_SET) CTX::instance()->mesh.light = (int)val;
5629 #if defined(HAVE_FLTK)
5630  if(FlGui::available() && (action & GMSH_GUI)) {
5631  FlGui::instance()->options->mesh.butt[17]->value(
5632  CTX::instance()->mesh.light);
5633  FlGui::instance()->options->activate("mesh_light");
5634  }
5635 #endif
5636  return CTX::instance()->mesh.light;
5637 }
5638 
5640 {
5641  if(action & GMSH_SET) {
5642  if(CTX::instance()->mesh.lightLines != (int)val)
5644  CTX::instance()->mesh.lightLines = (int)val;
5645  if(CTX::instance()->mesh.lightLines < 0 ||
5646  CTX::instance()->mesh.lightLines > 2)
5647  CTX::instance()->mesh.lightLines = 1;
5648  }
5649 #if defined(HAVE_FLTK)
5650  if(FlGui::available() && (action & GMSH_GUI))
5651  FlGui::instance()->options->mesh.choice[10]->value(
5652  CTX::instance()->mesh.lightLines);
5653 #endif
5654  return CTX::instance()->mesh.lightLines;
5655 }
5656 
5658 {
5659  if(action & GMSH_SET) CTX::instance()->mesh.lightTwoSide = (int)val;
5660 #if defined(HAVE_FLTK)
5661  if(FlGui::available() && (action & GMSH_GUI))
5662  FlGui::instance()->options->mesh.butt[18]->value(
5663  CTX::instance()->mesh.lightTwoSide);
5664 #endif
5665  return CTX::instance()->mesh.lightTwoSide;
5666 }
5667 
5669 {
5670  if(action & GMSH_SET) CTX::instance()->mesh.fileFormat = (int)val;
5671  return CTX::instance()->mesh.fileFormat;
5672 }
5673 
5675 {
5676  if(action & GMSH_SET)
5679 }
5680 
5682 {
5683  if(action & GMSH_SET) CTX::instance()->mesh.mshFileVersion = val;
5684  return CTX::instance()->mesh.mshFileVersion;
5685 }
5686 
5688 {
5689  if(action & GMSH_SET) CTX::instance()->mesh.medFileMinorVersion = val;
5691 }
5692 
5694 {
5695  if(action & GMSH_SET) CTX::instance()->mesh.medImportGroupsOfNodes = (int)val;
5697 }
5698 
5700 {
5701  if(action & GMSH_SET) CTX::instance()->mesh.medSingleModel = (int)val;
5702  return CTX::instance()->mesh.medSingleModel;
5703 }
5704 
5706 {
5707  if(action & GMSH_SET)
5710 }
5711 
5713 {
5714  if(action & GMSH_SET)
5717 }
5718 
5720 {
5721  if(action & GMSH_SET) CTX::instance()->mesh.partitionHexWeight = (int)val;
5723 }
5724 
5726 {
5727  if(action & GMSH_SET) CTX::instance()->mesh.partitionPriWeight = (int)val;
5729 }
5730 
5732 {
5733  if(action & GMSH_SET) CTX::instance()->mesh.partitionPyrWeight = (int)val;
5735 }
5736 
5738 {
5739  if(action & GMSH_SET) CTX::instance()->mesh.partitionTrihWeight = (int)val;
5741 }
5742 
5744 {
5745  if(action & GMSH_SET) CTX::instance()->mesh.partitionQuaWeight = (int)val;
5747 }
5748 
5750 {
5751  if(action & GMSH_SET) CTX::instance()->mesh.partitionTetWeight = (int)val;
5753 }
5754 
5756 {
5757  if(action & GMSH_SET) CTX::instance()->mesh.partitionTriWeight = (int)val;
5759 }
5760 
5762 {
5763  if(action & GMSH_SET) CTX::instance()->mesh.partitionLinWeight = (int)val;
5765 }
5766 
5768 {
5769  if(action & GMSH_SET) CTX::instance()->mesh.partitionCreatePhysicals = val;
5771 }
5772 
5774 {
5775  if(action & GMSH_SET) CTX::instance()->mesh.partitionCreateTopology = val;
5777 }
5778 
5780 {
5781  if(action & GMSH_SET) CTX::instance()->mesh.partitionCreateGhostCells = val;
5783 }
5784 
5786 {
5787  if(action & GMSH_SET) CTX::instance()->mesh.partitionOldStyleMsh2 = val;
5789 }
5790 
5792 {
5793  if(action & GMSH_SET) CTX::instance()->mesh.partitionConvertMsh2 = val;
5795 }
5796 
5798 {
5799  if(action & GMSH_SET) CTX::instance()->mesh.createTopologyMsh2 = val;
5801 }
5802 
5804 {
5805  if(action & GMSH_SET) CTX::instance()->mesh.binary = (int)val;
5806  return CTX::instance()->mesh.binary;
5807 }
5808 
5810 {
5811  if(action & GMSH_SET) {
5812  int n = (int)val;
5813  if(n < 0) n = 0;
5815  }
5817 }
5818 
5820 {
5821  if(action & GMSH_SET) CTX::instance()->mesh.smoothCrossField = (int)val;
5823 }
5824 
5826 {
5827  if(action & GMSH_SET) CTX::instance()->mesh.crossFieldClosestPoint = (int)val;
5829 }
5830 
5832 {
5833  if(action & GMSH_SET) {
5834  CTX::instance()->mesh.bdfFieldFormat = (int)val;
5835  if(CTX::instance()->mesh.bdfFieldFormat < 0 ||
5838  }
5839  return CTX::instance()->mesh.bdfFieldFormat;
5840 }
5841 
5843 {
5844  if(action & GMSH_SET) {
5846  }
5848 }
5849 
5851 {
5852  if(action & GMSH_SET) {
5854  }
5856 }
5857 
5859 {
5860  if(action & GMSH_SET) { CTX::instance()->mesh.stlLinearDeflection = val; }
5862 }
5863 
5865 {
5866  if(action & GMSH_SET) {
5867  CTX::instance()->mesh.stlLinearDeflectionRelative = val ? true : false;
5868  }
5870 }
5871 
5873 {
5874  if(action & GMSH_SET) { CTX::instance()->mesh.stlAngularDeflection = val; }
5876 }
5877 
5879 {
5880  if(action & GMSH_SET) CTX::instance()->mesh.nbSmoothing = (int)val;
5881 #if defined(HAVE_FLTK)
5882  if(FlGui::available() && (action & GMSH_GUI))
5883  FlGui::instance()->options->mesh.value[0]->value(
5884  CTX::instance()->mesh.nbSmoothing);
5885 #endif
5886  return CTX::instance()->mesh.nbSmoothing;
5887 }
5888 
5890 {
5891  if(action & GMSH_SET) {
5892  if(!(action & GMSH_SET_DEFAULT) && (int)val != CTX::instance()->mesh.algo2d)
5894  CTX::instance()->mesh.algo2d = (int)val;
5895  }
5896 #if defined(HAVE_FLTK)
5897  if(FlGui::available() && (action & GMSH_GUI)) {
5898  switch(CTX::instance()->mesh.algo2d) {
5899  case ALGO_2D_MESHADAPT:
5900  FlGui::instance()->options->mesh.choice[2]->value(1);
5901  break;
5902  case ALGO_2D_DELAUNAY:
5903  FlGui::instance()->options->mesh.choice[2]->value(2);
5904  break;
5905  case ALGO_2D_FRONTAL:
5906  FlGui::instance()->options->mesh.choice[2]->value(3);
5907  break;
5908  case ALGO_2D_BAMG:
5909  FlGui::instance()->options->mesh.choice[2]->value(4);
5910  break;
5911  case ALGO_2D_FRONTAL_QUAD:
5912  FlGui::instance()->options->mesh.choice[2]->value(5);
5913  break;
5914  case ALGO_2D_PACK_PRLGRMS:
5915  FlGui::instance()->options->mesh.choice[2]->value(6);
5916  break;
5918  FlGui::instance()->options->mesh.choice[2]->value(7);
5919  break;
5920  case ALGO_2D_INITIAL_ONLY:
5921  FlGui::instance()->options->mesh.choice[2]->value(8);
5922  break;
5923  case ALGO_2D_AUTO:
5924  default: FlGui::instance()->options->mesh.choice[2]->value(0); break;
5925  }
5926  }
5927 #endif
5928  return CTX::instance()->mesh.algo2d;
5929 }
5930 
5932 {
5933  if(action & GMSH_SET) {
5934  CTX::instance()->mesh.algoSwitchOnFailure = (int)val;
5935  }
5937 }
5938 
5940 {
5941  if(action & GMSH_SET) { CTX::instance()->mesh.maxRetries = (int)val; }
5942  return CTX::instance()->mesh.maxRetries;
5943 }
5944 
5946 {
5947  if(action & GMSH_SET) {
5948  if(!(action & GMSH_SET_DEFAULT) &&
5949  (int)val != CTX::instance()->mesh.algoRecombine)
5951  CTX::instance()->mesh.algoRecombine = (int)val;
5952  if(CTX::instance()->mesh.algoRecombine < 0 ||
5955  }
5956 #if defined(HAVE_FLTK)
5957  if(FlGui::available() && (action & GMSH_GUI)) {
5958  FlGui::instance()->options->mesh.choice[1]->value(
5959  CTX::instance()->mesh.algoRecombine);
5960  }
5961 #endif
5962  return CTX::instance()->mesh.algoRecombine;
5963 }
5964 
5966 {
5967  if(action & GMSH_SET) {
5968  if(!(action & GMSH_SET_DEFAULT) &&
5969  (int)val != CTX::instance()->mesh.recombineAll)
5971  CTX::instance()->mesh.recombineAll = (int)val;
5972  }
5973 #if defined(HAVE_FLTK)
5974  if(FlGui::available() && (action & GMSH_GUI))
5975  FlGui::instance()->options->mesh.butt[21]->value(
5976  CTX::instance()->mesh.recombineAll);
5977 #endif
5978  return CTX::instance()->mesh.recombineAll;
5979 }
5980 
5982 {
5983  if(action & GMSH_SET) {
5985  }
5987 }
5988 
5990 {
5991  if(action & GMSH_SET) {
5993  }
5995 }
5996 
5998 {
5999  if(action & GMSH_SET) {
6001  }
6003 }
6004 
6006 {
6007  if(action & GMSH_SET) {
6008  if(!(action & GMSH_SET_DEFAULT) &&
6009  (int)val != CTX::instance()->mesh.recombine3DAll)
6011  CTX::instance()->mesh.recombine3DAll = (int)val;
6012  }
6013  return CTX::instance()->mesh.recombine3DAll;
6014 }
6015 
6017 {
6018  if(action & GMSH_SET) { CTX::instance()->mesh.recombine3DLevel = (int)val; }
6020 }
6021 
6023 {
6024  if(action & GMSH_SET) {
6026  }
6028 }
6029 
6031 {
6032  if(action & GMSH_SET) {
6033  CTX::instance()->mesh.flexibleTransfinite = (int)val;
6034  }
6036 }
6037 
6039 {
6040  if(action & GMSH_SET) {
6041  if(!(action & GMSH_SET_DEFAULT) &&
6042  (int)val != CTX::instance()->mesh.algoSubdivide)
6044  CTX::instance()->mesh.algoSubdivide = (int)val;
6045  if(CTX::instance()->mesh.algoSubdivide < 0 &&
6048  }
6049 #if defined(HAVE_FLTK)
6050  if(FlGui::available() && (action & GMSH_GUI)) {
6051  FlGui::instance()->options->mesh.choice[5]->value(
6052  CTX::instance()->mesh.algoSubdivide);
6053  }
6054 #endif
6055  return CTX::instance()->mesh.algoSubdivide;
6056 }
6057 
6059 {
6060  if(action & GMSH_SET) {
6061  if(!(action & GMSH_SET_DEFAULT) && (int)val != CTX::instance()->mesh.algo3d)
6063  CTX::instance()->mesh.algo3d = (int)val;
6064  // "New Delaunay" is now simply "Delaunay"
6065  if(CTX::instance()->mesh.algo3d == 2)
6066  CTX::instance()->mesh.algo3d = 1;
6067  }
6068 #if defined(HAVE_FLTK)
6069  if(FlGui::available() && (action & GMSH_GUI)) {
6070  switch(CTX::instance()->mesh.algo3d) {
6071  case ALGO_3D_FRONTAL:
6072  FlGui::instance()->options->mesh.choice[3]->value(1);
6073  break;
6074  case ALGO_3D_HXT:
6075  FlGui::instance()->options->mesh.choice[3]->value(2);
6076  break;
6077  case ALGO_3D_MMG3D:
6078  FlGui::instance()->options->mesh.choice[3]->value(3);
6079  break;
6080  case ALGO_3D_INITIAL_ONLY:
6081  FlGui::instance()->options->mesh.choice[3]->value(4);
6082  break;
6083  case ALGO_3D_DELAUNAY:
6084  default: FlGui::instance()->options->mesh.choice[3]->value(0); break;
6085  }
6086  }
6087 #endif
6088  return CTX::instance()->mesh.algo3d;
6089 }
6090 
6092 {
6093  if(action & GMSH_SET) {
6094  if(!(action & GMSH_SET_DEFAULT) &&
6095  (int)val != CTX::instance()->mesh.meshOnlyVisible)
6097  CTX::instance()->mesh.meshOnlyVisible = (int)val;
6098  }
6100 }
6101 
6103 {
6104  if(action & GMSH_SET) {
6105  if(!(action & GMSH_SET_DEFAULT) &&
6106  (int)val != CTX::instance()->mesh.meshOnlyEmpty)
6108  CTX::instance()->mesh.meshOnlyEmpty = (int)val;
6109  }
6110  return CTX::instance()->mesh.meshOnlyEmpty;
6111 }
6112 
6114 {
6115  if(action & GMSH_SET) {
6116  if(!(action & GMSH_SET_DEFAULT) &&
6117  (int)val != CTX::instance()->mesh.minLineNodes)
6119  CTX::instance()->mesh.minLineNodes = std::max((int)val, 2);
6120  }
6121  return CTX::instance()->mesh.minLineNodes;
6122 }
6123 
6125 {
6126  if(action & GMSH_SET) {
6127  if(!(action & GMSH_SET_DEFAULT) &&
6128  (int)val != CTX::instance()->mesh.minCircleNodes)
6130  CTX::instance()->mesh.minCircleNodes = std::max((int)val, 2);
6131  }
6132  return CTX::instance()->mesh.minCircleNodes;
6133 }
6134 
6136 {
6137  if(action & GMSH_SET) CTX::instance()->mesh.allowSwapEdgeAngle = val;
6139 }
6140 
6142 {
6143  if(action & GMSH_SET) {
6144  if(!(action & GMSH_SET_DEFAULT) &&
6145  (int)val != CTX::instance()->mesh.minCurveNodes)
6147  CTX::instance()->mesh.minCurveNodes = std::max((int)val, 2);
6148  }
6149  return CTX::instance()->mesh.minCurveNodes;
6150 }
6151 
6153 {
6154  if(action & GMSH_SET) {
6155  if(!(action & GMSH_SET_DEFAULT) && (int)val != CTX::instance()->mesh.order)
6157  CTX::instance()->mesh.order = (int)val;
6158  }
6159 #if defined(HAVE_FLTK)
6160  if(FlGui::available() && (action & GMSH_GUI))
6161  FlGui::instance()->options->mesh.value[3]->value(
6162  CTX::instance()->mesh.order);
6163 #endif
6164  return CTX::instance()->mesh.order;
6165 }
6166 
6168 {
6169  if(action & GMSH_SET) CTX::instance()->mesh.hoOptimize = (int)val;
6170 #if defined(HAVE_FLTK)
6171  if(FlGui::available() && (action & GMSH_GUI))
6172  FlGui::instance()->options->mesh.butt[3]->value(
6173  CTX::instance()->mesh.hoOptimize == 2 ? 1 : 0);
6174 #endif
6175  return CTX::instance()->mesh.hoOptimize;
6176 }
6177 
6179 {
6180  if(action & GMSH_SET) CTX::instance()->mesh.hoPeriodic = (int)val;
6181  return CTX::instance()->mesh.hoPeriodic;
6182 }
6183 
6185 {
6186  if(action & GMSH_SET) CTX::instance()->mesh.hoSavePeriodic = (int)val;
6187  return CTX::instance()->mesh.hoSavePeriodic;
6188 }
6189 
6191 {
6192  if(action & GMSH_SET) CTX::instance()->mesh.hoNLayers = (int)val;
6193  return CTX::instance()->mesh.hoNLayers;
6194 }
6195 
6197 {
6198  if(action & GMSH_SET) CTX::instance()->mesh.hoThresholdMin = val;
6199  return CTX::instance()->mesh.hoThresholdMin;
6200 }
6201 
6203 {
6204  if(action & GMSH_SET) CTX::instance()->mesh.hoThresholdMax = val;
6205  return CTX::instance()->mesh.hoThresholdMax;
6206 }
6207 
6209 {
6210  if(action & GMSH_SET) CTX::instance()->mesh.hoPrimSurfMesh = (int)val;
6211  return CTX::instance()->mesh.hoPrimSurfMesh;
6212 }
6213 
6215 {
6216  if(action & GMSH_SET) CTX::instance()->mesh.hoDistCAD = (int)val;
6217  return CTX::instance()->mesh.hoDistCAD;
6218 }
6219 
6221 {
6222  if(action & GMSH_SET) CTX::instance()->mesh.hoIterMax = (int)val;
6223  return CTX::instance()->mesh.hoIterMax;
6224 }
6225 
6227 {
6228  if(action & GMSH_SET) CTX::instance()->mesh.hoPassMax = (int)val;
6229  return CTX::instance()->mesh.hoPassMax;
6230 }
6231 
6233 {
6234  if(action & GMSH_SET) {
6235  double ratio = val;
6236  if(ratio <= -1.0)
6237  ratio = -0.999;
6238  else if(ratio >= 0.5)
6239  ratio = 0.499;
6240  CTX::instance()->mesh.hoPoissonRatio = ratio;
6241  }
6242  return CTX::instance()->mesh.hoPoissonRatio;
6243 }
6244 
6246 {
6247  if(action & GMSH_SET)
6248  CTX::instance()->mesh.hoNewFastCurvingAlgo = !(val == 0.);
6249  return CTX::instance()->mesh.hoNewFastCurvingAlgo ? 1. : 0.;
6250 }
6251 
6253 {
6254  if(action & GMSH_SET) CTX::instance()->mesh.hoCurveOuterBL = (int)val;
6255  return CTX::instance()->mesh.hoCurveOuterBL;
6256 }
6257 
6259 {
6260  if(action & GMSH_SET) CTX::instance()->mesh.hoMaxRho = val;
6261  return CTX::instance()->mesh.hoMaxRho;
6262 }
6263 
6265 {
6266  if(action & GMSH_SET) CTX::instance()->mesh.hoMaxAngle = val;
6267  return CTX::instance()->mesh.hoMaxAngle;
6268 }
6269 
6271 {
6272  if(action & GMSH_SET) CTX::instance()->mesh.hoMaxInnerAngle = val;
6274 }
6275 
6277 {
6278  if(action & GMSH_SET) CTX::instance()->mesh.hoFixBndNodes = val;
6279  return CTX::instance()->mesh.hoFixBndNodes;
6280 }
6281 
6283 {
6284  if(action & GMSH_SET) {
6285  if(!(action & GMSH_SET_DEFAULT) &&
6286  (int)val != CTX::instance()->mesh.secondOrderLinear)
6288  CTX::instance()->mesh.secondOrderLinear = (int)val;
6289  }
6291 }
6292 
6294 {
6295  if(action & GMSH_SET) {
6296  if(!(action & GMSH_SET_DEFAULT) &&
6297  (int)val != CTX::instance()->mesh.secondOrderIncomplete)
6300  }
6301 #if defined(HAVE_FLTK)
6302  if(FlGui::available() && (action & GMSH_GUI))
6303  FlGui::instance()->options->mesh.butt[4]->value(
6304  CTX::instance()->mesh.secondOrderIncomplete);
6305 #endif
6307 }
6308 
6310 {
6311  if(action & GMSH_SET) {
6312  int value = std::min((int)val, 4);
6313  CTX::instance()->mesh.cgnsImportOrder = value;
6314  }
6316 }
6317 
6319 {
6320  if(action & GMSH_SET) {
6321  CTX::instance()->mesh.cgnsImportIgnoreBC = (int)val;
6322  }
6324 }
6325 
6327 {
6328  if(action & GMSH_SET) {
6330  }
6332 }
6333 
6335 {
6336  if(action & GMSH_SET) {
6338  }
6340 }
6341 
6343 {
6344  if(action & GMSH_SET) {
6345  CTX::instance()->mesh.cgnsExportCPEX0045 = (int)val;
6346  }
6348 }
6349 
6351 {
6352  if(action & GMSH_SET) {
6353  CTX::instance()->mesh.cgnsExportStructured = (int)val;
6354  }
6356 }
6357 
6359 {
6360  if(action & GMSH_SET) { CTX::instance()->mesh.dual = (int)val; }
6361  return CTX::instance()->mesh.dual;
6362 }
6363 
6365 {
6366  if(action & GMSH_SET) { CTX::instance()->mesh.voronoi = (int)val; }
6367  return CTX::instance()->mesh.voronoi;
6368 }
6369 
6371 {
6372  if(action & GMSH_SET) { CTX::instance()->mesh.drawSkinOnly = (int)val; }
6373  return CTX::instance()->mesh.drawSkinOnly;
6374 }
6375 
6377 {
6378  if(action & GMSH_SET) CTX::instance()->mesh.saveAll = (int)val;
6379  return CTX::instance()->mesh.saveAll;
6380 }
6381 
6383 {
6384  if(action & GMSH_SET) CTX::instance()->mesh.saveElementTagType = (int)val;
6386 }
6387 
6389 {
6390  if(action & GMSH_SET) CTX::instance()->mesh.saveParametric = val ? 1 : 0;
6391  return CTX::instance()->mesh.saveParametric;
6392 }
6393 
6395 {
6396  if(action & GMSH_SET)
6397  CTX::instance()->mesh.saveWithoutOrphans = (int)val;
6399 }
6400 
6402 {
6403  if(action & GMSH_SET) CTX::instance()->mesh.saveTopology = val ? 1 : 0;
6404  return CTX::instance()->mesh.saveTopology;
6405 }
6406 
6408 {
6409  if(action & GMSH_SET) CTX::instance()->mesh.readGroupsOfElements = (int)val;
6411 }
6412 
6414 {
6415  if(action & GMSH_SET) CTX::instance()->mesh.saveGroupsOfElements = (int)val;
6417 }
6418 
6420 {
6421  if(action & GMSH_SET) CTX::instance()->mesh.saveGroupsOfNodes = (int)val;
6423 }
6424 
6426 {
6427  if(action & GMSH_SET) {
6428  // vertex arrays need to be regenerated only when we color by
6429  // element type or by partition
6430  if(CTX::instance()->mesh.colorCarousel != (int)val &&
6431  ((val == 0. || val == 3.) || CTX::instance()->pickElements))
6433  CTX::instance()->mesh.colorCarousel = (int)val;
6434  if(CTX::instance()->mesh.colorCarousel < 0 ||
6437  }
6438 #if defined(HAVE_FLTK)
6439  if(FlGui::available() && (action & GMSH_GUI)) {
6440  FlGui::instance()->options->mesh.choice[4]->value(
6441  CTX::instance()->mesh.colorCarousel);
6443  }
6444 #endif
6445  return CTX::instance()->mesh.colorCarousel;
6446 }
6447 
6449 {
6450  if(action & GMSH_SET) CTX::instance()->mesh.compoundClassify = (int)val;
6452 }
6453 
6455 {
6456  if(action & GMSH_SET) CTX::instance()->mesh.compoundLcFactor = val;
6458 }
6459 
6461 {
6462  if(action & GMSH_SET) CTX::instance()->mesh.randomSeed = (unsigned int)val;
6463  return CTX::instance()->mesh.randomSeed;
6464 }
6465 
6467 {
6468  if(action & GMSH_SET) CTX::instance()->mesh.switchElementTags = val ? 1 : 0;
6470 }
6471 
6473 {
6474  if(action & GMSH_SET) {
6475  CTX::instance()->mesh.zoneDefinition = (int)val;
6476  if((CTX::instance()->mesh.zoneDefinition < 0 ||
6477  CTX::instance()->mesh.zoneDefinition > 2) ||
6478  (CTX::instance()->mesh.zoneDefinition == 1))
6480  }
6481  return CTX::instance()->mesh.zoneDefinition;
6482 }
6483 
6484 #if !defined(HAVE_MESH)
6485 static void GetStatistics(double stat[50])
6486 {
6487  for(int i = 0; i < 50; i++) stat[i] = 0;
6488 }
6489 #endif
6490 
6492 {
6493  double s[50];
6494  GetStatistics(s);
6495  return s[4];
6496 }
6497 
6499 {
6500  double s[50];
6501  GetStatistics(s);
6502  return s[7];
6503 }
6504 
6506 {
6507  double s[50];
6508  GetStatistics(s);
6509  return s[8];
6510 }
6511 
6513 {
6514  double s[50];
6515  GetStatistics(s);
6516  return s[9];
6517 }
6518 
6520 {
6521  double s[50];
6522  GetStatistics(s);
6523  return s[10];
6524 }
6525 
6527 {
6528  double s[50];
6529  GetStatistics(s);
6530  return s[11];
6531 }
6532 
6534 {
6535  double s[50];
6536  GetStatistics(s);
6537  return s[12];
6538 }
6539 
6541 {
6542  double s[50];
6543  GetStatistics(s);
6544  return s[13];
6545 }
6546 
6548 {
6549  double s[50];
6550  GetStatistics(s);
6551  return s[14] + s[15] + s[16];
6552 }
6553 
6555 {
6556  if(action & GMSH_SET) {
6557  const int ival = std::max(0, (int)val);
6558  CTX::instance()->mesh.numPartitions = ival;
6559  CTX::instance()->mesh.metisAlgorithm = (ival <= 8) ? 1 : 2;
6560  }
6561  return CTX::instance()->mesh.numPartitions;
6562 }
6563 
6565 {
6566  if(action & GMSH_SET) CTX::instance()->mesh.metisAlgorithm = (int)val;
6567  return CTX::instance()->mesh.metisAlgorithm;
6568 }
6569 
6571 {
6572  if(action & GMSH_SET) CTX::instance()->mesh.metisEdgeMatching = (int)val;
6574 }
6575 
6577 {
6578  if(action & GMSH_SET)
6581 }
6582 
6584 {
6585  if(action & GMSH_SET) CTX::instance()->mesh.metisMaxLoadImbalance = val;
6587 }
6588 
6590 {
6591  if(action & GMSH_SET) CTX::instance()->mesh.metisObjective = (int)val;
6592  return CTX::instance()->mesh.metisObjective;
6593 }
6594 
6596 {
6597  if(action & GMSH_SET) CTX::instance()->mesh.metisMinConn = (int)val;
6598  return CTX::instance()->mesh.metisMinConn;
6599 }
6600 
6602 {
6603  if(action & GMSH_SET) CTX::instance()->mesh.clip = (int)val;
6604 #if defined(HAVE_FLTK)
6605  if(FlGui::available() && (action & GMSH_GUI))
6606  FlGui::instance()->clipping->resetBrowser();
6607 #endif
6608  return CTX::instance()->mesh.clip;
6609 }
6610 
6612 {
6613  if(action & GMSH_SET) CTX::instance()->mesh.preserveNumberingMsh2 = (int)val;
6615 }
6616 
6618 {
6619  if(action & GMSH_SET) CTX::instance()->mesh.ignorePeriodicityMsh2 = (int)val;
6621 }
6622 
6624 {
6625  if(action & GMSH_SET) CTX::instance()->mesh.maxIterDelaunay3D = (int)val;
6627 }
6628 
6630 {
6631  if(action & GMSH_SET) CTX::instance()->mesh.maxNumThreads1D = (int)val;
6633 }
6634 
6636 {
6637  if(action & GMSH_SET) CTX::instance()->mesh.maxNumThreads2D = (int)val;
6639 }
6640 
6642 {
6643  if(action & GMSH_SET) CTX::instance()->mesh.maxNumThreads3D = (int)val;
6645 }
6646 
6648 {
6649  if(action & GMSH_SET) {
6650  if(!(action & GMSH_SET_DEFAULT) &&
6651  val != CTX::instance()->mesh.angleToleranceFacetOverlap)
6654  }
6656 }
6657 
6659 {
6660  if(action & GMSH_SET) CTX::instance()->mesh.toleranceReferenceElement = val;
6662 }
6663 
6665 {
6666  if(action & GMSH_SET) CTX::instance()->mesh.unvStrictFormat = (int)val;
6668 }
6669 
6671 {
6672  if(action & GMSH_SET) CTX::instance()->mesh.reparamMaxTriangles = (int)val;
6674 }
6675 
6677 {
6678  if(action & GMSH_SET)
6681 }
6682 
6684 {
6685  if(action & GMSH_SET) CTX::instance()->mesh.quadqsSizemapMethod = (int)val;
6687 }
6688 
6690 {
6691  if(action & GMSH_SET)
6692  CTX::instance()->mesh.quadqsRemeshingBoldness = (double)val;
6694 }
6695 
6697 {
6698  if(action & GMSH_SET)
6701 }
6702 
6704  if(action & GMSH_SET) CTX::instance()->mesh.quadqsScalingOnTriangulation = (double)val;
6706 }
6707 
6709 {
6710  if(action & GMSH_SET)
6711  CTX::instance()->mesh.oldInitialDelaunay2D = (int)val;
6713 }
6714 
6716 {
6717  if(action & GMSH_SET) CTX::instance()->solver.listen = (int)val;
6718 #if defined(HAVE_FLTK)
6719  if(FlGui::available() && (action & GMSH_GUI))
6720  FlGui::instance()->options->solver.butt[0]->value(
6721  CTX::instance()->solver.listen);
6722 #endif
6723  return CTX::instance()->solver.listen;
6724 }
6725 
6727 {
6728  if(action & GMSH_SET) CTX::instance()->solver.timeout = val;
6729 #if defined(HAVE_FLTK)
6730  if(FlGui::available() && (action & GMSH_GUI))
6731  FlGui::instance()->options->solver.value[0]->value(
6732  CTX::instance()->solver.timeout);
6733 #endif
6734  return CTX::instance()->solver.timeout;
6735 }
6736 
6738 {
6739  if(action & GMSH_SET) CTX::instance()->solver.plugins = (int)val;
6740  return CTX::instance()->solver.plugins;
6741 }
6742 
6744 {
6745  if(action & GMSH_SET) CTX::instance()->solver.autoLoadDatabase = (int)val;
6747 }
6748 
6750 {
6751  if(action & GMSH_SET) CTX::instance()->solver.autoSaveDatabase = (int)val;
6753 }
6754 
6756 {
6757  if(action & GMSH_SET)
6760 }
6761 
6763 {
6764  if(action & GMSH_SET) CTX::instance()->solver.autoCheck = (int)val;
6765  return CTX::instance()->solver.autoCheck;
6766 }
6767 
6769 {
6770  if(action & GMSH_SET) CTX::instance()->solver.autoMesh = (int)val;
6771  return CTX::instance()->solver.autoMesh;
6772 }
6773 
6775 {
6776  if(action & GMSH_SET) CTX::instance()->solver.autoMergeFile = (int)val;
6778 }
6779 
6781 {
6782  if(action & GMSH_SET) CTX::instance()->solver.autoShowViews = (int)val;
6784 }
6785 
6787 {
6788  if(action & GMSH_SET) CTX::instance()->solver.autoShowLastStep = (int)val;
6790 }
6791 
6793 {
6794  if(action & GMSH_SET)
6797 }
6798 
6800 {
6801  if(action & GMSH_SET) CTX::instance()->post.horizontalScales = (int)val;
6802 #if defined(HAVE_FLTK)
6803  if(FlGui::available() && (action & GMSH_GUI))
6804  FlGui::instance()->options->post.butt[2]->value(
6806 #endif
6808 }
6809 
6811 {
6812  if(action & GMSH_SET) CTX::instance()->post.binary = (int)val;
6813  return CTX::instance()->post.binary;
6814 }
6815 
6817 {
6818  if(action & GMSH_SET) { CTX::instance()->post.link = (int)val; }
6819 #if defined(HAVE_FLTK)
6820  if(FlGui::available() && (action & GMSH_GUI)) {
6821  FlGui::instance()->options->post.choice[0]->value(
6822  CTX::instance()->post.link ? 1 : 0);
6823  }
6824 #endif
6825  return CTX::instance()->post.link;
6826 }
6827 
6829 {
6830  if(action & GMSH_SET) CTX::instance()->post.smooth = (int)val;
6831  return CTX::instance()->post.smooth;
6832 }
6833 
6835 {
6836  if(action & GMSH_SET)
6837  CTX::instance()->post.animDelay = (val >= 0.) ? val : 0.;
6838 #if defined(HAVE_FLTK)
6839  if(FlGui::available() && (action & GMSH_GUI))
6840  FlGui::instance()->options->post.value[0]->value(
6841  CTX::instance()->post.animDelay);
6842 #endif
6843  return CTX::instance()->post.animDelay;
6844 }
6845 
6847 {
6848  if(action & GMSH_SET) {
6849  CTX::instance()->post.animCycle = (int)val;
6850  if(CTX::instance()->post.animCycle < 0 ||
6851  CTX::instance()->post.animCycle > 2)
6852  CTX::instance()->post.animCycle = 0;
6853  }
6854 #if defined(HAVE_FLTK)
6855  if(FlGui::available() && (action & GMSH_GUI))
6856  FlGui::instance()->options->post.butt[0]->value(
6857  CTX::instance()->post.animCycle);
6858  if(FlGui::available())
6859  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
6860  FlGui::instance()->graph[i]->checkAnimButtons();
6861 #endif
6862  return CTX::instance()->post.animCycle;
6863 }
6864 
6866 {
6867  if(action & GMSH_SET) {
6868  CTX::instance()->post.animStep = (int)val;
6870  }
6871 #if defined(HAVE_FLTK)
6872  if(FlGui::available() && (action & GMSH_GUI))
6873  FlGui::instance()->options->post.value[1]->value(
6874  CTX::instance()->post.animStep);
6875 #endif
6876  return CTX::instance()->post.animStep;
6877 }
6878 
6880 {
6881  if(action & GMSH_SET) CTX::instance()->post.combineRemoveOrig = (int)val;
6882 #if defined(HAVE_FLTK)
6883  if(FlGui::available() && (action & GMSH_GUI))
6884  FlGui::instance()->options->post.butt[1]->value(
6886 #endif
6888 }
6889 
6891 {
6892  if(action & GMSH_SET) CTX::instance()->post.combineCopyOptions = (int)val;
6894 }
6895 
6897 {
6898  if(action & GMSH_SET) CTX::instance()->post.plugins = (int)val;
6899  return CTX::instance()->post.plugins;
6900 }
6901 
6903 {
6904 #if defined(HAVE_POST)
6905  return PView::list.size();
6906 #else
6907  return 0;
6908 #endif
6909 }
6910 
6912 {
6913  if(action & GMSH_SET) CTX::instance()->post.fileFormat = (int)val;
6914  return CTX::instance()->post.fileFormat;
6915 }
6916 
6918 {
6919  if(action & GMSH_SET) CTX::instance()->post.forceNodeData = (int)val;
6920  return CTX::instance()->post.forceNodeData;
6921 }
6922 
6924 {
6925  if(action & GMSH_SET) CTX::instance()->post.forceElementData = (int)val;
6927 }
6928 
6930 {
6931  if(action & GMSH_SET) CTX::instance()->post.saveMesh = (int)val;
6932  return CTX::instance()->post.saveMesh;
6933 }
6934 
6936 {
6937  if(action & GMSH_SET)
6940 }
6941 
6943 {
6944  if(action & GMSH_SET) CTX::instance()->post.doubleClickedGraphPointX = val;
6946 }
6947 
6949 {
6950  if(action & GMSH_SET) CTX::instance()->post.doubleClickedGraphPointY = val;
6952 }
6953 
6955 {
6956  if(action & GMSH_SET) CTX::instance()->post.doubleClickedView = (int)val;
6958 }
6959 
6961 {
6962 #if defined(HAVE_POST)
6963  GET_VIEWd(0.);
6964  if(!data) return 1;
6965 #if defined(HAVE_FLTK)
6966  if(_gui_action_valid(action, num))
6967  FlGui::instance()->options->view.value[50]->maximum(
6968  data->getNumTimeSteps() - 1);
6969  if(FlGui::available())
6970  for(std::size_t i = 0; i < FlGui::instance()->graph.size(); i++)
6971  FlGui::instance()->graph[i]->checkAnimButtons();
6972 #endif
6973  return data->getNumTimeSteps();
6974 #else
6975  return 0.;
6976 #endif
6977 }
6978 
6980 {
6981 #if defined(HAVE_POST)
6982  GET_VIEWd(0.);
6983  if(!data) return 0;
6984  int n = 0;
6985  for(int i = 0; i < data->getNumTimeSteps(); i++)
6986  if(data->hasTimeStep(i)) n++;
6987  return n;
6988 #else
6989  return 0.;
6990 #endif
6991 }
6992 
6994 {
6995 #if defined(HAVE_POST)
6996  GET_VIEW(0.);
6997  if(action & GMSH_SET) {
6998  opt->timeStep = (int)val;
6999  if(data) {
7000  if(opt->timeStep > data->getNumTimeSteps() - 1)
7001  opt->timeStep = 0;
7002  else if(opt->timeStep < 0)
7003  opt->timeStep = data->getNumTimeSteps() - 1;
7004  if(data->getAdaptiveData())
7005  data->getAdaptiveData()->changeResolution(
7006  opt->timeStep, opt->maxRecursionLevel, opt->targetError);
7007  opt->currentTime = data->getTime(opt->timeStep);
7008  }
7009  if(view) view->setChanged(true);
7010  }
7011 #if defined(HAVE_FLTK)
7012  if(_gui_action_valid(action, num))
7013  FlGui::instance()->options->view.value[50]->value(opt->timeStep);
7014 #endif
7015  return opt->timeStep;
7016 #else
7017  return 0.;
7018 #endif
7019 }
7020 
7022 {
7023 #if defined(HAVE_POST)
7024  GET_VIEW(0.);
7025  if(data && (action & GMSH_SET)) {
7026  if(val >= 0.) {
7027  // if negative (the default), don't do anything so that we do not compete
7028  // with timestep
7029  double dt_min = std::numeric_limits<double>::max();
7030  int step = 0;
7031  for(int i = 0; i < data->getNumTimeSteps(); i++) {
7032  double dt = std::abs(data->getTime(i) - val);
7033  if(dt < dt_min) {
7034  step = i;
7035  dt_min = std::min(dt_min, dt);
7036  }
7037  }
7038  opt_view_timestep(num, action, step);
7039  }
7040  }
7041  return opt->currentTime;
7042 #else
7043  return 0.;
7044 #endif
7045 }
7046 
7048 {
7049 #if defined(HAVE_POST)
7050  GET_VIEWd(0.);
7051  if(!data) return 0.;
7052  // use adaptive data if available
7053  return view->getData(true)->getMin();
7054 #else
7055  return 0.;
7056 #endif
7057 }
7058 
7060 {
7061 #if defined(HAVE_POST)
7062  GET_VIEWd(0.);
7063  if(!data) return 0.;
7064  // use adaptive data if available
7065  return view->getData(true)->getMax();
7066 #else
7067  return 0.;
7068 #endif
7069 }
7070 
7072 {
7073 #if defined(HAVE_POST)
7074  GET_VIEW(0.);
7075  if(!data) return 0.;
7076  int tensorRep = (opt->tensorType == PViewOptions::VonMises) ?
7077  0 :
7078  (opt->tensorType == PViewOptions::MaxEigenValue) ? 1 : 2;
7079  return data->getMin(opt->timeStep, true, tensorRep, opt->forceNumComponents,
7080  opt->componentMap);
7081 #else
7082  return 0.;
7083 #endif
7084 }
7085 
7087 {
7088 #if defined(HAVE_POST)
7089  GET_VIEW(0.);
7090  if(!data) return 0.;
7091  int tensorRep = (opt->tensorType == PViewOptions::VonMises) ?
7092  0 :
7093  (opt->tensorType == PViewOptions::MinEigenValue) ? 2 : 1;
7094  return data->getMax(opt->timeStep, true, tensorRep, opt->forceNumComponents,
7095  opt->componentMap);
7096 #else
7097  return 0.;
7098 #endif
7099 }
7100 
7102 {
7103 #if defined(HAVE_POST)
7104  GET_VIEWo(0.);
7105  if(action & GMSH_SET) {
7106  opt->customMin = val;
7107  if(view) view->setChanged(true);
7108  }
7109 #if defined(HAVE_FLTK)
7110  if(_gui_action_valid(action, num)) {
7111  FlGui::instance()->options->view.value[31]->value(opt->customMin);
7112  }
7113 #endif
7114  return opt->customMin;
7115 #else
7116  return 0.;
7117 #endif
7118 }
7119 
7121 {
7122 #if defined(HAVE_POST)
7123  GET_VIEWo(0.);
7124  if(action & GMSH_SET) {
7125  opt->customMax = val;
7126  if(view) view->setChanged(true);
7127  }
7128 #if defined(HAVE_FLTK)
7129  if(_gui_action_valid(action, num))
7130  FlGui::instance()->options->view.value[32]->value(opt->customMax);
7131 #endif
7132  return opt->customMax;
7133 #else
7134  return 0.;
7135 #endif
7136 }
7137 
7139 {
7140 #if defined(HAVE_POST)
7141  GET_VIEWo(0.);
7142  if(action & GMSH_SET) {
7143  opt->customAbscissaMin = val;
7144  if(view) view->setChanged(true);
7145  }
7146  return opt->customAbscissaMin;
7147 #else
7148  return 0.;
7149 #endif
7150 }
7151 
7153 {
7154 #if defined(HAVE_POST)
7155  GET_VIEWo(0.);
7156  if(action & GMSH_SET) {
7157  opt->customAbscissaMax = val;
7158  if(view) view->setChanged(true);
7159  }
7160  return opt->customAbscissaMax;
7161 #else
7162  return 0.;
7163 #endif
7164 }
7165 
7167 {
7168 #if defined(HAVE_POST)
7169  GET_VIEWd(0.);
7170  if(!data) return 0.;
7171  return data->getBoundingBox().min().x();
7172 #else
7173  return 0.;
7174 #endif
7175 }
7176 
7178 {
7179 #if defined(HAVE_POST)
7180  GET_VIEWd(0.);
7181  if(!data) return 0.;
7182  return data->getBoundingBox().max().x();
7183 #else
7184  return 0.;
7185 #endif
7186 }
7187 
7189 {
7190 #if defined(HAVE_POST)
7191  GET_VIEWd(0.);
7192  if(!data) return 0.;
7193  return data->getBoundingBox().min().y();
7194 #else
7195  return 0.;
7196 #endif
7197 }
7198 
7200 {
7201 #if defined(HAVE_POST)
7202  GET_VIEWd(0.);
7203  if(!data) return 0.;
7204  return data->getBoundingBox().max().y();
7205 #else
7206  return 0.;
7207 #endif
7208 }
7209 
7211 {
7212 #if defined(HAVE_POST)
7213  GET_VIEWd(0.);
7214  if(!data) return 0.;
7215  return data->getBoundingBox().min().z();
7216 #else
7217  return 0.;
7218 #endif
7219 }
7220 
7222 {
7223 #if defined(HAVE_POST)
7224  GET_VIEWd(0.);
7225  if(!data) return 0.;
7226  return data->getBoundingBox().max().z();
7227 #else
7228  return 0.;
7229 #endif
7230 }
7231 
7233 {
7234 #if defined(HAVE_POST)
7235  GET_VIEWo(0.);
7236  if(action & GMSH_SET) {
7237  opt->offset[0] = val;
7238  if(view) view->setChanged(true);
7239  }
7240 #if defined(HAVE_FLTK)
7241  if(_gui_action_valid(action, num))
7242  FlGui::instance()->options->view.value[40]->value(opt->offset[0]);
7243 #endif
7244  return opt->offset[0];
7245 #else
7246  return 0.;
7247 #endif
7248 }
7249 
7251 {
7252 #if defined(HAVE_POST)
7253  GET_VIEWo(0.);
7254  if(action & GMSH_SET) {
7255  opt->offset[1] = val;
7256  if(view) view->setChanged(true);
7257  }
7258 #if defined(HAVE_FLTK)
7259  if(_gui_action_valid(action, num))
7260  FlGui::instance()->options->view.value[41]->value(opt->offset[1]);
7261 #endif
7262  return opt->offset[1];
7263 #else
7264  return 0.;
7265 #endif
7266 }
7267 
7269 {
7270 #if defined(HAVE_POST)
7271  GET_VIEWo(0.);
7272  if(action & GMSH_SET) {
7273  opt->offset[2] = val;
7274  if(view) view->setChanged(true);
7275  }
7276 #if defined(HAVE_FLTK)
7277  if(_gui_action_valid(action, num))
7278  FlGui::instance()->options->view.value[42]->value(opt->offset[2]);
7279 #endif
7280  return opt->offset[2];
7281 #else
7282  return 0.;
7283 #endif
7284 }
7285 
7287 {
7288 #if defined(HAVE_POST)
7289  GET_VIEWo(0.);
7290  if(action & GMSH_SET) {
7291  opt->raise[0] = val;
7292  if(view) view->setChanged(true);
7293  }
7294 #if defined(HAVE_FLTK)
7295  if(_gui_action_valid(action, num))
7296  FlGui::instance()->options->view.value[43]->value(opt->raise[0]);
7297 #endif
7298  return opt->raise[0];
7299 #else
7300  return 0.;
7301 #endif
7302 }
7303 
7305 {
7306 #if defined(HAVE_POST)
7307  GET_VIEWo(0.);
7308  if(action & GMSH_SET) {
7309  opt->raise[1] = val;
7310  if(view) view->setChanged(true);
7311  }
7312 #if defined(HAVE_FLTK)
7313  if(_gui_action_valid(action, num))
7314  FlGui::instance()->options->view.value[44]->value(opt->raise[1]);
7315 #endif
7316  return opt->raise[1];
7317 #else
7318  return 0.;
7319 #endif
7320 }
7321 
7323 {
7324 #if defined(HAVE_POST)
7325  GET_VIEWo(0.);
7326  if(action & GMSH_SET) {
7327  opt->raise[2] = val;
7328  if(view) view->setChanged(true);
7329  }
7330 #if defined(HAVE_FLTK)
7331  if(_gui_action_valid(action, num))
7332  FlGui::instance()->options->view.value[45]->value(opt->raise[2]);
7333 #endif
7334  return opt->raise[2];
7335 #else
7336  return 0.;
7337 #endif
7338 }
7339 
7341 {
7342 #if defined(HAVE_POST)
7343  GET_VIEWo(0.);
7344  if(action & GMSH_SET) {
7345  opt->normalRaise = val;
7346  if(view) view->setChanged(true);
7347  }
7348 #if defined(HAVE_FLTK)
7349  if(_gui_action_valid(action, num))
7350  FlGui::instance()->options->view.value[46]->value(opt->normalRaise);
7351 #endif
7352  return opt->normalRaise;
7353 #else
7354  return 0.;
7355 #endif
7356 }
7357 
7359 {
7360 #if defined(HAVE_POST)
7361  GET_VIEWo(0.);
7362  if(action & GMSH_SET) {
7363  opt->transform[0][0] = val;
7364  if(view) view->setChanged(true);
7365  }
7366 #if defined(HAVE_FLTK)
7367  if(_gui_action_valid(action, num))
7368  FlGui::instance()->options->view.value[51]->value(opt->transform[0][0]);
7369 #endif
7370  return opt->transform[0][0];
7371 #else
7372  return 0.;
7373 #endif
7374 }
7375 
7377 {
7378 #if defined(HAVE_POST)
7379  GET_VIEWo(0.);
7380  if(action & GMSH_SET) {
7381  opt->transform[0][1] = val;
7382  if(view) view->setChanged(true);
7383  }
7384 #if defined(HAVE_FLTK)
7385  if(_gui_action_valid(action, num))
7386  FlGui::instance()->options->view.value[52]->value(opt->transform[0][1]);
7387 #endif
7388  return opt->transform[0][1];
7389 #else
7390  return 0.;
7391 #endif
7392 }
7393 
7395 {
7396 #if defined(HAVE_POST)
7397  GET_VIEWo(0.);
7398  if(action & GMSH_SET) {
7399  opt->transform[0][2] = val;
7400  if(view) view->setChanged(true);
7401  }
7402 #if defined(HAVE_FLTK)
7403  if(_gui_action_valid(action, num))
7404  FlGui::instance()->options->view.value[53]->value(opt->transform[0][2]);
7405 #endif
7406  return opt->transform[0][2];
7407 #else
7408  return 0.;
7409 #endif
7410 }
7411 
7413 {
7414 #if defined(HAVE_POST)
7415  GET_VIEWo(0.);
7416  if(action & GMSH_SET) {
7417  opt->transform[1][0] = val;
7418  if(view) view->setChanged(true);
7419  }
7420 #if defined(HAVE_FLTK)
7421  if(_gui_action_valid(action, num))
7422  FlGui::instance()->options->view.value[54]->value(opt->transform[1][0]);
7423 #endif
7424  return opt->transform[1][0];
7425 #else
7426  return 0.;
7427 #endif
7428 }
7429 
7431 {
7432 #if defined(HAVE_POST)
7433  GET_VIEWo(0.);
7434  if(action & GMSH_SET) {
7435  opt->transform[1][1] = val;
7436  if(view) view->setChanged(true);
7437  }
7438 #if defined(HAVE_FLTK)
7439  if(_gui_action_valid(action, num))
7440  FlGui::instance()->options->view.value[55]->value(opt->transform[1][1]);
7441 #endif
7442  return opt->transform[1][1];
7443 #else
7444  return 0.;
7445 #endif
7446 }
7447 
7449 {
7450 #if defined(HAVE_POST)
7451  GET_VIEWo(0.);
7452  if(action & GMSH_SET) {
7453  opt->transform[1][2] = val;
7454  if(view) view->setChanged(true);
7455  }
7456 #if defined(HAVE_FLTK)
7457  if(_gui_action_valid(action, num))
7458  FlGui::instance()->options->view.value[56]->value(opt->transform[1][2]);
7459 #endif
7460  return opt->transform[1][2];
7461 #else
7462  return 0.;
7463 #endif
7464 }
7465 
7467 {
7468 #if defined(HAVE_POST)
7469  GET_VIEWo(0.);
7470  if(action & GMSH_SET) {
7471  opt->transform[2][0] = val;
7472  if(view) view->setChanged(true);
7473  }
7474 #if defined(HAVE_FLTK)
7475  if(_gui_action_valid(action, num))
7476  FlGui::instance()->options->view.value[57]->value(opt->transform[2][0]);
7477 #endif
7478  return opt->transform[2][0];
7479 #else
7480  return 0.;
7481 #endif
7482 }
7483 
7485 {
7486 #if defined(HAVE_POST)
7487  GET_VIEWo(0.);
7488  if(action & GMSH_SET) {
7489  opt->transform[2][1] = val;
7490  if(view) view->setChanged(true);
7491  }
7492 #if defined(HAVE_FLTK)
7493  if(_gui_action_valid(action, num))
7494  FlGui::instance()->options->view.value[58]->value(opt->transform[2][1]);
7495 #endif
7496  return opt->transform[2][1];
7497 #else
7498  return 0.;
7499 #endif
7500 }
7501 
7503 {
7504 #if defined(HAVE_POST)
7505  GET_VIEWo(0.);
7506  if(action & GMSH_SET) {
7507  opt->transform[2][2] = val;
7508  if(view) view->setChanged(true);
7509  }
7510 #if defined(HAVE_FLTK)
7511  if(_gui_action_valid(action, num))
7512  FlGui::instance()->options->view.value[59]->value(opt->transform[2][2]);
7513 #endif
7514  return opt->transform[2][2];
7515 #else
7516  return 0.;
7517 #endif
7518 }
7519 
7521 {
7522 #if defined(HAVE_POST)
7523  GET_VIEWo(0.);
7524  if(action & GMSH_SET) { opt->arrowSizeMin = val; }
7525 #if defined(HAVE_FLTK)
7526  if(_gui_action_valid(action, num))
7527  FlGui::instance()->options->view.value[64]->value(opt->arrowSizeMin);
7528 #endif
7529  return opt->arrowSizeMin;
7530 #else
7531  return 0.;
7532 #endif
7533 }
7534 
7536 {
7537 #if defined(HAVE_POST)
7538  GET_VIEWo(0.);
7539  if(action & GMSH_SET) { opt->arrowSizeMax = val; }
7540 #if defined(HAVE_FLTK)
7541  if(_gui_action_valid(action, num))
7542  FlGui::instance()->options->view.value[60]->value(opt->arrowSizeMax);
7543 #endif
7544  return opt->arrowSizeMax;
7545 #else
7546  return 0.;
7547 #endif
7548 }
7549 
7551 {
7552 #if defined(HAVE_POST)
7553  GET_VIEWo(0.);
7554  if(action & GMSH_SET) { opt->normals = val; }
7555 #if defined(HAVE_FLTK)
7556  if(_gui_action_valid(action, num))
7557  FlGui::instance()->options->view.value[0]->value(opt->normals);
7558 #endif
7559  return opt->normals;
7560 #else
7561  return 0.;
7562 #endif
7563 }
7564 
7566 {
7567 #if defined(HAVE_POST)
7568  GET_VIEWo(0.);
7569  if(action & GMSH_SET) { opt->tangents = val; }
7570 #if defined(HAVE_FLTK)
7571  if(_gui_action_valid(action, num))
7572  FlGui::instance()->options->view.value[1]->value(opt->tangents);
7573 #endif
7574  return opt->tangents;
7575 #else
7576  return 0.;
7577 #endif
7578 }
7579 
7581 {
7582 #if defined(HAVE_POST)
7583  GET_VIEWo(0.);
7584  if(action & GMSH_SET) {
7585  opt->displacementFactor = val;
7586  if(view) view->setChanged(true);
7587  }
7588 #if defined(HAVE_FLTK)
7589  if(_gui_action_valid(action, num))
7590  FlGui::instance()->options->view.value[63]->value(opt->displacementFactor);
7591 #endif
7592  return opt->displacementFactor;
7593 #else
7594  return 0.;
7595 #endif
7596 }
7597 
7599 {
7600 #if defined(HAVE_POST)
7601  GET_VIEWo(0.);
7602  if(action & GMSH_SET) {
7603  opt->fakeTransparency = (int)val;
7604  if(view) view->setChanged(true);
7605  }
7606 #if defined(HAVE_FLTK)
7607  if(_gui_action_valid(action, num))
7608  FlGui::instance()->options->view.butt[24]->value(opt->fakeTransparency);
7609 #endif
7610  return opt->fakeTransparency;
7611 #else
7612  return 0.;
7613 #endif
7614 }
7615 
7617 {
7618 #if defined(HAVE_POST)
7619  GET_VIEWo(0.);
7620  if(action & GMSH_SET) {
7621  opt->explode = val;
7622  if(view) view->setChanged(true);
7623  }
7624 #if defined(HAVE_FLTK)
7625  if(_gui_action_valid(action, num))
7626  FlGui::instance()->options->view.value[12]->value(opt->explode);
7627 #endif
7628  return opt->explode;
7629 #else
7630  return 0.;
7631 #endif
7632 }
7633 
7635 {
7636 #if defined(HAVE_POST)
7637  GET_VIEWo(0.);
7638  if(action & GMSH_SET) { opt->visible = (int)val; }
7639 #if defined(HAVE_FLTK)
7640  if(FlGui::available() && (action & GMSH_GUI) && num >= 0 &&
7641  FlGui::instance()->onelab->getViewButton(num))
7642  FlGui::instance()->onelab->getViewButton(num)->value(opt->visible);
7643 #endif
7644  return opt->visible;
7645 #else
7646  return 0.;
7647 #endif
7648 }
7649 
7651 {
7652 #if defined(HAVE_POST)
7653  GET_VIEWo(0.);
7654  if(action & GMSH_SET) {
7655  opt->intervalsType = (int)val;
7656  if(opt->intervalsType < 1 || opt->intervalsType > 4) opt->intervalsType = 1;
7657  if(view) view->setChanged(true);
7658  }
7659 #if defined(HAVE_FLTK)
7660  if(_gui_action_valid(action, num)) {
7661  FlGui::instance()->options->view.choice[0]->value(opt->intervalsType - 1);
7662  }
7663 #endif
7664  return opt->intervalsType;
7665 #else
7666  return 0.;
7667 #endif
7668 }
7669 
7671 {
7672 #if defined(HAVE_POST)
7673  GET_VIEWo(0.);
7674  if(action & GMSH_SET) {
7675  opt->saturateValues = (int)val;
7676  if(view) view->setChanged(true);
7677  }
7678 #if defined(HAVE_FLTK)
7679  if(_gui_action_valid(action, num)) {
7680  FlGui::instance()->options->view.butt[38]->value(opt->saturateValues);
7681  }
7682 #endif
7683  return opt->saturateValues;
7684 #else
7685  return 0.;
7686 #endif
7687 }
7688 
7690 {
7691 #if defined(HAVE_POST)
7692  GET_VIEW(0.);
7693  if(action & GMSH_SET) {
7694  opt->adaptVisualizationGrid = (int)val;
7695  if(data) {
7696  if(opt->adaptVisualizationGrid)
7697  data->initAdaptiveData(opt->timeStep, opt->maxRecursionLevel,
7698  opt->targetError);
7699  else
7700  data->destroyAdaptiveData();
7701  view->setChanged(true);
7702  }
7703  }
7704 #if defined(HAVE_FLTK)
7705  if(_gui_action_valid(action, num)) {
7706  FlGui::instance()->options->view.butt[0]->value(
7707  opt->adaptVisualizationGrid);
7708  FlGui::instance()->options->activate("view_adaptive");
7709  }
7710 #endif
7711  return opt->adaptVisualizationGrid;
7712 #else
7713  return 0.;
7714 #endif
7715 }
7716 
7718 {
7719 #if defined(HAVE_POST)
7720  GET_VIEW(0.);
7721  if(action & GMSH_SET) {
7722  opt->maxRecursionLevel = (int)val;
7723  if(data && data->getAdaptiveData()) {
7724  data->getAdaptiveData()->changeResolution(
7725  opt->timeStep, opt->maxRecursionLevel, opt->targetError);
7726  view->setChanged(true);
7727  }
7728  }
7729 #if defined(HAVE_FLTK)
7730  if(_gui_action_valid(action, num)) {
7731  FlGui::instance()->options->view.value[33]->value(opt->maxRecursionLevel);
7732  }
7733 #endif
7734  return opt->maxRecursionLevel;
7735 #else
7736  return 0.;
7737 #endif
7738 }
7739 
7741 {
7742 #if defined(HAVE_POST)
7743  GET_VIEW(0.);
7744  if(action & GMSH_SET) {
7745  opt->targetError = val;
7746  if(data && data->getAdaptiveData()) {
7747  data->getAdaptiveData()->changeResolution(
7748  opt->timeStep, opt->maxRecursionLevel, opt->targetError);
7749  view->setChanged(true);
7750  }
7751  }
7752 #if defined(HAVE_FLTK)
7753  if(_gui_action_valid(action, num)) {
7754  FlGui::instance()->options->view.value[34]->value(opt->targetError);
7755  }
7756 #endif
7757  return opt->targetError;
7758 #else
7759  return 0.;
7760 #endif
7761 }
7762 
7764 {
7765 #if defined(HAVE_POST)
7766  GET_VIEWo(0.);
7767  if(action & GMSH_SET) {
7768  opt->type = (int)val;
7769  if(opt->type < 1 || opt->type > 4) opt->type = 1;
7770  if(view) view->setChanged(true);
7771  }
7772 #if defined(HAVE_FLTK)
7773  if(_gui_action_valid(action, num)) {
7774  FlGui::instance()->options->view.choice[13]->value(opt->type - 1);
7775  }
7776 #endif
7777  return opt->type;
7778 #else
7779  return 0.;
7780 #endif
7781 }
7782 
7784 {
7785 #if defined(HAVE_POST)
7786  GET_VIEWo(0.);
7787  if(action & GMSH_SET) {
7788  opt->autoPosition = (int)val;
7789  if(opt->autoPosition < 0 || opt->autoPosition > 12) opt->autoPosition = 0;
7790  }
7791 #if defined(HAVE_FLTK)
7792  if(_gui_action_valid(action, num)) {
7793  FlGui::instance()->options->view.choice[16]->value(opt->autoPosition);
7794  FlGui::instance()->options->activate("view_axes_auto_2d");
7795  }
7796 #endif
7797  return opt->autoPosition;
7798 #else
7799  return 0.;
7800 #endif
7801 }
7802 
7804 {
7805 #if defined(HAVE_POST)
7806  GET_VIEWo(0.);
7807  if(action & GMSH_SET) { opt->position[0] = val; }
7808 #if defined(HAVE_FLTK)
7809  if(_gui_action_valid(action, num))
7810  FlGui::instance()->options->view.value[20]->value(opt->position[0]);
7811 #endif
7812  return opt->position[0];
7813 #else
7814  return 0.;
7815 #endif
7816 }
7817 
7819 {
7820 #if defined(HAVE_POST)
7821  GET_VIEWo(0.);
7822  if(action & GMSH_SET) { opt->position[1] = val; }
7823 #if defined(HAVE_FLTK)
7824  if(_gui_action_valid(action, num))
7825  FlGui::instance()->options->view.value[21]->value(opt->position[1]);
7826 #endif
7827  return opt->position[1];
7828 #else
7829  return 0.;
7830 #endif
7831 }
7832 
7834 {
7835 #if defined(HAVE_POST)
7836  GET_VIEWo(0.);
7837  if(action & GMSH_SET) {
7838  opt->sampling = (int)val;
7839  if(view) view->setChanged(true);
7840  }
7841 #if defined(HAVE_FLTK)
7842  if(_gui_action_valid(action, num))
7843  FlGui::instance()->options->view.value[6]->value(opt->sampling);
7844 #endif
7845  return opt->sampling;
7846 #else
7847  return 1.;
7848 #endif
7849 }
7850 
7852 {
7853 #if defined(HAVE_POST)
7854  GET_VIEWo(0.);
7855  if(action & GMSH_SET) { opt->size[0] = val; }
7856 #if defined(HAVE_FLTK)
7857  if(_gui_action_valid(action, num))
7858  FlGui::instance()->options->view.value[22]->value(opt->size[0]);
7859 #endif
7860  return opt->size[0];
7861 #else
7862  return 0.;
7863 #endif
7864 }
7865 
7867 {
7868 #if defined(HAVE_POST)
7869  GET_VIEWo(0.);
7870  if(action & GMSH_SET) { opt->size[1] = val; }
7871 #if defined(HAVE_FLTK)
7872  if(_gui_action_valid(action, num))
7873  FlGui::instance()->options->view.value[23]->value(opt->size[1]);
7874 #endif
7875  return opt->size[1];
7876 #else
7877  return 0.;
7878 #endif
7879 }
7880 
7882 {
7883 #if defined(HAVE_POST)
7884  GET_VIEWo(0.);
7885  if(action & GMSH_SET) {
7886  opt->axes = (int)val;
7887  if(opt->axes < 0 || opt->axes > 5) opt->axes = 0;
7888  }
7889 #if defined(HAVE_FLTK)
7890  if(_gui_action_valid(action, num)) {
7891  FlGui::instance()->options->view.choice[8]->value(opt->axes);
7892  FlGui::instance()->options->activate("view_axes");
7893  }
7894 #endif
7895  return opt->axes;
7896 #else
7897  return 0.;
7898 #endif
7899 }
7900 
7902 {
7903 #if defined(HAVE_POST)
7904  GET_VIEWo(0.);
7905  if(action & GMSH_SET) { opt->axesMikado = (int)val; }
7906 #if defined(HAVE_FLTK)
7907  if(_gui_action_valid(action, num)) {
7908  FlGui::instance()->options->view.butt[3]->value(opt->axesMikado);
7909  }
7910 #endif
7911  return opt->axesMikado;
7912 #else
7913  return 0.;
7914 #endif
7915 }
7916 
7918 {
7919 #if defined(HAVE_POST)
7920  GET_VIEWo(0.);
7921  if(action & GMSH_SET) { opt->axesAutoPosition = (int)val; }
7922 #if defined(HAVE_FLTK)
7923  if(_gui_action_valid(action, num)) {
7924  FlGui::instance()->options->view.butt[25]->value(opt->axesAutoPosition);
7925  FlGui::instance()->options->activate("view_axes_auto_3d");
7926  }
7927 #endif
7928  return opt->axesAutoPosition;
7929 #else
7930  return 0.;
7931 #endif
7932 }
7933 
7935 {
7936 #if defined(HAVE_POST)
7937  GET_VIEWo(0.);
7938  if(action & GMSH_SET) { opt->axesPosition[0] = val; }
7939 #if defined(HAVE_FLTK)
7940  if(_gui_action_valid(action, num)) {
7941  FlGui::instance()->options->view.value[13]->value(opt->axesPosition[0]);
7942  }
7943 #endif
7944  return opt->axesPosition[0];
7945 #else
7946  return 0.;
7947 #endif
7948 }
7949 
7951 {
7952 #if defined(HAVE_POST)
7953  GET_VIEWo(0.);
7954  if(action & GMSH_SET) { opt->axesPosition[1] = val; }
7955 #if defined(HAVE_FLTK)
7956  if(_gui_action_valid(action, num)) {
7957  FlGui::instance()->options->view.value[16]->value(opt->axesPosition[1]);
7958  }
7959 #endif
7960  return opt->axesPosition[1];
7961 #else
7962  return 0.;
7963 #endif
7964 }
7965 
7967 {
7968 #if defined(HAVE_POST)
7969  GET_VIEWo(0.);
7970  if(action & GMSH_SET) { opt->axesPosition[2] = val; }
7971 #if defined(HAVE_FLTK)
7972  if(_gui_action_valid(action, num)) {
7973  FlGui::instance()->options->view.value[14]->value(opt->axesPosition[2]);
7974  }
7975 #endif
7976  return opt->axesPosition[2];
7977 #else
7978  return 0.;
7979 #endif
7980 }
7981 
7983 {
7984 #if defined(HAVE_POST)
7985  GET_VIEWo(0.);
7986  if(action & GMSH_SET) { opt->axesPosition[3] = val; }
7987 #if defined(HAVE_FLTK)
7988  if(_gui_action_valid(action, num)) {
7989  FlGui::instance()->options->view.value[17]->value(opt->axesPosition[3]);
7990  }
7991 #endif
7992  return opt->axesPosition[3];
7993 #else
7994  return 0.;
7995 #endif
7996 }
7997 
7999 {
8000 #if defined(HAVE_POST)
8001  GET_VIEWo(0.);
8002  if(action & GMSH_SET) { opt->axesPosition[4] = val; }
8003 #if defined(HAVE_FLTK)
8004  if(_gui_action_valid(action, num)) {
8005  FlGui::instance()->options->view.value[15]->value(opt->axesPosition[4]);
8006  }
8007 #endif
8008  return opt->axesPosition[4];
8009 #else
8010  return 0.;
8011 #endif
8012 }
8013 
8015 {
8016 #if defined(HAVE_POST)
8017  GET_VIEWo(0.);
8018  if(action & GMSH_SET) { opt->axesPosition[5] = val; }
8019 #if defined(HAVE_FLTK)
8020  if(_gui_action_valid(action, num)) {
8021  FlGui::instance()->options->view.value[18]->value(opt->axesPosition[5]);
8022  }
8023 #endif
8024  return opt->axesPosition[5];
8025 #else
8026  return 0.;
8027 #endif
8028 }
8029 
8031 {
8032 #if defined(HAVE_POST)
8033  GET_VIEWo(0.);
8034  if(action & GMSH_SET) { opt->axesTics[0] = val; }
8035 #if defined(HAVE_FLTK)
8036  if(_gui_action_valid(action, num)) {
8037  FlGui::instance()->options->view.value[3]->value(opt->axesTics[0]);
8038  }
8039 #endif
8040  return opt->axesTics[0];
8041 #else
8042  return 0.;
8043 #endif
8044 }
8045 
8047 {
8048 #if defined(HAVE_POST)
8049  GET_VIEWo(0.);
8050  if(action & GMSH_SET) { opt->axesTics[1] = val; }
8051 #if defined(HAVE_FLTK)
8052  if(_gui_action_valid(action, num)) {
8053  FlGui::instance()->options->view.value[4]->value(opt->axesTics[1]);
8054  }
8055 #endif
8056  return opt->axesTics[1];
8057 #else
8058  return 0.;
8059 #endif
8060 }
8061 
8063 {
8064 #if defined(HAVE_POST)
8065  GET_VIEWo(0.);
8066  if(action & GMSH_SET) { opt->axesTics[2] = val; }
8067 #if defined(HAVE_FLTK)
8068  if(_gui_action_valid(action, num)) {
8069  FlGui::instance()->options->view.value[5]->value(opt->axesTics[2]);
8070  }
8071 #endif
8072  return opt->axesTics[2];
8073 #else
8074  return 0.;
8075 #endif
8076 }
8077 
8079 {
8080 #if defined(HAVE_POST)
8081  GET_VIEWo(0.);
8082  if(action & GMSH_SET) {
8083  opt->nbIso = (int)val;
8084  if(view) view->setChanged(true);
8085  }
8086 #if defined(HAVE_FLTK)
8087  if(_gui_action_valid(action, num))
8088  FlGui::instance()->options->view.value[30]->value(opt->nbIso);
8089 #endif
8090  return opt->nbIso;
8091 #else
8092  return 0.;
8093 #endif
8094 }
8095 
8097 {
8098 #if defined(HAVE_POST)
8099  GET_VIEWo(0.);
8100  if(action & GMSH_SET) {
8101  opt->boundary = (int)val;
8102  if(opt->boundary < 0 || opt->boundary > 3) opt->boundary = 0;
8103  if(view) view->setChanged(true);
8104  }
8105 #if defined(HAVE_FLTK)
8106  if(_gui_action_valid(action, num)) {
8107  FlGui::instance()->options->view.choice[9]->value(opt->boundary);
8108  }
8109 #endif
8110  return opt->boundary;
8111 #else
8112  return 0.;
8113 #endif
8114 }
8115 
8117 {
8118 #if defined(HAVE_POST)
8119  GET_VIEWo(0.);
8120  if(action & GMSH_SET) {
8121  opt->light = (int)val;
8122  if(view) view->setChanged(true);
8123  }
8124 #if defined(HAVE_FLTK)
8125  if(_gui_action_valid(action, num)) {
8126  FlGui::instance()->options->view.butt[11]->value(opt->light);
8127  FlGui::instance()->options->activate("view_light");
8128  }
8129 #endif
8130  return opt->light;
8131 #else
8132  return 0.;
8133 #endif
8134 }
8135 
8137 {
8138 #if defined(HAVE_POST)
8139  GET_VIEWo(0.);
8140  if(action & GMSH_SET) { opt->lightTwoSide = (int)val; }
8141 #if defined(HAVE_FLTK)
8142  if(_gui_action_valid(action, num))
8143  FlGui::instance()->options->view.butt[9]->value(opt->lightTwoSide);
8144 #endif
8145  return opt->lightTwoSide;
8146 #else
8147  return 0.;
8148 #endif
8149 }
8150 
8152 {
8153 #if defined(HAVE_POST)
8154  GET_VIEWo(0.);
8155  if(action & GMSH_SET) { opt->lightLines = (int)val; }
8156 #if defined(HAVE_FLTK)
8157  if(_gui_action_valid(action, num))
8158  FlGui::instance()->options->view.butt[8]->value(opt->lightLines);
8159 #endif
8160  return opt->lightLines;
8161 #else
8162  return 0.;
8163 #endif
8164 }
8165 
8167 {
8168 #if defined(HAVE_POST)
8169  GET_VIEWo(0.);
8170  if(action & GMSH_SET) {
8171  opt->smoothNormals = (int)val;
8172  if(view) view->setChanged(true);
8173  }
8174 #if defined(HAVE_FLTK)
8175  if(_gui_action_valid(action, num))
8176  FlGui::instance()->options->view.butt[12]->value(opt->smoothNormals);
8177 #endif
8178  return opt->smoothNormals;
8179 #else
8180  return 0.;
8181 #endif
8182 }
8183 
8185 {
8186 #if defined(HAVE_POST)
8187  GET_VIEWo(0.);
8188  if(action & GMSH_SET) {
8189  opt->angleSmoothNormals = val;
8190  if(view) view->setChanged(true);
8191  }
8192 #if defined(HAVE_FLTK)
8193  if(_gui_action_valid(action, num))
8194  FlGui::instance()->options->view.value[10]->value(opt->angleSmoothNormals);
8195 #endif
8196  return opt->angleSmoothNormals;
8197 #else
8198  return 0.;
8199 #endif
8200 }
8201 
8203 {
8204 #if defined(HAVE_POST)
8205  GET_VIEWo(0.);
8206  if(action & GMSH_SET) {
8207  opt->showElement = (int)val;
8208  if(view) view->setChanged(true);
8209  }
8210 #if defined(HAVE_FLTK)
8211  if(_gui_action_valid(action, num))
8212  FlGui::instance()->options->view.butt[10]->value(opt->showElement);
8213 #endif
8214  return opt->showElement;
8215 #else
8216  return 0.;
8217 #endif
8218 }
8219 
8221 {
8222 #if defined(HAVE_POST)
8223  GET_VIEWo(0.);
8224  if(action & GMSH_SET) {
8225  opt->showTime = (int)val;
8226  if(opt->showTime < 0 || opt->showTime > 7) opt->showTime = 0;
8227  }
8228 #if defined(HAVE_FLTK)
8229  if(_gui_action_valid(action, num))
8230  FlGui::instance()->options->view.choice[12]->value(opt->showTime);
8231 #endif
8232  return opt->showTime;
8233 #else
8234  return 0.;
8235 #endif
8236 }
8237 
8239 {
8240 #if defined(HAVE_POST)
8241  GET_VIEWo(0.);
8242  if(action & GMSH_SET) { opt->showScale = (int)val; }
8243 #if defined(HAVE_FLTK)
8244  if(_gui_action_valid(action, num))
8245  FlGui::instance()->options->view.butt[4]->value(opt->showScale);
8246 #endif
8247  return opt->showScale;
8248 #else
8249  return 0.;
8250 #endif
8251 }
8252 
8254 {
8255 #if defined(HAVE_POST)
8256  GET_VIEWo(0.);
8257  if(action & GMSH_SET) { opt->drawStrings = (int)val; }
8258 #if defined(HAVE_FLTK)
8259  if(_gui_action_valid(action, num))
8260  FlGui::instance()->options->view.butt[5]->value(opt->drawStrings);
8261 #endif
8262  return opt->drawStrings;
8263 #else
8264  return 0.;
8265 #endif
8266 }
8267 
8269 {
8270 #if defined(HAVE_POST)
8271  GET_VIEWo(0.);
8272  if(action & GMSH_SET) {
8273  opt->drawPoints = (int)val;
8274  if(view) view->setChanged(true);
8275  }
8276 #if defined(HAVE_FLTK)
8277  if(_gui_action_valid(action, num)) {
8278  if(opt->drawPoints)
8279  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[0]
8280  .set();
8281  else
8282  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[0]
8283  .clear();
8284  }
8285 #endif
8286  return opt->drawPoints;
8287 #else
8288  return 0.;
8289 #endif
8290 }
8291 
8293 {
8294 #if defined(HAVE_POST)
8295  GET_VIEWo(0.);
8296  if(action & GMSH_SET) {
8297  opt->drawLines = (int)val;
8298  if(view) view->setChanged(true);
8299  }
8300 #if defined(HAVE_FLTK)
8301  if(_gui_action_valid(action, num)) {
8302  if(opt->drawLines)
8303  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[1]
8304  .set();
8305  else
8306  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[1]
8307  .clear();
8308  }
8309 #endif
8310  return opt->drawLines;
8311 #else
8312  return 0.;
8313 #endif
8314 }
8315 
8317 {
8318 #if defined(HAVE_POST)
8319  GET_VIEWo(0.);
8320  if(action & GMSH_SET) {
8321  opt->drawTriangles = (int)val;
8322  if(view) view->setChanged(true);
8323  }
8324 #if defined(HAVE_FLTK)
8325  if(_gui_action_valid(action, num)) {
8326  if(opt->drawTriangles)
8327  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[2]
8328  .set();
8329  else
8330  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[2]
8331  .clear();
8332  }
8333 #endif
8334  return opt->drawTriangles;
8335 #else
8336  return 0.;
8337 #endif
8338 }
8339 
8341 {
8342 #if defined(HAVE_POST)
8343  GET_VIEWo(0.);
8344  if(action & GMSH_SET) {
8345  opt->drawQuadrangles = (int)val;
8346  if(view) view->setChanged(true);
8347  }
8348 #if defined(HAVE_FLTK)
8349  if(_gui_action_valid(action, num)) {
8350  if(opt->drawQuadrangles)
8351  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[3]
8352  .set();
8353  else
8354  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[3]
8355  .clear();
8356  }
8357 #endif
8358  return opt->drawQuadrangles;
8359 #else
8360  return 0.;
8361 #endif
8362 }
8363 
8365 {
8366 #if defined(HAVE_POST)
8367  GET_VIEWo(0.);
8368  if(action & GMSH_SET) {
8369  opt->drawTetrahedra = (int)val;
8370  if(view) view->setChanged(true);
8371  }
8372 #if defined(HAVE_FLTK)
8373  if(_gui_action_valid(action, num)) {
8374  if(opt->drawTetrahedra)
8375  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[4]
8376  .set();
8377  else
8378  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[4]
8379  .clear();
8380  }
8381 #endif
8382  return opt->drawTetrahedra;
8383 #else
8384  return 0.;
8385 #endif
8386 }
8387 
8389 {
8390 #if defined(HAVE_POST)
8391  GET_VIEWo(0.);
8392  if(action & GMSH_SET) {
8393  opt->drawHexahedra = (int)val;
8394  if(view) view->setChanged(true);
8395  }
8396 #if defined(HAVE_FLTK)
8397  if(_gui_action_valid(action, num)) {
8398  if(opt->drawHexahedra)
8399  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[5]
8400  .set();
8401  else
8402  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[5]
8403  .clear();
8404  }
8405 #endif
8406  return opt->drawHexahedra;
8407 #else
8408  return 0.;
8409 #endif
8410 }
8411 
8413 {
8414 #if defined(HAVE_POST)
8415  GET_VIEWo(0.);
8416  if(action & GMSH_SET) {
8417  opt->drawPrisms = (int)val;
8418  if(view) view->setChanged(true);
8419  }
8420 #if defined(HAVE_FLTK)
8421  if(_gui_action_valid(action, num)) {
8422  if(opt->drawPrisms)
8423  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[6]
8424  .set();
8425  else
8426  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[6]
8427  .clear();
8428  }
8429 #endif
8430  return opt->drawPrisms;
8431 #else
8432  return 0.;
8433 #endif
8434 }
8435 
8437 {
8438 #if defined(HAVE_POST)
8439  GET_VIEWo(0.);
8440  if(action & GMSH_SET) {
8441  opt->drawPyramids = (int)val;
8442  if(view) view->setChanged(true);
8443  }
8444 #if defined(HAVE_FLTK)
8445  if(_gui_action_valid(action, num)) {
8446  if(opt->drawPyramids)
8447  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[7]
8448  .set();
8449  else
8450  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[7]
8451  .clear();
8452  }
8453 #endif
8454  return opt->drawPyramids;
8455 #else
8456  return 0.;
8457 #endif
8458 }
8459 
8461 {
8462 #if defined(HAVE_POST)
8463  GET_VIEWo(0.);
8464  if(action & GMSH_SET) {
8465  opt->drawTrihedra = (int)val;
8466  if(view) view->setChanged(true);
8467  }
8468 #if defined(HAVE_FLTK)
8469  if(_gui_action_valid(action, num)) {
8470  if(opt->drawTrihedra)
8471  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[8]
8472  .set();
8473  else
8474  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[1]->menu())[8]
8475  .clear();
8476  }
8477 #endif
8478  return opt->drawTrihedra;
8479 #else
8480  return 0.;
8481 #endif
8482 }
8483 
8485 {
8486 #if defined(HAVE_POST)
8487  GET_VIEWo(0.);
8488  if(action & GMSH_SET) {
8489  opt->drawScalars = (int)val;
8490  if(view) view->setChanged(true);
8491  }
8492 #if defined(HAVE_FLTK)
8493  if(_gui_action_valid(action, num)) {
8494  if(opt->drawScalars)
8495  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[0]->menu())[0]
8496  .set();
8497  else
8498  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[0]->menu())[0]
8499  .clear();
8500  }
8501 #endif
8502  return opt->drawScalars;
8503 #else
8504  return 0.;
8505 #endif
8506 }
8507 
8509 {
8510 #if defined(HAVE_POST)
8511  GET_VIEWo(0.);
8512  if(action & GMSH_SET) {
8513  opt->drawVectors = (int)val;
8514  if(view) view->setChanged(true);
8515  }
8516 #if defined(HAVE_FLTK)
8517  if(_gui_action_valid(action, num)) {
8518  if(opt->drawVectors)
8519  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[0]->menu())[1]
8520  .set();
8521  else
8522  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[0]->menu())[1]
8523  .clear();
8524  }
8525 #endif
8526  return opt->drawVectors;
8527 #else
8528  return 0.;
8529 #endif
8530 }
8531 
8533 {
8534 #if defined(HAVE_POST)
8535  GET_VIEWo(0.);
8536  if(action & GMSH_SET) {
8537  opt->drawTensors = (int)val;
8538  if(view) view->setChanged(true);
8539  }
8540 #if defined(HAVE_FLTK)
8541  if(_gui_action_valid(action, num)) {
8542  if(opt->drawTensors)
8543  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[0]->menu())[2]
8544  .set();
8545  else
8546  ((Fl_Menu_Item *)FlGui::instance()->options->view.menu[0]->menu())[2]
8547  .clear();
8548  }
8549 #endif
8550  return opt->drawTensors;
8551 #else
8552  return 0.;
8553 #endif
8554 }
8555 
8557 {
8558 #if defined(HAVE_POST)
8559  GET_VIEWo(0.);
8560  if(action & GMSH_SET) {
8561  opt->drawSkinOnly = (int)val;
8562  if(view) view->setChanged(true);
8563  }
8564 #if defined(HAVE_FLTK)
8565  if(_gui_action_valid(action, num))
8566  FlGui::instance()->options->view.butt[2]->value(opt->drawSkinOnly);
8567 #endif
8568  return opt->drawSkinOnly;
8569 #else
8570  return 0.;
8571 #endif
8572 }
8573 
8575 {
8576 #if defined(HAVE_POST)
8577  GET_VIEWo(0.);
8578  if(action & GMSH_SET) {
8579  opt->scaleType = (int)val;
8580  if(opt->scaleType < 1 || opt->scaleType > 3) opt->scaleType = 1;
8581  if(view) view->setChanged(true);
8582  }
8583 #if defined(HAVE_FLTK)
8584  if(_gui_action_valid(action, num)) {
8585  FlGui::instance()->options->view.choice[1]->value(opt->scaleType - 1);
8586  }
8587 #endif
8588  return opt->scaleType;
8589 #else
8590  return 0.;
8591 #endif
8592 }
8593 
8595 {
8596 #if defined(HAVE_POST)
8597  GET_VIEWo(0.);
8598  if(action & GMSH_SET) {
8599  opt->rangeType = (int)val;
8600  if(opt->rangeType < 1 || opt->rangeType > 3) opt->rangeType = 1;
8601  if(view) view->setChanged(true);
8602  }
8603 #if defined(HAVE_FLTK)
8604  if(_gui_action_valid(action, num)) {
8605  FlGui::instance()->options->view.choice[7]->value(opt->rangeType - 1);
8606  FlGui::instance()->options->activate("custom_range");
8607  }
8608 #endif
8609  return opt->rangeType;
8610 #else
8611  return 0.;
8612 #endif
8613 }
8614 
8616 {
8617 #if defined(HAVE_POST)
8618  GET_VIEWo(0.);
8619  if(action & GMSH_SET) {
8620  opt->abscissaRangeType = (int)val;
8621  if(opt->abscissaRangeType < 1 || opt->abscissaRangeType > 3)
8622  opt->abscissaRangeType = 1;
8623  if(view) view->setChanged(true);
8624  }
8625  return opt->abscissaRangeType;
8626 #else
8627  return 0.;
8628 #endif
8629 }
8630 
8632 {
8633 #if defined(HAVE_POST)
8634  GET_VIEWo(0.);
8635  if(action & GMSH_SET) {
8636  opt->tensorType = (int)val;
8637  if(opt->tensorType > 7 || opt->tensorType < 1) opt->tensorType = 1;
8638  if(view) view->setChanged(true);
8639  }
8640 #if defined(HAVE_FLTK)
8641  if(_gui_action_valid(action, num)) {
8642  FlGui::instance()->options->view.choice[4]->value(opt->tensorType - 1);
8643  }
8644 #endif
8645  return opt->tensorType;
8646 #else
8647  return 0.;
8648 #endif
8649 }
8650 
8652 {
8653 #if defined(HAVE_POST)
8654  GET_VIEWo(0.);
8655  if(action & GMSH_SET) {
8656  opt->vectorType = (int)val;
8657  if(opt->vectorType < 1 || opt->vectorType > 6) opt->vectorType = 1;
8658  if(view) view->setChanged(true);
8659  }
8660 #if defined(HAVE_FLTK)
8661  if(_gui_action_valid(action, num)) {
8662  FlGui::instance()->options->view.choice[2]->value(opt->vectorType - 1);
8663  }
8664 #endif
8665  return opt->vectorType;
8666 #else
8667  return 0.;
8668 #endif
8669 }
8670 
8672 {
8673 #if defined(HAVE_POST)
8674  GET_VIEWo(0.);
8675  if(action & GMSH_SET) {
8676  opt->glyphLocation = (int)val;
8677  if(opt->glyphLocation < 1 || opt->glyphLocation > 2) opt->glyphLocation = 1;
8678  if(view) view->setChanged(true);
8679  }
8680 #if defined(HAVE_FLTK)
8681  if(_gui_action_valid(action, num)) {
8682  FlGui::instance()->options->view.choice[3]->value(opt->glyphLocation - 1);
8683  }
8684 #endif
8685  return opt->glyphLocation;
8686 #else
8687  return 0.;
8688 #endif
8689 }
8690 
8692 {
8693 #if defined(HAVE_POST)
8694  GET_VIEWo(0.);
8695  if(action & GMSH_SET) {
8696  opt->centerGlyphs = (int)val;
8697  if(opt->centerGlyphs < 0 || opt->centerGlyphs > 2) opt->glyphLocation = 0;
8698  if(view) view->setChanged(true);
8699  }
8700 #if defined(HAVE_FLTK)
8701  if(_gui_action_valid(action, num)) {
8702  FlGui::instance()->options->view.choice[15]->value(opt->centerGlyphs);
8703  }
8704 #endif
8705  return opt->centerGlyphs;
8706 #else
8707  return 0.;
8708 #endif
8709 }
8710 
8712 {
8713 #if defined(HAVE_POST)
8714  GET_VIEWo(0.);
8715  if(action & GMSH_SET) { opt->pointSize = val; }
8716 #if defined(HAVE_FLTK)
8717  if(_gui_action_valid(action, num))
8718  FlGui::instance()->options->view.value[61]->value(opt->pointSize);
8719 #endif
8720  return opt->pointSize;
8721 #else
8722  return 0.;
8723 #endif
8724 }
8725 
8727 {
8728 #if defined(HAVE_POST)
8729  GET_VIEWo(0.);
8730  if(action & GMSH_SET) { opt->lineWidth = val; }
8731 #if defined(HAVE_FLTK)
8732  if(_gui_action_valid(action, num))
8733  FlGui::instance()->options->view.value[62]->value(opt->lineWidth);
8734 #endif
8735  return opt->lineWidth;
8736 #else
8737  return 0.;
8738 #endif
8739 }
8740 
8742 {
8743 #if defined(HAVE_POST)
8744  GET_VIEWo(0.);
8745  if(action & GMSH_SET) {
8746  opt->pointType = (int)val;
8747  if(opt->pointType < 0 || opt->pointType > 3) opt->pointType = 0;
8748  if(view) view->setChanged(true);
8749  }
8750 #if defined(HAVE_FLTK)
8751  if(_gui_action_valid(action, num)) {
8752  FlGui::instance()->options->view.choice[5]->value(opt->pointType);
8753  }
8754 #endif
8755  return opt->pointType;
8756 #else
8757  return 0.;
8758 #endif
8759 }
8760 
8762 {
8763 #if defined(HAVE_POST)
8764  GET_VIEWo(0.);
8765  if(action & GMSH_SET) {
8766  opt->lineType = (int)val;
8767  if(opt->lineType < 0 || opt->lineType > 2) opt->lineType = 0;
8768  if(view) view->setChanged(true);
8769  }
8770 #if defined(HAVE_FLTK)
8771  if(_gui_action_valid(action, num)) {
8772  FlGui::instance()->options->view.choice[6]->value(opt->lineType);
8773  }
8774 #endif
8775  return opt->lineType;
8776 #else
8777  return 0.;
8778 #endif
8779 }
8780 
8782 {
8783 #if defined(HAVE_POST)
8784  GET_VIEWo(0.);
8785  if(action & GMSH_SET) {
8786  opt->colorTable.dpar[COLORTABLE_ALPHA] = val;
8787  ColorTable_Recompute(&opt->colorTable);
8788  if(view) view->setChanged(true);
8789  }
8790 #if defined(HAVE_FLTK)
8791  if(_gui_action_valid(action, num)) {
8792  FlGui::instance()->options->view.colorbar->redraw();
8793  }
8794 #endif
8795  return opt->colorTable.dpar[COLORTABLE_ALPHA];
8796 #else
8797  return 0.;
8798 #endif
8799 }
8800 
8802 {
8803 #if defined(HAVE_POST)
8804  GET_VIEWo(0.);
8805  if(action & GMSH_SET) {
8806  opt->colorTable.dpar[COLORTABLE_ALPHAPOW] = val;
8807  ColorTable_Recompute(&opt->colorTable);
8808  if(view) view->setChanged(true);
8809  }
8810 #if defined(HAVE_FLTK)
8811  if(_gui_action_valid(action, num)) {
8812  FlGui::instance()->options->view.colorbar->redraw();
8813  }
8814 #endif
8815  return opt->colorTable.dpar[COLORTABLE_ALPHAPOW];
8816 #else
8817  return 0.;
8818 #endif
8819 }
8820 
8822 {
8823 #if defined(HAVE_POST)
8824  GET_VIEWo(0.);
8825  if(action & GMSH_SET) {
8826  opt->colorTable.dpar[COLORTABLE_BETA] = val;
8827  ColorTable_Recompute(&opt->colorTable);
8828  if(view) view->setChanged(true);
8829  }
8830 #if defined(HAVE_FLTK)
8831  if(_gui_action_valid(action, num)) {
8832  FlGui::instance()->options->view.colorbar->redraw();
8833  }
8834 #endif
8835  return opt->colorTable.dpar[COLORTABLE_BETA];
8836 #else
8837  return 0.;
8838 #endif
8839 }
8840 
8842 {
8843 #if defined(HAVE_POST)
8844  GET_VIEWo(0.);
8845  if(action & GMSH_SET) {
8846  opt->colorTable.dpar[COLORTABLE_BIAS] = val;
8847  ColorTable_Recompute(&opt->colorTable);
8848  if(view) view->setChanged(true);
8849  }
8850 #if defined(HAVE_FLTK)
8851  if(_gui_action_valid(action, num)) {
8852  FlGui::instance()->options->view.colorbar->redraw();
8853  }
8854 #endif
8855  return opt->colorTable.dpar[COLORTABLE_BIAS];
8856 #else
8857  return 0.;
8858 #endif
8859 }
8860 
8862 {
8863 #if defined(HAVE_POST)
8864  GET_VIEWo(0.);
8865  if(action & GMSH_SET) {
8866  opt->colorTable.dpar[COLORTABLE_CURVATURE] = val;
8867  ColorTable_Recompute(&opt->colorTable);
8868  if(view) view->setChanged(true);
8869  }
8870 #if defined(HAVE_FLTK)
8871  if(_gui_action_valid(action, num)) {
8872  FlGui::instance()->options->view.colorbar->redraw();
8873  }
8874 #endif
8875  return opt->colorTable.dpar[COLORTABLE_CURVATURE];
8876 #else
8877  return 0.;
8878 #endif
8879 }
8880 
8882 {
8883 #if defined(HAVE_POST)
8884  GET_VIEWo(0.);
8885  if(action & GMSH_SET) {
8886  opt->colorTable.ipar[COLORTABLE_INVERT] = (int)val;
8887  ColorTable_Recompute(&opt->colorTable);
8888  if(view) view->setChanged(true);
8889  }
8890 #if defined(HAVE_FLTK)
8891  if(_gui_action_valid(action, num)) {
8892  FlGui::instance()->options->view.colorbar->redraw();
8893  }
8894 #endif
8895  return opt->colorTable.ipar[COLORTABLE_INVERT];
8896 #else
8897  return 0.;
8898 #endif
8899 }
8900 
8902 {
8903 #if defined(HAVE_POST)
8904  GET_VIEWo(0.);
8905  if(action & GMSH_SET) {
8906  int n = (int)val;
8907  if(n < 0) n = 24;
8908  if(n > 24) n = 0;
8909  opt->colorTable.ipar[COLORTABLE_NUMBER] = n;
8910  ColorTable_Recompute(&opt->colorTable);
8911  if(view) view->setChanged(true);
8912  }
8913 #if defined(HAVE_FLTK)
8914  if(_gui_action_valid(action, num)) {
8915  FlGui::instance()->options->view.colorbar->redraw();
8916  }
8917 #endif
8918  return opt->colorTable.ipar[COLORTABLE_NUMBER];
8919 #else
8920  return 0.;
8921 #endif
8922 }
8923 
8925 {
8926 #if defined(HAVE_POST)
8927  GET_VIEWo(0.);
8928  if(action & GMSH_SET) {
8929  opt->colorTable.ipar[COLORTABLE_ROTATION] = (int)val;
8930  ColorTable_Recompute(&opt->colorTable);
8931  if(view) view->setChanged(true);
8932  }
8933 #if defined(HAVE_FLTK)
8934  if(_gui_action_valid(action, num)) {
8935  FlGui::instance()->options->view.colorbar->redraw();
8936  }
8937 #endif
8938  return opt->colorTable.ipar[COLORTABLE_ROTATION];
8939 #else
8940  return 0.;
8941 #endif
8942 }
8943 
8945 {
8946 #if defined(HAVE_POST)
8947  GET_VIEWo(0.);
8948  if(action & GMSH_SET) {
8949  opt->colorTable.ipar[COLORTABLE_SWAP] = (int)val;
8950  ColorTable_Recompute(&opt->colorTable);
8951  if(view) view->setChanged(true);
8952  }
8953 #if defined(HAVE_FLTK)
8954  if(_gui_action_valid(action, num)) {
8955  FlGui::instance()->options->view.colorbar->redraw();
8956  }
8957 #endif
8958  return opt->colorTable.ipar[COLORTABLE_SWAP];
8959 #else
8960  return 0.;
8961 #endif
8962 }
8963 
8965 {
8966 #if defined(HAVE_POST)
8967  GET_VIEWo(0.);
8968  if(action & GMSH_SET) {
8969  opt->externalViewIndex = (int)val;
8970  if(view) view->setChanged(true);
8971  }
8972 #if defined(HAVE_FLTK)
8973  if(_gui_action_valid(action, num)) {
8974  // warning: Fl_Choice::size() returns number of items+1
8975  int item = opt->externalViewIndex + 1;
8976  if(item > -1 &&
8977  item < FlGui::instance()->options->view.choice[10]->size() - 1)
8978  FlGui::instance()->options->view.choice[10]->value(item);
8979  else
8980  FlGui::instance()->options->view.choice[10]->value(0);
8981  }
8982 #endif
8983  return opt->externalViewIndex;
8984 #else
8985  return 0.;
8986 #endif
8987 }
8988 
8990 {
8991 #if defined(HAVE_POST)
8992  GET_VIEWo(0.);
8993  if(action & GMSH_SET) {
8994  opt->viewIndexForGenRaise = (int)val;
8995  if(view) view->setChanged(true);
8996  }
8997 #if defined(HAVE_FLTK)
8998  if(_gui_action_valid(action, num)) {
8999  // warning: Fl_Choice::size() returns number of items+1
9000  int item = opt->viewIndexForGenRaise + 1;
9001  if(item > -1 &&
9002  item < FlGui::instance()->options->view.choice[11]->size() - 1)
9003  FlGui::instance()->options->view.choice[11]->value(item);
9004  else
9005  FlGui::instance()->options->view.choice[11]->value(0);
9006  }
9007 #endif
9008  return opt->viewIndexForGenRaise;
9009 #else
9010  return 0.;
9011 #endif
9012 }
9013 
9015 {
9016 #if defined(HAVE_POST)
9017  GET_VIEWo(0.);
9018  if(action & GMSH_SET) {
9019  opt->genRaiseFactor = val;
9020  if(view) view->setChanged(true);
9021  }
9022 #if defined(HAVE_FLTK)
9023  if(_gui_action_valid(action, num))
9024  FlGui::instance()->options->view.value[2]->value(opt->genRaiseFactor);
9025 #endif
9026  return opt->genRaiseFactor;
9027 #else
9028  return 0.;
9029 #endif
9030 }
9031 
9033 {
9034 #if defined(HAVE_POST)
9035  GET_VIEWo(0.);
9036  if(action & GMSH_SET) {
9037  opt->useGenRaise = (int)val;
9038  if(view) view->setChanged(true);
9039  }
9040 #if defined(HAVE_FLTK)
9041  if(_gui_action_valid(action, num)) {
9042  FlGui::instance()->options->view.butt[6]->value(opt->useGenRaise);
9043  FlGui::instance()->options->activate("view_general_transform");
9044  }
9045 #endif
9046  return opt->useGenRaise;
9047 #else
9048  return 0.;
9049 #endif
9050 }
9051 
9053 {
9054 #if defined(HAVE_POST)
9055  GET_VIEWo(0.);
9056  if(action & GMSH_SET) { opt->useStipple = (int)val; }
9057 #if defined(HAVE_FLTK)
9058  if(_gui_action_valid(action, num)) {
9059  FlGui::instance()->options->view.butt[26]->value(opt->useStipple);
9060  }
9061 #endif
9062  return opt->useStipple;
9063 #else
9064  return 0.;
9065 #endif
9066 }
9067 
9069 {
9070 #if defined(HAVE_POST)
9071  GET_VIEWo(0.);
9072  if(action & GMSH_SET) { opt->clip = (int)val; }
9073 #if defined(HAVE_FLTK)
9074  if(_gui_action_valid(action, num)) {
9075  FlGui::instance()->clipping->resetBrowser();
9076  }
9077 #endif
9078  return opt->clip;
9079 #else
9080  return 0.;
9081 #endif
9082 }
9083 
9085 {
9086 #if defined(HAVE_POST)
9087  GET_VIEWo(0.);
9088  if(action & GMSH_SET) {
9089  opt->forceNumComponents = (int)val;
9090  if(view) view->setChanged(true);
9091  }
9092 #if defined(HAVE_FLTK)
9093  if(_gui_action_valid(action, num)) {
9094  if(opt->forceNumComponents == 1)
9095  FlGui::instance()->options->view.choice[14]->value(1);
9096  else if(opt->forceNumComponents == 3)
9097  FlGui::instance()->options->view.choice[14]->value(2);
9098  else if(opt->forceNumComponents == 9)
9099  FlGui::instance()->options->view.choice[14]->value(3);
9100  else
9101  FlGui::instance()->options->view.choice[14]->value(0);
9102  }
9103 #endif
9104  return opt->forceNumComponents;
9105 #else
9106  return 0.;
9107 #endif
9108 }
9109 
9110 static double ovcm(OPT_ARGS_NUM, int nn)
9111 {
9112 #if defined(HAVE_POST)
9113  GET_VIEWo(0.);
9114  if(action & GMSH_SET) {
9115  opt->componentMap[nn] = (int)val;
9116  if(view) view->setChanged(true);
9117  }
9118 #if defined(HAVE_FLTK)
9119  if(_gui_action_valid(action, num)) {
9120  FlGui::instance()->options->view.value[70 + nn]->value(
9121  opt->componentMap[nn]);
9122  }
9123 #endif
9124  return opt->componentMap[nn];
9125 #else
9126  return 0.;
9127 #endif
9128 }
9129 
9131 {
9132  return ovcm(num, action, val, 0);
9133 }
9135 {
9136  return ovcm(num, action, val, 1);
9137 }
9139 {
9140  return ovcm(num, action, val, 2);
9141 }
9143 {
9144  return ovcm(num, action, val, 3);
9145 }
9147 {
9148  return ovcm(num, action, val, 4);
9149 }
9151 {
9152  return ovcm(num, action, val, 5);
9153 }
9155 {
9156  return ovcm(num, action, val, 6);
9157 }
9159 {
9160  return ovcm(num, action, val, 7);
9161 }
9163 {
9164  return ovcm(num, action, val, 8);
9165 }
9166 
9168 {
9169 #if defined(HAVE_POST)
9170  GET_VIEWo(0.);
9171  if(action & GMSH_SET) { opt->closed = (int)val; }
9172 #if defined(HAVE_FLTK)
9173  if(FlGui::available() && (action & GMSH_GUI) && num >= 0) {
9174  FlGui::instance()->onelab->openCloseViewButton(num);
9175  }
9176 #endif
9177  return opt->closed;
9178 #else
9179  return 0.;
9180 #endif
9181 }
9182 
9184 {
9185  if(action & GMSH_SET) CTX::instance()->print.fileFormat = (int)val;
9186  return CTX::instance()->print.fileFormat;
9187 }
9188 
9190 {
9191  if(action & GMSH_SET) CTX::instance()->print.epsCompress = (int)val;
9192  return CTX::instance()->print.epsCompress;
9193 }
9194 
9196 {
9197  if(action & GMSH_SET) CTX::instance()->print.epsPS3Shading = (int)val;
9198  return CTX::instance()->print.epsPS3Shading;
9199 }
9200 
9202 {
9203  if(action & GMSH_SET) CTX::instance()->print.epsQuality = (int)val;
9204  return CTX::instance()->print.epsQuality;
9205 }
9206 
9208 {
9209  if(action & GMSH_SET) CTX::instance()->print.epsOcclusionCulling = (int)val;
9211 }
9212 
9214 {
9215  if(action & GMSH_SET) CTX::instance()->print.epsBestRoot = (int)val;
9216  return CTX::instance()->print.epsBestRoot;
9217 }
9218 
9220 {
9221  if(action & GMSH_SET) CTX::instance()->print.epsLineWidthFactor = val;
9223 }
9224 
9226 {
9227  if(action & GMSH_SET) CTX::instance()->print.epsPointSizeFactor = val;
9229 }
9230 
9232 {
9233  if(action & GMSH_SET) CTX::instance()->print.jpegQuality = (int)val;
9234  return CTX::instance()->print.jpegQuality;
9235 }
9236 
9238 {
9239  if(action & GMSH_SET) CTX::instance()->print.jpegSmoothing = (int)val;
9240  return CTX::instance()->print.jpegSmoothing;
9241 }
9242 
9244 {
9245  if(action & GMSH_SET) CTX::instance()->print.geoLabels = (int)val;
9246  return CTX::instance()->print.geoLabels;
9247 }
9248 
9250 {
9251  if(action & GMSH_SET) CTX::instance()->print.geoOnlyPhysicals = (int)val;
9253 }
9254 
9256 {
9257  if(action & GMSH_SET) CTX::instance()->print.posElementary = (int)val;
9258  return CTX::instance()->print.posElementary;
9259 }
9260 
9262 {
9263  if(action & GMSH_SET) CTX::instance()->print.posElement = (int)val;
9264  return CTX::instance()->print.posElement;
9265 }
9266 
9268 {
9269  if(action & GMSH_SET) CTX::instance()->print.posGamma = (int)val;
9270  return CTX::instance()->print.posGamma;
9271 }
9272 
9274 {
9275  if(action & GMSH_SET) CTX::instance()->print.posEta = (int)val;
9276  return CTX::instance()->print.posEta;
9277 }
9278 
9280 {
9281  if(action & GMSH_SET) CTX::instance()->print.posSICN = (int)val;
9282  return CTX::instance()->print.posSICN;
9283 }
9284 
9286 {
9287  if(action & GMSH_SET) CTX::instance()->print.posSIGE = (int)val;
9288  return CTX::instance()->print.posSIGE;
9289 }
9290 
9292 {
9293  if(action & GMSH_SET) CTX::instance()->print.posDisto = (int)val;
9294  return CTX::instance()->print.posDisto;
9295 }
9296 
9298 {
9299  if(action & GMSH_SET) CTX::instance()->print.gifDither = (int)val;
9300  return CTX::instance()->print.gifDither;
9301 }
9302 
9304 {
9305  if(action & GMSH_SET) CTX::instance()->print.gifSort = (int)val;
9306  return CTX::instance()->print.gifSort;
9307 }
9308 
9310 {
9311  if(action & GMSH_SET) CTX::instance()->print.gifInterlace = (int)val;
9312  return CTX::instance()->print.gifInterlace;
9313 }
9314 
9316 {
9317  if(action & GMSH_SET) CTX::instance()->print.gifTransparent = (int)val;
9319 }
9320 
9322 {
9323  if(action & GMSH_SET) CTX::instance()->print.background = (int)val;
9324  return CTX::instance()->print.background;
9325 }
9326 
9328 {
9329  if(action & GMSH_SET) CTX::instance()->print.pgfTwoDim = (int)val;
9330  return CTX::instance()->print.pgfTwoDim;
9331 }
9333 {
9334  if(action & GMSH_SET) CTX::instance()->print.pgfExportAxis = (int)val;
9335  return CTX::instance()->print.pgfExportAxis;
9336 }
9338 {
9339  if(action & GMSH_SET) CTX::instance()->print.pgfHorizBar = (int)val;
9340  return CTX::instance()->print.pgfHorizBar;
9341 }
9342 
9344 {
9345  if(action & GMSH_SET) CTX::instance()->print.text = (int)val;
9346  return CTX::instance()->print.text;
9347 }
9348 
9350 {
9351  if(action & GMSH_SET) CTX::instance()->print.texAsEquation = (int)val;
9352  return CTX::instance()->print.texAsEquation;
9353 }
9354 
9356 {
9357  if(action & GMSH_SET) CTX::instance()->print.texForceFontSize = (int)val;
9359 }
9360 
9362 {
9363  if(action & GMSH_SET) CTX::instance()->print.texWidthInMm = val;
9364  return CTX::instance()->print.texWidthInMm;
9365 }
9366 
9368 {
9369  if(action & GMSH_SET) CTX::instance()->print.compositeWindows = (int)val;
9371 }
9372 
9374 {
9375  if(action & GMSH_SET) CTX::instance()->print.deleteTmpFiles = (int)val;
9377 }
9378 
9380 {
9381  if(action & GMSH_SET) CTX::instance()->print.height = (int)val;
9382  return CTX::instance()->print.height;
9383 }
9384 
9386 {
9387  if(action & GMSH_SET) CTX::instance()->print.width = (int)val;
9388  return CTX::instance()->print.width;
9389 }
9390 
9392 {
9393  if(action & GMSH_SET) CTX::instance()->print.parameter = val;
9394  return CTX::instance()->print.parameter;
9395 }
9396 
9398 {
9399  if(action & GMSH_SET) CTX::instance()->print.parameterFirst = val;
9401 }
9402 
9404 {
9405  if(action & GMSH_SET) CTX::instance()->print.parameterLast = val;
9406  return CTX::instance()->print.parameterLast;
9407 }
9408 
9410 {
9411  if(action & GMSH_SET) CTX::instance()->print.parameterSteps = val;
9413 }
9414 
9416 {
9417  if(action & GMSH_SET) CTX::instance()->print.x3dCompatibility = (int)val;
9419 }
9420 
9422 {
9423  if(action & GMSH_SET) CTX::instance()->print.x3dTransparency = val;
9425 }
9426 
9428 {
9429  if(action & GMSH_SET) CTX::instance()->print.x3dRemoveInnerBorders = (int)val;
9431 }
9432 
9434 {
9435  if(action & GMSH_SET) CTX::instance()->print.x3dPrecision = val;
9436  return CTX::instance()->print.x3dPrecision;
9437 }
9438 
9440 {
9441  if(action & GMSH_SET) CTX::instance()->print.x3dSurfaces = (int)val;
9442  return CTX::instance()->print.x3dSurfaces;
9443 }
9444 
9446 {
9447  if(action & GMSH_SET) CTX::instance()->print.x3dEdges = (int)val;
9448  return CTX::instance()->print.x3dEdges;
9449 }
9450 
9452 {
9453  if(action & GMSH_SET) CTX::instance()->print.x3dVertices = (int)val;
9454  return CTX::instance()->print.x3dVertices;
9455 }
9456 
9458 {
9459  if(action & GMSH_SET) CTX::instance()->print.x3dVolumes = (int)val;
9460  return CTX::instance()->print.x3dVolumes;
9461 }
9462 
9464 {
9465  if(action & GMSH_SET) CTX::instance()->print.x3dColorize = (int)val;
9466  return CTX::instance()->print.x3dColorize;
9467 }
9468 
9469 // Color option routines
9470 
9471 #if defined(HAVE_FLTK)
9472 
9473 #define CCC(col, but) \
9474  if(FlGui::available() && (action & GMSH_GUI)) { \
9475  Fl_Color c = \
9476  fl_color_cube(CTX::instance()->unpackRed(col) * FL_NUM_RED / 256, \
9477  CTX::instance()->unpackGreen(col) * FL_NUM_GREEN / 256, \
9478  CTX::instance()->unpackBlue(col) * FL_NUM_BLUE / 256); \
9479  (but)->color(c); \
9480  (but)->labelcolor(fl_contrast(FL_BLACK, c)); \
9481  (but)->redraw(); \
9482  }
9483 
9484 #endif
9485 
9487 {
9488  if(action & GMSH_SET) {
9489  CTX::instance()->color.bg = val;
9490 #if defined(HAVE_FLTK)
9491  if(FlGui::available()) FlGui::instance()->options->view.colorbar->redraw();
9492 #endif
9493  }
9494 #if defined(HAVE_FLTK)
9495  CCC(CTX::instance()->color.bg, FlGui::instance()->options->general.color[0]);
9496 #endif
9497  return CTX::instance()->color.bg;
9498 }
9499 
9501 {
9502  if(action & GMSH_SET) CTX::instance()->color.bgGrad = val;
9503 #if defined(HAVE_FLTK)
9504  CCC(CTX::instance()->color.bgGrad,
9505  FlGui::instance()->options->general.color[1]);
9506 #endif
9507  return CTX::instance()->color.bgGrad;
9508 }
9509 
9511 {
9512  if(action & GMSH_SET) CTX::instance()->color.fg = val;
9513 #if defined(HAVE_FLTK)
9514  CCC(CTX::instance()->color.fg, FlGui::instance()->options->general.color[2]);
9515 #endif
9516  return CTX::instance()->color.fg;
9517 }
9518 
9520 {
9521  if(action & GMSH_SET) CTX::instance()->color.text = val;
9522 #if defined(HAVE_FLTK)
9523  CCC(CTX::instance()->color.text,
9524  FlGui::instance()->options->general.color[3]);
9526 #endif
9527  return CTX::instance()->color.text;
9528 }
9529 
9531 {
9532  if(action & GMSH_SET) CTX::instance()->color.axes = val;
9533 #if defined(HAVE_FLTK)
9534  CCC(CTX::instance()->color.axes,
9535  FlGui::instance()->options->general.color[4]);
9537 #endif
9538  return CTX::instance()->color.axes;
9539 }
9540 
9542 {
9543  if(action & GMSH_SET) CTX::instance()->color.smallAxes = val;
9544 #if defined(HAVE_FLTK)
9545  CCC(CTX::instance()->color.smallAxes,
9546  FlGui::instance()->options->general.color[5]);
9548 #endif
9549  return CTX::instance()->color.smallAxes;
9550 }
9551 
9553 {
9554  if(action & GMSH_SET)
9555  for(int i = 0; i < 6; i++) CTX::instance()->color.ambientLight[i] = val;
9556 #if defined(HAVE_FLTK)
9557  CCC(CTX::instance()->color.ambientLight[0],
9558  FlGui::instance()->options->general.color[6]);
9559 #endif
9560  return CTX::instance()->color.ambientLight[0];
9561 }
9562 
9564 {
9565  if(action & GMSH_SET)
9566  for(int i = 0; i < 6; i++) CTX::instance()->color.diffuseLight[i] = val;
9567 #if defined(HAVE_FLTK)
9568  CCC(CTX::instance()->color.diffuseLight[0],
9569  FlGui::instance()->options->general.color[7]);
9570 #endif
9571  return CTX::instance()->color.diffuseLight[0];
9572 }
9573 
9575 {
9576  if(action & GMSH_SET)
9577  for(int i = 0; i < 6; i++) CTX::instance()->color.specularLight[i] = val;
9578 #if defined(HAVE_FLTK)
9579  CCC(CTX::instance()->color.specularLight[0],
9580  FlGui::instance()->options->general.color[8]);
9581 #endif
9582  return CTX::instance()->color.specularLight[0];
9583 }
9584 
9586 {
9587  if(action & GMSH_SET) CTX::instance()->color.geom.point = val;
9588 #if defined(HAVE_FLTK)
9589  CCC(CTX::instance()->color.geom.point,
9590  FlGui::instance()->options->geo.color[0]);
9591 #endif
9592  return CTX::instance()->color.geom.point;
9593 }
9594 
9596 {
9597  if(action & GMSH_SET) CTX::instance()->color.geom.curve = val;
9598 #if defined(HAVE_FLTK)
9599  CCC(CTX::instance()->color.geom.curve,
9600  FlGui::instance()->options->geo.color[1]);
9601 #endif
9602  return CTX::instance()->color.geom.curve;
9603 }
9604 
9606 {
9607  if(action & GMSH_SET) CTX::instance()->color.geom.surface = val;
9608 #if defined(HAVE_FLTK)
9609  CCC(CTX::instance()->color.geom.surface,
9610  FlGui::instance()->options->geo.color[2]);
9611 #endif
9612  return CTX::instance()->color.geom.surface;
9613 }
9614 
9616 {
9617  if(action & GMSH_SET) CTX::instance()->color.geom.volume = val;
9618 #if defined(HAVE_FLTK)
9619  CCC(CTX::instance()->color.geom.volume,
9620  FlGui::instance()->options->geo.color[3]);
9621 #endif
9622  return CTX::instance()->color.geom.volume;
9623 }
9624 
9626 {
9627  if(action & GMSH_SET) CTX::instance()->color.geom.selection = val;
9628 #if defined(HAVE_FLTK)
9629  CCC(CTX::instance()->color.geom.selection,
9630  FlGui::instance()->options->geo.color[4]);
9631 #endif
9632  return CTX::instance()->color.geom.selection;
9633 }
9634 
9636 {
9637  if(action & GMSH_SET) { CTX::instance()->color.geom.highlight[0] = val; }
9638 #if defined(HAVE_FLTK)
9639  CCC(CTX::instance()->color.geom.highlight[0],
9640  FlGui::instance()->options->geo.color[5]);
9641 #endif
9642  return CTX::instance()->color.geom.highlight[0];
9643 }
9644 
9646 {
9647  if(action & GMSH_SET) { CTX::instance()->color.geom.highlight[1] = val; }
9648 #if defined(HAVE_FLTK)
9649  CCC(CTX::instance()->color.geom.highlight[1],
9650  FlGui::instance()->options->geo.color[6]);
9651 #endif
9652  return CTX::instance()->color.geom.highlight[1];
9653 }
9654 
9656 {
9657  if(action & GMSH_SET) CTX::instance()->color.geom.highlight[2] = val;
9658 #if defined(HAVE_FLTK)
9659  CCC(CTX::instance()->color.geom.highlight[2],
9660  FlGui::instance()->options->geo.color[7]);
9661 #endif
9662  return CTX::instance()->color.geom.highlight[2];
9663 }
9664 
9666 {
9667  if(action & GMSH_SET) CTX::instance()->color.geom.tangents = val;
9668 #if defined(HAVE_FLTK)
9669  CCC(CTX::instance()->color.geom.tangents,
9670  FlGui::instance()->options->geo.color[8]);
9671 #endif
9672  return CTX::instance()->color.geom.tangents;
9673 }
9674 
9676 {
9677  if(action & GMSH_SET) CTX::instance()->color.geom.normals = val;
9678 #if defined(HAVE_FLTK)
9679  CCC(CTX::instance()->color.geom.normals,
9680  FlGui::instance()->options->geo.color[9]);
9681 #endif
9682  return CTX::instance()->color.geom.normals;
9683 }
9684 
9686 {
9687  if(action & GMSH_SET) { CTX::instance()->color.geom.projection = val; }
9688 #if defined(HAVE_FLTK)
9689  CCC(CTX::instance()->color.geom.projection,
9690  FlGui::instance()->options->geo.color[10]);
9691 #endif
9692  return CTX::instance()->color.geom.projection;
9693 }
9694 
9696 {
9697  if(action & GMSH_SET) { CTX::instance()->color.mesh.node = val; }
9698 #if defined(HAVE_FLTK)
9699  CCC(CTX::instance()->color.mesh.node,
9700  FlGui::instance()->options->mesh.color[0]);
9701 #endif
9702  return CTX::instance()->color.mesh.node;
9703 }
9704 
9706 {
9707  if(action & GMSH_SET) { CTX::instance()->color.mesh.nodeSup = val; }
9708 #if defined(HAVE_FLTK)
9709  CCC(CTX::instance()->color.mesh.nodeSup,
9710  FlGui::instance()->options->mesh.color[1]);
9711 #endif
9712  return CTX::instance()->color.mesh.nodeSup;
9713 }
9714 
9716 {
9717  if(action & GMSH_SET) {
9718  // vertex arrays need to be regenerated only when we color by
9719  // element type
9720  if(CTX::instance()->color.mesh.line != val &&
9723  CTX::instance()->color.mesh.line = val;
9724  }
9725 #if defined(HAVE_FLTK)
9726  CCC(CTX::instance()->color.mesh.line,
9727  FlGui::instance()->options->mesh.color[2]);
9728 #endif
9729  return CTX::instance()->color.mesh.line;
9730 }
9731 
9733 {
9734  if(action & GMSH_SET) {
9735  // vertex arrays need to be regenerated only when we color by
9736  // element type
9737  if(CTX::instance()->color.mesh.triangle != val &&
9740  CTX::instance()->color.mesh.triangle = val;
9741  }
9742 #if defined(HAVE_FLTK)
9743  CCC(CTX::instance()->color.mesh.triangle,
9744  FlGui::instance()->options->mesh.color[3]);
9745 #endif
9746  return CTX::instance()->color.mesh.triangle;
9747 }
9748 
9750 {
9751  if(action & GMSH_SET) {
9752  // vertex arrays need to be regenerated only when we color by
9753  // element type
9754  if(CTX::instance()->color.mesh.quadrangle != val &&
9757  CTX::instance()->color.mesh.quadrangle = val;
9758  }
9759 #if defined(HAVE_FLTK)
9760  CCC(CTX::instance()->color.mesh.quadrangle,
9761  FlGui::instance()->options->mesh.color[4]);
9762 #endif
9763  return CTX::instance()->color.mesh.quadrangle;
9764 }
9765 
9767 {
9768  if(action & GMSH_SET) {
9769  // vertex arrays need to be regenerated only when we color by
9770  // element type
9771  if(CTX::instance()->color.mesh.tetrahedron != val &&
9774  CTX::instance()->color.mesh.tetrahedron = val;
9775  }
9776 #if defined(HAVE_FLTK)
9777  CCC(CTX::instance()->color.mesh.tetrahedron,
9778  FlGui::instance()->options->mesh.color[5]);
9779 #endif
9780  return CTX::instance()->color.mesh.tetrahedron;
9781 }
9782 
9784 {
9785  if(action & GMSH_SET) {
9786  // vertex arrays need to be regenerated only when we color by
9787  // element type
9788  if(CTX::instance()->color.mesh.hexahedron != val &&
9791  CTX::instance()->color.mesh.hexahedron = val;
9792  }
9793 #if defined(HAVE_FLTK)
9794  CCC(CTX::instance()->color.mesh.hexahedron,
9795  FlGui::instance()->options->mesh.color[6]);
9796 #endif
9797  return CTX::instance()->color.mesh.hexahedron;
9798 }
9799 
9801 {
9802  if(action & GMSH_SET) {
9803  // vertex arrays need to be regenerated only when we color by
9804  // element type
9805  if(CTX::instance()->color.mesh.prism != val &&
9808  CTX::instance()->color.mesh.prism = val;
9809  }
9810 #if defined(HAVE_FLTK)
9811  CCC(CTX::instance()->color.mesh.prism,
9812  FlGui::instance()->options->mesh.color[7]);
9813 #endif
9814  return CTX::instance()->color.mesh.prism;
9815 }
9816 
9818 {
9819  if(action & GMSH_SET) {
9820  // vertex arrays need to be regenerated only when we color by
9821  // element type
9822  if(CTX::instance()->color.mesh.pyramid != val &&
9825  CTX::instance()->color.mesh.pyramid = val;
9826  }
9827 #if defined(HAVE_FLTK)
9828  CCC(CTX::instance()->color.mesh.pyramid,
9829  FlGui::instance()->options->mesh.color[8]);
9830 #endif
9831  return CTX::instance()->color.mesh.pyramid;
9832 }
9833 
9835 {
9836  if(action & GMSH_SET) {
9837  // vertex arrays need to be regenerated only when we color by
9838  // element type
9839  if(CTX::instance()->color.mesh.trihedron != val &&
9842  CTX::instance()->color.mesh.trihedron = val;
9843  }
9844 #if defined(HAVE_FLTK)
9845  CCC(CTX::instance()->color.mesh.trihedron,
9846  FlGui::instance()->options->mesh.color[9]);
9847 #endif
9848  return CTX::instance()->color.mesh.trihedron;
9849 }
9850 
9852 {
9853  if(action & GMSH_SET) { CTX::instance()->color.mesh.tangents = val; }
9854 #if defined(HAVE_FLTK)
9855  CCC(CTX::instance()->color.mesh.tangents,
9856  FlGui::instance()->options->mesh.color[10]);
9857 #endif
9858  return CTX::instance()->color.mesh.tangents;
9859 }
9860 
9862 {
9863  if(action & GMSH_SET) { CTX::instance()->color.mesh.normals = val; }
9864 #if defined(HAVE_FLTK)
9865  CCC(CTX::instance()->color.mesh.normals,
9866  FlGui::instance()->options->mesh.color[11]);
9867 #endif
9868  return CTX::instance()->color.mesh.normals;
9869 }
9870 
9871 unsigned int opt_mesh_color_(int i, OPT_ARGS_COL)
9872 {
9873  int n = (i < 0 || i >= 20) ? 0 : i;
9874  if(action & GMSH_SET) {
9875  // vertex arrays need to be regenerated only when we color by
9876  // partition
9877  if(CTX::instance()->color.mesh.carousel[n] != val &&
9880  CTX::instance()->color.mesh.carousel[n] = val;
9881  }
9882 #if defined(HAVE_FLTK)
9883  CCC(CTX::instance()->color.mesh.carousel[n],
9884  FlGui::instance()->options->mesh.color[12 + n]);
9885 #endif
9886  return CTX::instance()->color.mesh.carousel[n];
9887 }
9888 
9890 {
9891  return opt_mesh_color_(0, num, action, val);
9892 }
9894 {
9895  return opt_mesh_color_(1, num, action, val);
9896 }
9898 {
9899  return opt_mesh_color_(2, num, action, val);
9900 }
9902 {
9903  return opt_mesh_color_(3, num, action, val);
9904 }
9906 {
9907  return opt_mesh_color_(4, num, action, val);
9908 }
9910 {
9911  return opt_mesh_color_(5, num, action, val);
9912 }
9914 {
9915  return opt_mesh_color_(6, num, action, val);
9916 }
9918 {
9919  return opt_mesh_color_(7, num, action, val);
9920 }
9922 {
9923  return opt_mesh_color_(8, num, action, val);
9924 }
9926 {
9927  return opt_mesh_color_(9, num, action, val);
9928 }
9930 {
9931  return opt_mesh_color_(10, num, action, val);
9932 }
9934 {
9935  return opt_mesh_color_(11, num, action, val);
9936 }
9938 {
9939  return opt_mesh_color_(12, num, action, val);
9940 }
9942 {
9943  return opt_mesh_color_(13, num, action, val);
9944 }
9946 {
9947  return opt_mesh_color_(14, num, action, val);
9948 }
9950 {
9951  return opt_mesh_color_(15, num, action, val);
9952 }
9954 {
9955  return opt_mesh_color_(16, num, action, val);
9956 }
9958 {
9959  return opt_mesh_color_(17, num, action, val);
9960 }
9962 {
9963  return opt_mesh_color_(18, num, action, val);
9964 }
9966 {
9967  return opt_mesh_color_(19, num, action, val);
9968 }
9969 
9971 {
9972 #if defined(HAVE_POST)
9973  GET_VIEWo(0);
9974  if(action & GMSH_SET) {
9975  opt->color.point = val;
9976  if(view) view->setChanged(true);
9977  }
9978 #if defined(HAVE_FLTK)
9979  if(_gui_action_valid(action, num)) {
9980  CCC(opt->color.point, FlGui::instance()->options->view.color[0]);
9981  }
9982 #endif
9983  return opt->color.point;
9984 #else
9985  return 0;
9986 #endif
9987 }
9988 
9990 {
9991 #if defined(HAVE_POST)
9992  GET_VIEWo(0);
9993  if(action & GMSH_SET) {
9994  opt->color.line = val;
9995  if(view) view->setChanged(true);
9996  }
9997 #if defined(HAVE_FLTK)
9998  if(_gui_action_valid(action, num)) {
9999  CCC(opt->color.line, FlGui::instance()->options->view.color[1]);
10000  }
10001 #endif
10002  return opt->color.line;
10003 #else
10004  return 0;
10005 #endif
10006 }
10007 
10009 {
10010 #if defined(HAVE_POST)
10011  GET_VIEWo(0);
10012  if(action & GMSH_SET) {
10013  opt->color.triangle = val;
10014  if(view) view->setChanged(true);
10015  }
10016 #if defined(HAVE_FLTK)
10017  if(_gui_action_valid(action, num)) {
10018  CCC(opt->color.triangle, FlGui::instance()->options->view.color[2]);
10019  }
10020 #endif
10021  return opt->color.triangle;
10022 #else
10023  return 0;
10024 #endif
10025 }
10026 
10028 {
10029 #if defined(HAVE_POST)
10030  GET_VIEWo(0);
10031  if(action & GMSH_SET) {
10032  opt->color.quadrangle = val;
10033  if(view) view->setChanged(true);
10034  }
10035 #if defined(HAVE_FLTK)
10036  if(_gui_action_valid(action, num)) {
10037  CCC(opt->color.quadrangle, FlGui::instance()->options->view.color[3]);
10038  }
10039 #endif
10040  return opt->color.quadrangle;
10041 #else
10042  return 0;
10043 #endif
10044 }
10045 
10047 {
10048 #if defined(HAVE_POST)
10049  GET_VIEWo(0);
10050  if(action & GMSH_SET) {
10051  opt->color.tetrahedron = val;
10052  if(view) view->setChanged(true);
10053  }
10054 #if defined(HAVE_FLTK)
10055  if(_gui_action_valid(action, num)) {
10056  CCC(opt->color.tetrahedron, FlGui::instance()->options->view.color[4]);
10057  }
10058 #endif
10059  return opt->color.tetrahedron;
10060 #else
10061  return 0;
10062 #endif
10063 }
10064 
10066 {
10067 #if defined(HAVE_POST)
10068  GET_VIEWo(0);
10069  if(action & GMSH_SET) {
10070  opt->color.hexahedron = val;
10071  if(view) view->setChanged(true);
10072  }
10073 #if defined(HAVE_FLTK)
10074  if(_gui_action_valid(action, num)) {
10075  CCC(opt->color.hexahedron, FlGui::instance()->options->view.color[5]);
10076  }
10077 #endif
10078  return opt->color.hexahedron;
10079 #else
10080  return 0;
10081 #endif
10082 }
10083 
10085 {
10086 #if defined(HAVE_POST)
10087  GET_VIEWo(0);
10088  if(action & GMSH_SET) {
10089  opt->color.prism = val;
10090  if(view) view->setChanged(true);
10091  }
10092 #if defined(HAVE_FLTK)
10093  if(_gui_action_valid(action, num)) {
10094  CCC(opt->color.prism, FlGui::instance()->options->view.color[6]);
10095  }
10096 #endif
10097  return opt->color.prism;
10098 #else
10099  return 0;
10100 #endif
10101 }
10102 
10104 {
10105 #if defined(HAVE_POST)
10106  GET_VIEWo(0);
10107  if(action & GMSH_SET) {
10108  opt->color.pyramid = val;
10109  if(view) view->setChanged(true);
10110  }
10111 #if defined(HAVE_FLTK)
10112  if(_gui_action_valid(action, num)) {
10113  CCC(opt->color.pyramid, FlGui::instance()->options->view.color[7]);
10114  }
10115 #endif
10116  return opt->color.pyramid;
10117 #else
10118  return 0;
10119 #endif
10120 }
10121 
10123 {
10124 #if defined(HAVE_POST)
10125  GET_VIEWo(0);
10126  if(action & GMSH_SET) {
10127  opt->color.trihedron = val;
10128  if(view) view->setChanged(true);
10129  }
10130 #if defined(HAVE_FLTK)
10131  if(_gui_action_valid(action, num)) {
10132  CCC(opt->color.trihedron, FlGui::instance()->options->view.color[8]);
10133  }
10134 #endif
10135  return opt->color.trihedron;
10136 #else
10137  return 0;
10138 #endif
10139 }
10140 
10142 {
10143 #if defined(HAVE_POST)
10144  GET_VIEWo(0);
10145  if(action & GMSH_SET) {
10146  opt->color.tangents = val;
10147  if(view) view->setChanged(true);
10148  }
10149 #if defined(HAVE_FLTK)
10150  if(_gui_action_valid(action, num)) {
10151  CCC(opt->color.tangents, FlGui::instance()->options->view.color[9]);
10152  }
10153 #endif
10154  return opt->color.tangents;
10155 #else
10156  return 0;
10157 #endif
10158 }
10159 
10161 {
10162 #if defined(HAVE_POST)
10163  GET_VIEWo(0);
10164  if(action & GMSH_SET) {
10165  opt->color.normals = val;
10166  if(view) view->setChanged(true);
10167  }
10168 #if defined(HAVE_FLTK)
10169  if(_gui_action_valid(action, num)) {
10170  CCC(opt->color.normals, FlGui::instance()->options->view.color[10]);
10171  }
10172 #endif
10173  return opt->color.normals;
10174 #else
10175  return 0;
10176 #endif
10177 }
10178 
10180 {
10181 #if defined(HAVE_POST)
10182  GET_VIEWo(0);
10183  if(action & GMSH_SET) { opt->color.text2d = val; }
10184 #if defined(HAVE_FLTK)
10185  if(_gui_action_valid(action, num)) {
10186  CCC(opt->color.text2d, FlGui::instance()->options->view.color[11]);
10188  }
10189 #endif
10190  return opt->color.text2d;
10191 #else
10192  return 0;
10193 #endif
10194 }
10195 
10197 {
10198 #if defined(HAVE_POST)
10199  GET_VIEWo(0);
10200  if(action & GMSH_SET) { opt->color.text3d = val; }
10201 #if defined(HAVE_FLTK)
10202  if(_gui_action_valid(action, num)) {
10203  CCC(opt->color.text3d, FlGui::instance()->options->view.color[12]);
10205  }
10206 #endif
10207  return opt->color.text3d;
10208 #else
10209  return 0;
10210 #endif
10211 }
10212 
10214 {
10215 #if defined(HAVE_POST)
10216  GET_VIEWo(0);
10217  if(action & GMSH_SET) { opt->color.axes = val; }
10218 #if defined(HAVE_FLTK)
10219  if(_gui_action_valid(action, num)) {
10220  CCC(opt->color.axes, FlGui::instance()->options->view.color[13]);
10222  }
10223 #endif
10224  return opt->color.axes;
10225 #else
10226  return 0;
10227 #endif
10228 }
10229 
10231 {
10232 #if defined(HAVE_POST)
10233  GET_VIEWo(0);
10234  if(action & GMSH_SET) { opt->color.background2d = val; }
10235 #if defined(HAVE_FLTK)
10236  if(_gui_action_valid(action, num)) {
10237  CCC(opt->color.background2d, FlGui::instance()->options->view.color[14]);
10239  }
10240 #endif
10241  return opt->color.background2d;
10242 #else
10243  return 0;
10244 #endif
10245 }
contextGeometryOptions::extrudeSplinePoints
int extrudeSplinePoints
Definition: Context.h:95
opt_geometry_label_type
double opt_geometry_label_type(OPT_ARGS_NUM)
Definition: Options.cpp:4444
GeneralOptions_Color
StringXColor GeneralOptions_Color[]
Definition: DefaultOptions.h:2122
opt_solver_auto_show_views
double opt_solver_auto_show_views(OPT_ARGS_NUM)
Definition: Options.cpp:6780
contextMeshOptions::zoneDefinition
int zoneDefinition
Definition: Context.h:66
opt_view_component_map0
double opt_view_component_map0(OPT_ARGS_NUM)
Definition: Options.cpp:9130
contextGeometryOptions::copyMeshingMethod
int copyMeshingMethod
Definition: Context.h:107
opt_general_zmax
double opt_general_zmax(OPT_ARGS_NUM)
Definition: Options.cpp:3079
opt_mesh_volume_faces
double opt_mesh_volume_faces(OPT_ARGS_NUM)
Definition: Options.cpp:5480
opt_general_scripting_languages
std::string opt_general_scripting_languages(OPT_ARGS_STR)
Definition: Options.cpp:1301
opt_view_axes
double opt_view_axes(OPT_ARGS_NUM)
Definition: Options.cpp:7881
opt_view_color_triangles
unsigned int opt_view_color_triangles(OPT_ARGS_COL)
Definition: Options.cpp:10008
StringXString
Definition: Options.h:910
opt_general_color_ambient_light
unsigned int opt_general_color_ambient_light(OPT_ARGS_COL)
Definition: Options.cpp:9552
opt_print_pos_eta
double opt_print_pos_eta(OPT_ARGS_NUM)
Definition: Options.cpp:9273
contextMeshOptions::stlLinearDeflectionRelative
bool stlLinearDeflectionRelative
Definition: Context.h:65
CTX::vectorType
int vectorType
Definition: Context.h:287
opt_general_shine_exponent
double opt_general_shine_exponent(OPT_ARGS_NUM)
Definition: Options.cpp:2887
contextMeshOptions::cgnsImportOrder
int cgnsImportOrder
Definition: Context.h:68
NumberOption
bool NumberOption(int action, const char *category, int num, const char *name, double &val, bool warnIfUnknown)
Definition: Options.cpp:185
opt_general_num_threads
double opt_general_num_threads(OPT_ARGS_NUM)
Definition: Options.cpp:4145
ENT_VOLUME
#define ENT_VOLUME
Definition: GmshDefines.h:234
opt_solver_name
std::string opt_solver_name(OPT_ARGS_STR)
Definition: Options.cpp:1450
CTX::texAsEquation
int texAsEquation
Definition: Context.h:343
contextMeshOptions::randFactor3d
double randFactor3d
Definition: Context.h:21
contextMeshOptions::recombineAll
int recombineAll
Definition: Context.h:30
InitOptionsGUI
void InitOptionsGUI(int num)
Definition: Options.cpp:521
opt_mesh_renumber
double opt_mesh_renumber(OPT_ARGS_NUM)
Definition: Options.cpp:4905
contextMeshOptions::trihedra
int trihedra
Definition: Context.h:84
contextMeshOptions::angleSmoothNormals
double angleSmoothNormals
Definition: Context.h:22
contextMeshOptions::toleranceReferenceElement
double toleranceReferenceElement
Definition: Context.h:47
contextGeometryOptions::doubleClickedSurfaceCommand
std::string doubleClickedSurfaceCommand
Definition: Context.h:123
CTX::mouseSelection
int mouseSelection
Definition: Context.h:294
opt_general_color_specular_light
unsigned int opt_general_color_specular_light(OPT_ARGS_COL)
Definition: Options.cpp:9574
opt_view_abscissa_range_type
double opt_view_abscissa_range_type(OPT_ARGS_NUM)
Definition: Options.cpp:8615
opt_general_clip1d
double opt_general_clip1d(OPT_ARGS_NUM)
Definition: Options.cpp:3724
opt_geometry_match_mesh_scale_factor
double opt_geometry_match_mesh_scale_factor(OPT_ARGS_NUM)
Definition: Options.cpp:4838
opt_mesh_cgns_export_structured
double opt_mesh_cgns_export_structured(OPT_ARGS_NUM)
Definition: Options.cpp:6350
opt_view_adapt_visualization_grid
double opt_view_adapt_visualization_grid(OPT_ARGS_NUM)
Definition: Options.cpp:7689
opt_general_options_filename
std::string opt_general_options_filename(OPT_ARGS_STR)
Definition: Options.cpp:1235
opt_general_zoom_factor
double opt_general_zoom_factor(OPT_ARGS_NUM)
Definition: Options.cpp:3563
opt_general_axes_value_zmax
double opt_general_axes_value_zmax(OPT_ARGS_NUM)
Definition: Options.cpp:3262
opt_general_detached_process
double opt_general_detached_process(OPT_ARGS_NUM)
Definition: Options.cpp:2382
CTX::glSize
int glSize[2]
Definition: Context.h:185
opt_general_light43
double opt_general_light43(OPT_ARGS_NUM)
Definition: Options.cpp:4109
opt_general_light42
double opt_general_light42(OPT_ARGS_NUM)
Definition: Options.cpp:4103
opt_general_show_options_on_startup
double opt_general_show_options_on_startup(OPT_ARGS_NUM)
Definition: Options.cpp:2169
CTX::parameter
double parameter
Definition: Context.h:349
opt_print_pgf_export_axis
double opt_print_pgf_export_axis(OPT_ARGS_NUM)
Definition: Options.cpp:9332
opt_mesh_max_num_threads_2d
double opt_mesh_max_num_threads_2d(OPT_ARGS_NUM)
Definition: Options.cpp:6635
contextMeshOptions::volumeEdges
int volumeEdges
Definition: Context.h:85
opt_view_nb_iso
double opt_view_nb_iso(OPT_ARGS_NUM)
Definition: Options.cpp:8078
contextGeometryOptions::toleranceBoolean
double toleranceBoolean
Definition: Context.h:99
opt_general_verbosity
double opt_general_verbosity(OPT_ARGS_NUM)
Definition: Options.cpp:2898
opt_post_double_clicked_view
double opt_post_double_clicked_view(OPT_ARGS_NUM)
Definition: Options.cpp:6954
opt_general_clip3c
double opt_general_clip3c(OPT_ARGS_NUM)
Definition: Options.cpp:3794
opt_view_stipple3
std::string opt_view_stipple3(OPT_ARGS_STR)
Definition: Options.cpp:2033
contextMeshOptions::light
int light
Definition: Context.h:82
GMSH_Plugin::getHelp
virtual std::string getHelp() const =0
contextGeometryOptions::tolerance
double tolerance
Definition: Context.h:99
opt_view_transform22
double opt_view_transform22(OPT_ARGS_NUM)
Definition: Options.cpp:7502
opt_general_focallength_ratio
double opt_general_focallength_ratio(OPT_ARGS_NUM)
Definition: Options.cpp:3619
opt_mesh_color_lines
unsigned int opt_mesh_color_lines(OPT_ARGS_COL)
Definition: Options.cpp:9715
opt_view_component_map3
double opt_view_component_map3(OPT_ARGS_NUM)
Definition: Options.cpp:9142
CTX::msgFontSize
int msgFontSize
Definition: Context.h:269
opt_mesh_ho_iter_max
double opt_mesh_ho_iter_max(OPT_ARGS_NUM)
Definition: Options.cpp:6220
CTX::packColor
unsigned int packColor(int R, int G, int B, int A)
Definition: Context.cpp:128
opt_mesh_color_6
unsigned int opt_mesh_color_6(OPT_ARGS_COL)
Definition: Options.cpp:9913
opt_view_format
std::string opt_view_format(OPT_ARGS_STR)
Definition: Options.cpp:1748
opt_mesh_normals
double opt_mesh_normals(OPT_ARGS_NUM)
Definition: Options.cpp:4911
CTX::doubleClickedGraphPointX
double doubleClickedGraphPointX
Definition: Context.h:323
CTX::epsOcclusionCulling
int epsOcclusionCulling
Definition: Context.h:340
opt_view_color_text2d
unsigned int opt_view_color_text2d(OPT_ARGS_COL)
Definition: Options.cpp:10179
GetMouseUsage
std::vector< std::pair< std::string, std::string > > GetMouseUsage()
Definition: CommandLine.cpp:330
opt_view_use_gen_raise
double opt_view_use_gen_raise(OPT_ARGS_NUM)
Definition: Options.cpp:9032
opt_general_orthographic
double opt_general_orthographic(OPT_ARGS_NUM)
Definition: Options.cpp:2962
Field.h
opt_view_transform20
double opt_view_transform20(OPT_ARGS_NUM)
Definition: Options.cpp:7466
contextGeometryOptions::occExportOnlyVisible
int occExportOnlyVisible
Definition: Context.h:103
opt_mesh_hexahedra
double opt_mesh_hexahedra(OPT_ARGS_NUM)
Definition: Options.cpp:5353
opt_print_x3d_precision
double opt_print_x3d_precision(OPT_ARGS_NUM)
Definition: Options.cpp:9433
CTX::db
int db
Definition: Context.h:236
opt_mesh_partition_split_mesh_files
double opt_mesh_partition_split_mesh_files(OPT_ARGS_NUM)
Definition: Options.cpp:5705
CTX::clipWholeElements
int clipWholeElements
Definition: Context.h:278
CTX::tangents
unsigned int tangents
Definition: Context.h:363
opt_geometry_num_sub_edges
double opt_geometry_num_sub_edges(OPT_ARGS_NUM)
Definition: Options.cpp:4731
opt_view_show_scale
double opt_view_show_scale(OPT_ARGS_NUM)
Definition: Options.cpp:8238
opt_mesh_read_groups_of_elements
double opt_mesh_read_groups_of_elements(OPT_ARGS_NUM)
Definition: Options.cpp:6407
contextMeshOptions::triangles
int triangles
Definition: Context.h:83
contextMeshOptions::optimizeNetgen
int optimizeNetgen
Definition: Context.h:19
opt_general_clip_position1
double opt_general_clip_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2545
opt_mesh_compound_lc_factor
double opt_mesh_compound_lc_factor(OPT_ARGS_NUM)
Definition: Options.cpp:6454
opt_solver_extension9
std::string opt_solver_extension9(OPT_ARGS_STR)
Definition: Options.cpp:1559
contextMeshOptions::nbSmoothing
int nbSmoothing
Definition: Context.h:29
opt_general_scale1
double opt_general_scale1(OPT_ARGS_NUM)
Definition: Options.cpp:2798
opt_general_field_size0
double opt_general_field_size0(OPT_ARGS_NUM)
Definition: Options.cpp:2479
GModel::getFileName
std::string getFileName() const
Definition: GModel.h:333
GeneralOptions_String
StringXString GeneralOptions_String[]
Definition: DefaultOptions.h:28
contextMeshOptions::quadqsTopoOptimMethods
int quadqsTopoOptimMethods
Definition: Context.h:53
contextMeshOptions::lineLabels
int lineLabels
Definition: Context.h:86
PrintNumberOptionsDoc
static void PrintNumberOptionsDoc(StringXNumber s[], const char *prefix, FILE *file)
Definition: Options.cpp:269
opt_print_x3d_vertices
double opt_print_x3d_vertices(OPT_ARGS_NUM)
Definition: Options.cpp:9451
opt_general_show_module_menu
double opt_general_show_module_menu(OPT_ARGS_NUM)
Definition: Options.cpp:2339
drawTransform
Definition: drawContext.h:46
opt_general_axes_label0
std::string opt_general_axes_label0(OPT_ARGS_STR)
Definition: Options.cpp:1081
opt_mesh_smooth_ratio
double opt_mesh_smooth_ratio(OPT_ARGS_NUM)
Definition: Options.cpp:5599
PViewOptions::colorTable
GmshColorTable colorTable
Definition: PViewOptions.h:70
opt_general_manip_position0
double opt_general_manip_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2551
GMSH_GET
#define GMSH_GET
Definition: Options.h:13
contextMeshOptions::renumber
int renumber
Definition: Context.h:48
opt_view_angle_smooth_normals
double opt_view_angle_smooth_normals(OPT_ARGS_NUM)
Definition: Options.cpp:8184
opt_print_composite_windows
double opt_print_composite_windows(OPT_ARGS_NUM)
Definition: Options.cpp:9367
opt_mesh_light
double opt_mesh_light(OPT_ARGS_NUM)
Definition: Options.cpp:5626
opt_view_transform21
double opt_view_transform21(OPT_ARGS_NUM)
Definition: Options.cpp:7484
contextGeometryOptions::pointLabels
int pointLabels
Definition: Context.h:115
opt_geometry_transform02
double opt_geometry_transform02(OPT_ARGS_NUM)
Definition: Options.cpp:4219
GamePad
Definition: GamePad.h:27
GMSH_SET
#define GMSH_SET
Definition: Options.h:12
contextGeometryOptions::occScaling
double occScaling
Definition: Context.h:105
opt_mesh_nb_hexahedra
double opt_mesh_nb_hexahedra(OPT_ARGS_NUM)
Definition: Options.cpp:6519
CTX::autoMergeFile
int autoMergeFile
Definition: Context.h:334
opt_view_zmin
double opt_view_zmin(OPT_ARGS_NUM)
Definition: Options.cpp:7210
opt_general_eye_sep_ratio
double opt_general_eye_sep_ratio(OPT_ARGS_NUM)
Definition: Options.cpp:3608
contextMeshOptions::surfaceEdges
int surfaceEdges
Definition: Context.h:85
CTX::mouseInvertZoom
int mouseInvertZoom
Definition: Context.h:296
opt_print_geo_labels
double opt_print_geo_labels(OPT_ARGS_NUM)
Definition: Options.cpp:9243
contextMeshOptions::lightTwoSide
int lightTwoSide
Definition: Context.h:82
opt_view_axes_tics1
double opt_view_axes_tics1(OPT_ARGS_NUM)
Definition: Options.cpp:8046
Msg::GetProgressMeterStep
static int GetProgressMeterStep()
Definition: GmshMessage.cpp:307
CTX::pythonInterpreter
std::string pythonInterpreter
Definition: Context.h:330
COLORTABLE_NBMAX_PARAM
#define COLORTABLE_NBMAX_PARAM
Definition: ColorTable.h:13
opt_view_arrow_size_min
double opt_view_arrow_size_min(OPT_ARGS_NUM)
Definition: Options.cpp:7520
opt_general_recent_file5
std::string opt_general_recent_file5(OPT_ARGS_STR)
Definition: Options.cpp:1271
ColorTable_Recompute
void ColorTable_Recompute(GmshColorTable *ct)
Definition: ColorTable.cpp:724
contextMeshOptions::lcFromCurvatureIso
int lcFromCurvatureIso
Definition: Context.h:27
opt_mesh_color_12
unsigned int opt_mesh_color_12(OPT_ARGS_COL)
Definition: Options.cpp:9937
CTX::clipOnlyVolume
int clipOnlyVolume
Definition: Context.h:278
CTX::color
struct CTX::@3 color
Msg::GetVerbosity
static int GetVerbosity()
Definition: GmshMessage.cpp:254
contextMeshOptions::lcFromCurvature
int lcFromCurvature
Definition: Context.h:27
contextMeshOptions::surfaceLabels
int surfaceLabels
Definition: Context.h:86
opt_view_component_map6
double opt_view_component_map6(OPT_ARGS_NUM)
Definition: Options.cpp:9154
opt_view_draw_hexahedra
double opt_view_draw_hexahedra(OPT_ARGS_NUM)
Definition: Options.cpp:8388
contextGeometryOptions::occParallel
int occParallel
Definition: Context.h:102
opt_solver_executable7
std::string opt_solver_executable7(OPT_ARGS_STR)
Definition: Options.cpp:1606
opt_general_context_position0
double opt_general_context_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2303
contextGeometryOptions::curveWidth
double curveWidth
Definition: Context.h:116
opt_print_pos_disto
double opt_print_pos_disto(OPT_ARGS_NUM)
Definition: Options.cpp:9291
PrintStringOptions
static void PrintStringOptions(int num, int level, int diff, int help, StringXString s[], const char *prefix, FILE *file, std::vector< std::string > *vec=nullptr)
Definition: Options.cpp:122
opt_general_manip_position1
double opt_general_manip_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2557
CTX::init
void init()
Definition: Context.cpp:30
contextGeometryOptions::numSubEdges
int numSubEdges
Definition: Context.h:117
ColorOption
bool ColorOption(int action, const char *category, int num, const char *name, unsigned int &val, bool warnIfUnknown)
Definition: Options.cpp:287
CTX::polygonOffsetUnits
double polygonOffsetUnits
Definition: Context.h:281
Plugin.h
OPT_ARGS_NUM
#define OPT_ARGS_NUM
Definition: Options.h:26
opt_mesh_smooth_normals
double opt_mesh_smooth_normals(OPT_ARGS_NUM)
Definition: Options.cpp:5584
opt_general_light21
double opt_general_light21(OPT_ARGS_NUM)
Definition: Options.cpp:4037
contextMeshOptions::firstElementTag
int firstElementTag
Definition: Context.h:57
COLORTABLE_ALPHAPOW
#define COLORTABLE_ALPHAPOW
Definition: ColorTable.h:42
CTX::detachedProcess
int detachedProcess
Definition: Context.h:171
CTX::epsQuality
int epsQuality
Definition: Context.h:339
CTX::x3dVertices
int x3dVertices
Definition: Context.h:354
opt_general_clip4b
double opt_general_clip4b(OPT_ARGS_NUM)
Definition: Options.cpp:3824
opt_mesh_color_carousel
double opt_mesh_color_carousel(OPT_ARGS_NUM)
Definition: Options.cpp:6425
CTX::pgfTwoDim
int pgfTwoDim
Definition: Context.h:350
opt_view_axes_format0
std::string opt_view_axes_format0(OPT_ARGS_STR)
Definition: Options.cpp:1844
opt_view_point_size
double opt_view_point_size(OPT_ARGS_NUM)
Definition: Options.cpp:8711
StringXNumber::function
double(* function)(int num, int action, double val)
Definition: Options.h:921
opt_view_normal_raise
double opt_view_normal_raise(OPT_ARGS_NUM)
Definition: Options.cpp:7340
opt_general_gui_color_scheme
double opt_general_gui_color_scheme(OPT_ARGS_NUM)
Definition: Options.cpp:2187
opt_view_tangents
double opt_view_tangents(OPT_ARGS_NUM)
Definition: Options.cpp:7565
opt_mesh_partition_metis_min_conn
double opt_mesh_partition_metis_min_conn(OPT_ARGS_NUM)
Definition: Options.cpp:6595
ALGO_3D_MMG3D
#define ALGO_3D_MMG3D
Definition: GmshDefines.h:253
opt_mesh_radius_inf
double opt_mesh_radius_inf(OPT_ARGS_NUM)
Definition: Options.cpp:5207
opt_mesh_partition_create_topology
double opt_mesh_partition_create_topology(OPT_ARGS_NUM)
Definition: Options.cpp:5773
opt_mesh_ho_threshold_max
double opt_mesh_ho_threshold_max(OPT_ARGS_NUM)
Definition: Options.cpp:6202
opt_view_range_type
double opt_view_range_type(OPT_ARGS_NUM)
Definition: Options.cpp:8594
CTX::nativeFileChooser
int nativeFileChooser
Definition: Context.h:195
opt_view_colormap_rotation
double opt_view_colormap_rotation(OPT_ARGS_NUM)
Definition: Options.cpp:8924
CTX::rotationCenter
double rotationCenter[3]
Definition: Context.h:225
opt_mesh_lc_extend_from_boundary
double opt_mesh_lc_extend_from_boundary(OPT_ARGS_NUM)
Definition: Options.cpp:5110
GMSH_SET_DEFAULT
#define GMSH_SET_DEFAULT
Definition: Options.h:15
opt_print_x3d_remove_inner_borders
double opt_print_x3d_remove_inner_borders(OPT_ARGS_NUM)
Definition: Options.cpp:9427
CTX::x3dCompatibility
int x3dCompatibility
Definition: Context.h:352
opt_mesh_quality_inf
double opt_mesh_quality_inf(OPT_ARGS_NUM)
Definition: Options.cpp:5177
opt_mesh_quadqs_topo_optim_methods
double opt_mesh_quadqs_topo_optim_methods(OPT_ARGS_NUM)
Definition: Options.cpp:6696
opt_solver_socket_name
std::string opt_solver_socket_name(OPT_ARGS_STR)
Definition: Options.cpp:1439
contextGeometryOptions::oldCircle
int oldCircle
Definition: Context.h:94
contextMeshOptions::lcExtendFromBoundary
int lcExtendFromBoundary
Definition: Context.h:28
opt_general_zmin
double opt_general_zmin(OPT_ARGS_NUM)
Definition: Options.cpp:3073
opt_view_colormap_alpha_power
double opt_view_colormap_alpha_power(OPT_ARGS_NUM)
Definition: Options.cpp:8801
opt_view_transform11
double opt_view_transform11(OPT_ARGS_NUM)
Definition: Options.cpp:7430
StringOption
bool StringOption(int action, const char *category, int num, const char *name, std::string &val, bool warnIfUnknown)
Definition: Options.cpp:63
CTX::gifDither
int gifDither
Definition: Context.h:345
opt_print_x3d_colorize
double opt_print_x3d_colorize(OPT_ARGS_NUM)
Definition: Options.cpp:9463
opt_general_rotation_center0
double opt_general_rotation_center0(OPT_ARGS_NUM)
Definition: Options.cpp:2653
GMSH_Plugin
Definition: Plugin.h:26
opt_view_axes_format1
std::string opt_view_axes_format1(OPT_ARGS_STR)
Definition: Options.cpp:1860
contextMeshOptions::optimize
int optimize
Definition: Context.h:19
CTX::tmpRotation
double tmpRotation[3]
Definition: Context.h:309
opt_general_plugin_position0
double opt_general_plugin_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2443
CTX::timeout
double timeout
Definition: Context.h:329
opt_view_raise2
double opt_view_raise2(OPT_ARGS_NUM)
Definition: Options.cpp:7322
StringXNumber::def
double def
Definition: Options.h:922
opt_general_axes_tics2
double opt_general_axes_tics2(OPT_ARGS_NUM)
Definition: Options.cpp:3149
contextMeshOptions::maxNumThreads1D
int maxNumThreads1D
Definition: Context.h:46
CTX::fileFormat
int fileFormat
Definition: Context.h:319
opt_mesh_tolerance_reference_element
double opt_mesh_tolerance_reference_element(OPT_ARGS_NUM)
Definition: Options.cpp:6658
CTX::horizontalScales
int horizontalScales
Definition: Context.h:316
opt_geometry_occ_boolean_preserve_numbering
double opt_geometry_occ_boolean_preserve_numbering(OPT_ARGS_NUM)
Definition: Options.cpp:4676
PostProcessingOptions_Number
StringXNumber PostProcessingOptions_Number[]
Definition: DefaultOptions.h:1637
OS.h
contextGeometryOptions::matchMeshScaleFactor
double matchMeshScaleFactor
Definition: Context.h:109
opt_solver_extension2
std::string opt_solver_extension2(OPT_ARGS_STR)
Definition: Options.cpp:1524
opt_geometry_point_sel_size
double opt_geometry_point_sel_size(OPT_ARGS_NUM)
Definition: Options.cpp:4472
opt_general_field_position1
double opt_general_field_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2473
opt_solver_auto_mesh
double opt_solver_auto_mesh(OPT_ARGS_NUM)
Definition: Options.cpp:6768
opt_general_graphics_fontsize
double opt_general_graphics_fontsize(OPT_ARGS_NUM)
Definition: Options.cpp:2208
opt_mesh_file_format
double opt_mesh_file_format(OPT_ARGS_NUM)
Definition: Options.cpp:5668
opt_print_pgf_horiz_bar
double opt_print_pgf_horiz_bar(OPT_ARGS_NUM)
Definition: Options.cpp:9337
CTX::colorScheme
int colorScheme
Definition: Context.h:283
contextMeshOptions::stlOneSolidPerSurface
int stlOneSolidPerSurface
Definition: Context.h:63
contextMeshOptions::refineSteps
int refineSteps
Definition: Context.h:19
opt_solver_timeout
double opt_solver_timeout(OPT_ARGS_NUM)
Definition: Options.cpp:6726
opt_general_alpha_blending
double opt_general_alpha_blending(OPT_ARGS_NUM)
Definition: Options.cpp:3367
GeneralOptions_Number
StringXNumber GeneralOptions_Number[]
Definition: DefaultOptions.h:364
opt_solver_extension0
std::string opt_solver_extension0(OPT_ARGS_STR)
Definition: Options.cpp:1514
CTX::zoomFactor
double zoomFactor
Definition: Context.h:256
opt_view_use_stipple
double opt_view_use_stipple(OPT_ARGS_NUM)
Definition: Options.cpp:9052
contextMeshOptions::angleToleranceFacetOverlap
double angleToleranceFacetOverlap
Definition: Context.h:47
CTX::combineCopyOptions
int combineCopyOptions
Definition: Context.h:318
contextMeshOptions::compoundLcFactor
double compoundLcFactor
Definition: Context.h:49
opt_view_draw_strings
double opt_view_draw_strings(OPT_ARGS_NUM)
Definition: Options.cpp:8253
opt_mesh_binary
double opt_mesh_binary(OPT_ARGS_NUM)
Definition: Options.cpp:5803
SetDefaultColorOptions
static void SetDefaultColorOptions(int num, StringXColor s[])
Definition: Options.cpp:358
c
static double c(int i, int j, fullMatrix< double > &CA, const std::vector< SPoint3 > &P, const std::vector< SPoint3 > &Q)
Definition: discreteFrechetDistance.cpp:15
opt_mesh_color_0
unsigned int opt_mesh_color_0(OPT_ARGS_COL)
Definition: Options.cpp:9889
opt_general_light22
double opt_general_light22(OPT_ARGS_NUM)
Definition: Options.cpp:4043
opt_geometry_points
double opt_geometry_points(OPT_ARGS_NUM)
Definition: Options.cpp:4356
contextMeshOptions::partitionQuaWeight
int partitionQuaWeight
Definition: Context.h:74
GetShortcutsUsage
std::vector< std::pair< std::string, std::string > > GetShortcutsUsage(const std::string &ctrl)
Definition: CommandLine.cpp:219
opt_view_xmax
double opt_view_xmax(OPT_ARGS_NUM)
Definition: Options.cpp:7177
contextGeometryOptions::extrudeReturnLateral
int extrudeReturnLateral
Definition: Context.h:95
opt_general_small_axes
double opt_general_small_axes(OPT_ARGS_NUM)
Definition: Options.cpp:3268
opt_post_save_mesh
double opt_post_save_mesh(OPT_ARGS_NUM)
Definition: Options.cpp:6929
CTX::epsBestRoot
int epsBestRoot
Definition: Context.h:340
opt_general_fast_redraw
double opt_general_fast_redraw(OPT_ARGS_NUM)
Definition: Options.cpp:3025
opt_mesh_color_pyramid
unsigned int opt_mesh_color_pyramid(OPT_ARGS_COL)
Definition: Options.cpp:9817
opt_mesh_optimize_threshold
double opt_mesh_optimize_threshold(OPT_ARGS_NUM)
Definition: Options.cpp:4867
opt_general_options_save
double opt_general_options_save(OPT_ARGS_NUM)
Definition: Options.cpp:2592
opt_general_abort_on_error
double opt_general_abort_on_error(OPT_ARGS_NUM)
Definition: Options.cpp:2157
contextMeshOptions::lcIntegrationPrecision
double lcIntegrationPrecision
Definition: Context.h:21
opt_view_color_quadrangles
unsigned int opt_view_color_quadrangles(OPT_ARGS_COL)
Definition: Options.cpp:10027
opt_view_external_view
double opt_view_external_view(OPT_ARGS_NUM)
Definition: Options.cpp:8964
contextMeshOptions::surfaceFaces
int surfaceFaces
Definition: Context.h:85
opt_mesh_partition_metis_objective
double opt_mesh_partition_metis_objective(OPT_ARGS_NUM)
Definition: Options.cpp:6589
opt_mesh_ho_max_angle
double opt_mesh_ho_max_angle(OPT_ARGS_NUM)
Definition: Options.cpp:6264
CTX::numThreads
int numThreads
Definition: Context.h:169
opt_mesh_nb_prisms
double opt_mesh_nb_prisms(OPT_ARGS_NUM)
Definition: Options.cpp:6526
opt_general_light52
double opt_general_light52(OPT_ARGS_NUM)
Definition: Options.cpp:4133
opt_view_stipple6
std::string opt_view_stipple6(OPT_ARGS_STR)
Definition: Options.cpp:2078
contextMeshOptions::hoIterMax
int hoIterMax
Definition: Context.h:38
CTX::x3dRemoveInnerBorders
int x3dRemoveInnerBorders
Definition: Context.h:352
contextMeshOptions::partitionTrihWeight
int partitionTrihWeight
Definition: Context.h:76
opt_mesh_color_18
unsigned int opt_mesh_color_18(OPT_ARGS_COL)
Definition: Options.cpp:9961
opt_view_stipple4
std::string opt_view_stipple4(OPT_ARGS_STR)
Definition: Options.cpp:2048
contextMeshOptions::saveGroupsOfElements
int saveGroupsOfElements
Definition: Context.h:60
opt_general_recent_file2
std::string opt_general_recent_file2(OPT_ARGS_STR)
Definition: Options.cpp:1253
opt_general_watch_file_pattern
std::string opt_general_watch_file_pattern(OPT_ARGS_STR)
Definition: Options.cpp:1324
COLORTABLE_INVERT
#define COLORTABLE_INVERT
Definition: ColorTable.h:31
opt_view_draw_trihedra
double opt_view_draw_trihedra(OPT_ARGS_NUM)
Definition: Options.cpp:8460
CTX::parameterLast
double parameterLast
Definition: Context.h:349
opt_general_non_modal_windows
double opt_general_non_modal_windows(OPT_ARGS_NUM)
Definition: Options.cpp:2920
opt_mesh_partition_create_physicals
double opt_mesh_partition_create_physicals(OPT_ARGS_NUM)
Definition: Options.cpp:5767
opt_general_clip_only_draw_intersecting_volume
double opt_general_clip_only_draw_intersecting_volume(OPT_ARGS_NUM)
Definition: Options.cpp:3907
Msg::Error
static void Error(const char *fmt,...)
Definition: GmshMessage.cpp:482
CTX::post
struct CTX::@0 post
opt_general_native_file_chooser
double opt_general_native_file_chooser(OPT_ARGS_NUM)
Definition: Options.cpp:2333
Msg::StatusBar
static void StatusBar(bool log, const char *fmt,...)
Definition: GmshMessage.cpp:686
BackgroundMesh.h
COLORTABLE_ROTATION
#define COLORTABLE_ROTATION
Definition: ColorTable.h:33
contextMeshOptions::fileFormat
int fileFormat
Definition: Context.h:57
opt_general_vector_type
double opt_general_vector_type(OPT_ARGS_NUM)
Definition: Options.cpp:3373
opt_mesh_lc_integration_precision
double opt_mesh_lc_integration_precision(OPT_ARGS_NUM)
Definition: Options.cpp:5126
opt_view_color_pyramids
unsigned int opt_view_color_pyramids(OPT_ARGS_COL)
Definition: Options.cpp:10103
opt_solver_name9
std::string opt_solver_name9(OPT_ARGS_STR)
Definition: Options.cpp:1502
opt_print_eps_ps3shading
double opt_print_eps_ps3shading(OPT_ARGS_NUM)
Definition: Options.cpp:9195
opt_general_light33
double opt_general_light33(OPT_ARGS_NUM)
Definition: Options.cpp:4079
CTX::bgImage3d
int bgImage3d
Definition: Context.h:262
CTX::epsPointSizeFactor
double epsPointSizeFactor
Definition: Context.h:341
opt_general_input_scrolling
double opt_general_input_scrolling(OPT_ARGS_NUM)
Definition: Options.cpp:2956
opt_geometry_extrude_spline_points
double opt_geometry_extrude_spline_points(OPT_ARGS_NUM)
Definition: Options.cpp:4747
contextMeshOptions::dual
int dual
Definition: Context.h:88
opt_general_axes_value_ymax
double opt_general_axes_value_ymax(OPT_ARGS_NUM)
Definition: Options.cpp:3250
opt_general_visibility_position1
double opt_general_visibility_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2533
CTX::axesForceValue
int axesForceValue
Definition: Context.h:248
CTX::guiRefreshRate
int guiRefreshRate
Definition: Context.h:165
opt_mesh_max_num_threads_3d
double opt_mesh_max_num_threads_3d(OPT_ARGS_NUM)
Definition: Options.cpp:6641
contextGeometryOptions::pointType
int pointType
Definition: Context.h:117
opt_mesh_nb_smoothing
double opt_mesh_nb_smoothing(OPT_ARGS_NUM)
Definition: Options.cpp:5878
ColorString
StringX4Int ColorString[]
Definition: Colors.h:11
CTX::jpegSmoothing
int jpegSmoothing
Definition: Context.h:342
opt_mesh_rand_factor3d
double opt_mesh_rand_factor3d(OPT_ARGS_NUM)
Definition: Options.cpp:5147
LegendrePolynomials::f
void f(int n, double u, double *val)
Definition: orthogonalBasis.cpp:77
CTX::pickElements
int pickElements
Definition: Context.h:294
opt_view_transform01
double opt_view_transform01(OPT_ARGS_NUM)
Definition: Options.cpp:7376
opt_mesh_algo3d
double opt_mesh_algo3d(OPT_ARGS_NUM)
Definition: Options.cpp:6058
StringXNumber
Definition: Options.h:918
opt_view_stipple9
std::string opt_view_stipple9(OPT_ARGS_STR)
Definition: Options.cpp:2123
opt_view_boundary
double opt_view_boundary(OPT_ARGS_NUM)
Definition: Options.cpp:8096
CTX::eye_sep_ratio
double eye_sep_ratio
Definition: Context.h:238
opt_post_force_element_data
double opt_post_force_element_data(OPT_ARGS_NUM)
Definition: Options.cpp:6923
opt_general_statistics_position1
double opt_general_statistics_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2521
opt_general_axes_value_xmin
double opt_general_axes_value_xmin(OPT_ARGS_NUM)
Definition: Options.cpp:3232
contextMeshOptions::recombineOptimizeTopology
int recombineOptimizeTopology
Definition: Context.h:30
GMSH_GET_DEFAULT
#define GMSH_GET_DEFAULT
Definition: Options.h:16
CTX::noPopup
int noPopup
Definition: Context.h:213
contextMeshOptions::qualityType
int qualityType
Definition: Context.h:86
opt_print_x3d_volumes
double opt_print_x3d_volumes(OPT_ARGS_NUM)
Definition: Options.cpp:9457
contextGeometryOptions::useTransform
int useTransform
Definition: Context.h:120
opt_solver_remote_login5
std::string opt_solver_remote_login5(OPT_ARGS_STR)
Definition: Options.cpp:1653
contextMeshOptions::partitionPyrWeight
int partitionPyrWeight
Definition: Context.h:76
ALGO_2D_PACK_PRLGRMS
#define ALGO_2D_PACK_PRLGRMS
Definition: GmshDefines.h:245
opt_general_file_chooser_position0
double opt_general_file_chooser_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2315
opt_general_axes_label1
std::string opt_general_axes_label1(OPT_ARGS_STR)
Definition: Options.cpp:1092
SBoundingBox3d::min
SPoint3 min() const
Definition: SBoundingBox3d.h:90
opt_mesh_smooth_cross_field
double opt_mesh_smooth_cross_field(OPT_ARGS_NUM)
Definition: Options.cpp:5819
contextMeshOptions::medFileMinorVersion
double medFileMinorVersion
Definition: Context.h:58
opt_mesh_lines
double opt_mesh_lines(OPT_ARGS_NUM)
Definition: Options.cpp:5281
opt_print_tex_width_in_mm
double opt_print_tex_width_in_mm(OPT_ARGS_NUM)
Definition: Options.cpp:9361
opt_solver_remote_login3
std::string opt_solver_remote_login3(OPT_ARGS_STR)
Definition: Options.cpp:1643
opt_geometry_transform00
double opt_geometry_transform00(OPT_ARGS_NUM)
Definition: Options.cpp:4209
opt_mesh_random_seed
double opt_mesh_random_seed(OPT_ARGS_NUM)
Definition: Options.cpp:6460
CTX::doubleClickedGraphPointCommand
std::string doubleClickedGraphPointCommand
Definition: Context.h:322
opt_geometry_color_surfaces
unsigned int opt_geometry_color_surfaces(OPT_ARGS_COL)
Definition: Options.cpp:9605
contextMeshOptions::lcMin
double lcMin
Definition: Context.h:25
opt_geometry_clip
double opt_geometry_clip(OPT_ARGS_NUM)
Definition: Options.cpp:4804
contextMeshOptions::order
int order
Definition: Context.h:35
opt_general_mouse_hover_meshes
double opt_general_mouse_hover_meshes(OPT_ARGS_NUM)
Definition: Options.cpp:3003
opt_view_colormap_curvature
double opt_view_colormap_curvature(OPT_ARGS_NUM)
Definition: Options.cpp:8861
opt_solver_name6
std::string opt_solver_name6(OPT_ARGS_STR)
Definition: Options.cpp:1487
opt_view_ymin
double opt_view_ymin(OPT_ARGS_NUM)
Definition: Options.cpp:7188
contextMeshOptions::nodeLabels
int nodeLabels
Definition: Context.h:86
opt_view_stipple8
std::string opt_view_stipple8(OPT_ARGS_STR)
Definition: Options.cpp:2108
opt_view_show_time
double opt_view_show_time(OPT_ARGS_NUM)
Definition: Options.cpp:8220
opt_mesh_recombine3d_level
double opt_mesh_recombine3d_level(OPT_ARGS_NUM)
Definition: Options.cpp:6016
CTX::bgImageSize
double bgImageSize[2]
Definition: Context.h:261
CTX::solver
struct CTX::@1 solver
CTX::axesLabel
std::string axesLabel[3]
Definition: Context.h:250
opt_mesh_nb_tetrahedra
double opt_mesh_nb_tetrahedra(OPT_ARGS_NUM)
Definition: Options.cpp:6512
Msg::SetProgressMeterStep
static void SetProgressMeterStep(int step)
Definition: GmshMessage.cpp:302
opt_mesh_partition_metis_algorithm
double opt_mesh_partition_metis_algorithm(OPT_ARGS_NUM)
Definition: Options.cpp:6564
opt_mesh_cgns_import_ignore_bc
double opt_mesh_cgns_import_ignore_bc(OPT_ARGS_NUM)
Definition: Options.cpp:6318
OPT_ARGS_COL
#define OPT_ARGS_COL
Definition: Options.h:27
opt_general_gamepad
double opt_general_gamepad(OPT_ARGS_NUM)
Definition: Options.cpp:3530
opt_mesh_second_order_incomplete
double opt_mesh_second_order_incomplete(OPT_ARGS_NUM)
Definition: Options.cpp:6293
contextMeshOptions::recombineNodeRepositioning
int recombineNodeRepositioning
Definition: Context.h:31
CTX::clipOnlyDrawIntersectingVolume
int clipOnlyDrawIntersectingVolume
Definition: Context.h:278
opt_post_double_clicked_graph_point_y
double opt_post_double_clicked_graph_point_y(OPT_ARGS_NUM)
Definition: Options.cpp:6948
opt_view_draw_prisms
double opt_view_draw_prisms(OPT_ARGS_NUM)
Definition: Options.cpp:8412
opt_general_light3
double opt_general_light3(OPT_ARGS_NUM)
Definition: Options.cpp:4055
opt_view_axes_label0
std::string opt_view_axes_label0(OPT_ARGS_STR)
Definition: Options.cpp:1796
opt_mesh_ho_fast_new_algo
double opt_mesh_ho_fast_new_algo(OPT_ARGS_NUM)
Definition: Options.cpp:6245
CTX::epsLineWidthFactor
double epsLineWidthFactor
Definition: Context.h:341
opt_print_height
double opt_print_height(OPT_ARGS_NUM)
Definition: Options.cpp:9379
opt_solver_extension
std::string opt_solver_extension(OPT_ARGS_STR)
Definition: Options.cpp:1507
ReInitOptions
void ReInitOptions(int num)
Definition: Options.cpp:504
opt_geometry_double_clicked_curve_command
std::string opt_geometry_double_clicked_curve_command(OPT_ARGS_STR)
Definition: Options.cpp:1409
PView.h
opt_general_recent_file3
std::string opt_general_recent_file3(OPT_ARGS_STR)
Definition: Options.cpp:1259
opt_solver_executable9
std::string opt_solver_executable9(OPT_ARGS_STR)
Definition: Options.cpp:1616
contextMeshOptions::maxRetries
int maxRetries
Definition: Context.h:34
opt_geometry_color_highlight0
unsigned int opt_geometry_color_highlight0(OPT_ARGS_COL)
Definition: Options.cpp:9635
CTX::rotationCenterCg
int rotationCenterCg
Definition: Context.h:227
opt_view_tensor_type
double opt_view_tensor_type(OPT_ARGS_NUM)
Definition: Options.cpp:8631
CTX::doubleClickedGraphPointY
double doubleClickedGraphPointY
Definition: Context.h:323
CTX::bgGradient
int bgGradient
Definition: Context.h:258
opt_view_custom_abscissa_max
double opt_view_custom_abscissa_max(OPT_ARGS_NUM)
Definition: Options.cpp:7152
contextMeshOptions::meshOnlyVisible
int meshOnlyVisible
Definition: Context.h:36
opt_mesh_msh_file_version
double opt_mesh_msh_file_version(OPT_ARGS_NUM)
Definition: Options.cpp:5681
OPT_ARGS_STR
#define OPT_ARGS_STR
Definition: Options.h:25
GeometryOptions_Color
StringXColor GeometryOptions_Color[]
Definition: DefaultOptions.h:2153
opt_general_light0
double opt_general_light0(OPT_ARGS_NUM)
Definition: Options.cpp:3930
opt_mesh_recombine3d_conformity
double opt_mesh_recombine3d_conformity(OPT_ARGS_NUM)
Definition: Options.cpp:6022
opt_print_tex_force_fontsize
double opt_print_tex_force_fontsize(OPT_ARGS_NUM)
Definition: Options.cpp:9355
opt_view_draw_quadrangles
double opt_view_draw_quadrangles(OPT_ARGS_NUM)
Definition: Options.cpp:8340
opt_geometry_curves
double opt_geometry_curves(OPT_ARGS_NUM)
Definition: Options.cpp:4367
contextGeometryOptions::doubleClickedPointCommand
std::string doubleClickedPointCommand
Definition: Context.h:122
opt_mesh_partition_hex_weight
double opt_mesh_partition_hex_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5719
contextMeshOptions::firstNodeTag
int firstNodeTag
Definition: Context.h:57
contextGeometryOptions::occThruSectionsDegree
int occThruSectionsDegree
Definition: Context.h:104
opt_view_draw_tensors
double opt_view_draw_tensors(OPT_ARGS_NUM)
Definition: Options.cpp:8532
opt_mesh_ho_optimize
double opt_mesh_ho_optimize(OPT_ARGS_NUM)
Definition: Options.cpp:6167
CTX::x3dTransparency
double x3dTransparency
Definition: Context.h:353
opt_general_xmin
double opt_general_xmin(OPT_ARGS_NUM)
Definition: Options.cpp:3049
CTX::glFont
std::string glFont
Definition: Context.h:266
opt_view_axes_format2
std::string opt_view_axes_format2(OPT_ARGS_STR)
Definition: Options.cpp:1876
opt_mesh_med_file_minor_version
double opt_mesh_med_file_minor_version(OPT_ARGS_NUM)
Definition: Options.cpp:5687
CTX::text
int text
Definition: Context.h:343
contextMeshOptions::prisms
int prisms
Definition: Context.h:83
CTX::glFontSizeTitle
int glFontSizeTitle
Definition: Context.h:267
_string2stipple
void _string2stipple(std::string str, int &repeat, int &pattern)
Definition: Options.cpp:1969
opt_general_graphics_size0
double opt_general_graphics_size0(OPT_ARGS_NUM)
Definition: Options.cpp:2275
opt_general_clip_position0
double opt_general_clip_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2539
contextMeshOptions::stlLinearDeflection
double stlLinearDeflection
Definition: Context.h:64
opt_print_parameter_first
double opt_print_parameter_first(OPT_ARGS_NUM)
Definition: Options.cpp:9397
CTX::shine
double shine
Definition: Context.h:275
opt_view_name
std::string opt_view_name(OPT_ARGS_STR)
Definition: Options.cpp:1715
opt_general_clip0d
double opt_general_clip0d(OPT_ARGS_NUM)
Definition: Options.cpp:3684
opt_post_save_interpolation_matrices
double opt_post_save_interpolation_matrices(OPT_ARGS_NUM)
Definition: Options.cpp:6935
opt_geometry_transform10
double opt_geometry_transform10(OPT_ARGS_NUM)
Definition: Options.cpp:4224
CTX::polygonOffsetFactor
double polygonOffsetFactor
Definition: Context.h:281
COLORTABLE_BIAS
#define COLORTABLE_BIAS
Definition: ColorTable.h:39
opt_post_anim_cycle
double opt_post_anim_cycle(OPT_ARGS_NUM)
Definition: Options.cpp:6846
opt_print_jpeg_smoothing
double opt_print_jpeg_smoothing(OPT_ARGS_NUM)
Definition: Options.cpp:9237
opt_general_axes_tics0
double opt_general_axes_tics0(OPT_ARGS_NUM)
Definition: Options.cpp:3127
opt_mesh_node_labels
double opt_mesh_node_labels(OPT_ARGS_NUM)
Definition: Options.cpp:5495
opt_general_polygon_offset_always
double opt_general_polygon_offset_always(OPT_ARGS_NUM)
Definition: Options.cpp:2230
opt_mesh_algo_switch_on_failure
double opt_mesh_algo_switch_on_failure(OPT_ARGS_NUM)
Definition: Options.cpp:5931
opt_general_quaternion1
double opt_general_quaternion1(OPT_ARGS_NUM)
Definition: Options.cpp:2700
opt_view_ymax
double opt_view_ymax(OPT_ARGS_NUM)
Definition: Options.cpp:7199
CTX::showMessagesOnStartup
int showMessagesOnStartup
Definition: Context.h:211
opt_solver_name7
std::string opt_solver_name7(OPT_ARGS_STR)
Definition: Options.cpp:1492
opt_view_arrow_size_max
double opt_view_arrow_size_max(OPT_ARGS_NUM)
Definition: Options.cpp:7535
opt_solver_name0
std::string opt_solver_name0(OPT_ARGS_STR)
Definition: Options.cpp:1457
opt_general_clip1b
double opt_general_clip1b(OPT_ARGS_NUM)
Definition: Options.cpp:3704
opt_mesh_lc_from_points
double opt_mesh_lc_from_points(OPT_ARGS_NUM)
Definition: Options.cpp:5077
opt_view_closed
double opt_view_closed(OPT_ARGS_NUM)
Definition: Options.cpp:9167
opt_mesh_surface_faces
double opt_mesh_surface_faces(OPT_ARGS_NUM)
Definition: Options.cpp:5450
CTX::fieldSize
int fieldSize[2]
Definition: Context.h:190
opt_mesh_tetrahedra
double opt_mesh_tetrahedra(OPT_ARGS_NUM)
Definition: Options.cpp:5334
opt_print_width
double opt_print_width(OPT_ARGS_NUM)
Definition: Options.cpp:9385
opt_view_component_map2
double opt_view_component_map2(OPT_ARGS_NUM)
Definition: Options.cpp:9138
GmshMessage.h
opt_general_clip5d
double opt_general_clip5d(OPT_ARGS_NUM)
Definition: Options.cpp:3884
opt_post_smooth
double opt_post_smooth(OPT_ARGS_NUM)
Definition: Options.cpp:6828
contextGeometryOptions::snapPoints
int snapPoints
Definition: Context.h:119
ColorTable_Print
void ColorTable_Print(GmshColorTable *ct, FILE *fp, std::vector< std::string > *vec)
Definition: ColorTable.cpp:1079
opt_general_light51
double opt_general_light51(OPT_ARGS_NUM)
Definition: Options.cpp:4127
opt_geometry_match_mesh_tolerance
double opt_geometry_match_mesh_tolerance(OPT_ARGS_NUM)
Definition: Options.cpp:4845
opt_view_draw_vectors
double opt_view_draw_vectors(OPT_ARGS_NUM)
Definition: Options.cpp:8508
contextMeshOptions::volumeLabels
int volumeLabels
Definition: Context.h:86
contextGeometryOptions::exactExtrusion
int exactExtrusion
Definition: Context.h:107
opt_mesh_partition_trih_weight
double opt_mesh_partition_trih_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5737
opt_general_background_image_size0
double opt_general_background_image_size0(OPT_ARGS_NUM)
Definition: Options.cpp:3489
SetNumberOptionsGUI
static void SetNumberOptionsGUI(int num, StringXNumber s[])
Definition: Options.cpp:236
CTX::x3dColorize
int x3dColorize
Definition: Context.h:354
contextMeshOptions::nodeType
int nodeType
Definition: Context.h:82
COLORTABLE_CURVATURE
#define COLORTABLE_CURVATURE
Definition: ColorTable.h:38
opt_general_point_size
double opt_general_point_size(OPT_ARGS_NUM)
Definition: Options.cpp:2855
opt_post_horizontal_scales
double opt_post_horizontal_scales(OPT_ARGS_NUM)
Definition: Options.cpp:6799
contextGeometryOptions::occImportLabels
int occImportLabels
Definition: Context.h:103
contextMeshOptions::volumeFaces
int volumeFaces
Definition: Context.h:85
CTX::ctxPosition
int ctxPosition[2]
Definition: Context.h:189
PViewData.h
opt_geometry_transform21
double opt_geometry_transform21(OPT_ARGS_NUM)
Definition: Options.cpp:4244
CTX::bgGrad
unsigned int bgGrad
Definition: Context.h:358
contextMeshOptions::medImportGroupsOfNodes
int medImportGroupsOfNodes
Definition: Context.h:59
opt_post_binary
double opt_post_binary(OPT_ARGS_NUM)
Definition: Options.cpp:6810
opt_general_expert_mode
double opt_general_expert_mode(OPT_ARGS_NUM)
Definition: Options.cpp:3569
opt_general_color_background_gradient
unsigned int opt_general_color_background_gradient(OPT_ARGS_COL)
Definition: Options.cpp:9500
opt_mesh_ho_curve_outer_BL
double opt_mesh_ho_curve_outer_BL(OPT_ARGS_NUM)
Definition: Options.cpp:6252
opt_mesh_max_retries
double opt_mesh_max_retries(OPT_ARGS_NUM)
Definition: Options.cpp:5939
opt_geometry_volumes
double opt_geometry_volumes(OPT_ARGS_NUM)
Definition: Options.cpp:4389
opt_general_clip5b
double opt_general_clip5b(OPT_ARGS_NUM)
Definition: Options.cpp:3864
contextMeshOptions::crossFieldClosestPoint
int crossFieldClosestPoint
Definition: Context.h:20
SolverOptions_Color
StringXColor SolverOptions_Color[]
Definition: DefaultOptions.h:2307
contextMeshOptions::metisEdgeMatching
int metisEdgeMatching
Definition: Context.h:78
contextMeshOptions::lcFromParametricPoints
int lcFromParametricPoints
Definition: Context.h:27
opt_view_axes_label1
std::string opt_view_axes_label1(OPT_ARGS_STR)
Definition: Options.cpp:1812
opt_general_option_position0
double opt_general_option_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2431
PViewOptions::MaxEigenValue
@ MaxEigenValue
Definition: PViewOptions.h:29
opt_general_graphics_size1
double opt_general_graphics_size1(OPT_ARGS_NUM)
Definition: Options.cpp:2289
CTX::optPosition
int optPosition[2]
Definition: Context.h:187
opt_mesh_refine_steps
double opt_mesh_refine_steps(OPT_ARGS_NUM)
Definition: Options.cpp:4894
opt_mesh_save_groups_of_nodes
double opt_mesh_save_groups_of_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:6419
opt_mesh_light_two_side
double opt_mesh_light_two_side(OPT_ARGS_NUM)
Definition: Options.cpp:5657
opt_geometry_highlight_orphans
double opt_geometry_highlight_orphans(OPT_ARGS_NUM)
Definition: Options.cpp:4306
opt_general_editor
std::string opt_general_editor(OPT_ARGS_STR)
Definition: Options.cpp:1313
opt_solver_python_interpreter
std::string opt_solver_python_interpreter(OPT_ARGS_STR)
Definition: Options.cpp:1678
drawContext::setGlobal
static void setGlobal(drawContextGlobal *global)
Definition: drawContext.h:169
opt_view_clip
double opt_view_clip(OPT_ARGS_NUM)
Definition: Options.cpp:9068
opt_view_explode
double opt_view_explode(OPT_ARGS_NUM)
Definition: Options.cpp:7616
ColorTable_InitParam
void ColorTable_InitParam(int number, GmshColorTable *ct)
Definition: ColorTable.cpp:22
opt_solver_extension1
std::string opt_solver_extension1(OPT_ARGS_STR)
Definition: Options.cpp:1519
contextMeshOptions::nodeSize
double nodeSize
Definition: Context.h:87
opt_geometry_double_clicked_entity_tag
double opt_geometry_double_clicked_entity_tag(OPT_ARGS_NUM)
Definition: Options.cpp:4820
opt_general_recent_file0
std::string opt_general_recent_file0(OPT_ARGS_STR)
Definition: Options.cpp:1241
opt_general_recent_file6
std::string opt_general_recent_file6(OPT_ARGS_STR)
Definition: Options.cpp:1277
opt_general_small_axes_position0
double opt_general_small_axes_position0(OPT_ARGS_NUM)
Definition: Options.cpp:3281
opt_mesh_color_8
unsigned int opt_mesh_color_8(OPT_ARGS_COL)
Definition: Options.cpp:9921
opt_mesh_ho_poisson
double opt_mesh_ho_poisson(OPT_ARGS_NUM)
Definition: Options.cpp:6232
contextGeometryOptions::curveLabels
int curveLabels
Definition: Context.h:115
opt_view_stipple0
std::string opt_view_stipple0(OPT_ARGS_STR)
Definition: Options.cpp:1988
opt_general_graphics_font_engine
std::string opt_general_graphics_font_engine(OPT_ARGS_STR)
Definition: Options.cpp:1370
drawContext::global
static drawContextGlobal * global()
Definition: drawContext.cpp:85
opt_geometry_normals
double opt_geometry_normals(OPT_ARGS_NUM)
Definition: Options.cpp:4334
opt_general_rotation_center_cg
double opt_general_rotation_center_cg(OPT_ARGS_NUM)
Definition: Options.cpp:3550
opt_geometry_offset2
double opt_geometry_offset2(OPT_ARGS_NUM)
Definition: Options.cpp:4284
contextGeometryOptions::matchGeomAndMesh
int matchGeomAndMesh
Definition: Context.h:108
opt_post_anim_step
double opt_post_anim_step(OPT_ARGS_NUM)
Definition: Options.cpp:6865
opt_mesh_angle_tolerance_facet_overlap
double opt_mesh_angle_tolerance_facet_overlap(OPT_ARGS_NUM)
Definition: Options.cpp:6647
contextMeshOptions::partitionCreateGhostCells
int partitionCreateGhostCells
Definition: Context.h:72
CTX::hotPosition
int hotPosition[2]
Definition: Context.h:187
opt_print_eps_point_size_factor
double opt_print_eps_point_size_factor(OPT_ARGS_NUM)
Definition: Options.cpp:9225
contextMeshOptions::recombine3DLevel
int recombine3DLevel
Definition: Context.h:33
opt_general_color_foreground
unsigned int opt_general_color_foreground(OPT_ARGS_COL)
Definition: Options.cpp:9510
contextMeshOptions::lcMax
double lcMax
Definition: Context.h:25
contextMeshOptions::lightLines
int lightLines
Definition: Context.h:82
opt_solver_executable5
std::string opt_solver_executable5(OPT_ARGS_STR)
Definition: Options.cpp:1596
CTX::axesAutoPosition
int axesAutoPosition
Definition: Context.h:248
opt_view_smooth_normals
double opt_view_smooth_normals(OPT_ARGS_NUM)
Definition: Options.cpp:8166
opt_mesh_cgns_export_cpex0045
double opt_mesh_cgns_export_cpex0045(OPT_ARGS_NUM)
Definition: Options.cpp:6342
opt_view_target_error
double opt_view_target_error(OPT_ARGS_NUM)
Definition: Options.cpp:7740
opt_view_colormap_alpha
double opt_view_colormap_alpha(OPT_ARGS_NUM)
Definition: Options.cpp:8781
contextGeometryOptions::lightTwoSide
int lightTwoSide
Definition: Context.h:114
opt_geometry_pipe_default_trihedron
std::string opt_geometry_pipe_default_trihedron(OPT_ARGS_STR)
Definition: Options.cpp:1433
opt_general_axes_format2
std::string opt_general_axes_format2(OPT_ARGS_STR)
Definition: Options.cpp:1136
opt_general_axes_ymin
double opt_general_axes_ymin(OPT_ARGS_NUM)
Definition: Options.cpp:3182
opt_geometry_color_selection
unsigned int opt_geometry_color_selection(OPT_ARGS_COL)
Definition: Options.cpp:9625
CTX::smooth
int smooth
Definition: Context.h:317
CTX::x3dSurfaces
int x3dSurfaces
Definition: Context.h:354
contextGeometryOptions::labelType
int labelType
Definition: Context.h:115
opt_view_colormap_bias
double opt_view_colormap_bias(OPT_ARGS_NUM)
Definition: Options.cpp:8841
opt_view_size1
double opt_view_size1(OPT_ARGS_NUM)
Definition: Options.cpp:7866
CTX::pgfExportAxis
int pgfExportAxis
Definition: Context.h:350
CTX::posSIGE
int posSIGE
Definition: Context.h:346
opt_mesh_line_width
double opt_mesh_line_width(OPT_ARGS_NUM)
Definition: Options.cpp:5562
Fopen
FILE * Fopen(const char *f, const char *mode)
Definition: OS.cpp:273
opt_view_double_clicked_command
std::string opt_view_double_clicked_command(OPT_ARGS_STR)
Definition: Options.cpp:1763
opt_view_intervals_type
double opt_view_intervals_type(OPT_ARGS_NUM)
Definition: Options.cpp:7650
opt_view_group
std::string opt_view_group(OPT_ARGS_STR)
Definition: Options.cpp:1774
StringXNumber::str
const char * str
Definition: Options.h:920
contextMeshOptions::scalingFactor
double scalingFactor
Definition: Context.h:58
opt_general_high_resolution_graphics
double opt_general_high_resolution_graphics(OPT_ARGS_NUM)
Definition: Options.cpp:2575
contextMeshOptions::toleranceInitialDelaunay
double toleranceInitialDelaunay
Definition: Context.h:25
opt_mesh_color_tangents
unsigned int opt_mesh_color_tangents(OPT_ARGS_COL)
Definition: Options.cpp:9851
contextMeshOptions::maxNumThreads3D
int maxNumThreads3D
Definition: Context.h:46
opt_mesh_ho_save_periodic
double opt_mesh_ho_save_periodic(OPT_ARGS_NUM)
Definition: Options.cpp:6184
opt_geometry_scaling_factor
double opt_geometry_scaling_factor(OPT_ARGS_NUM)
Definition: Options.cpp:4759
opt_view_color_prisms
unsigned int opt_view_color_prisms(OPT_ARGS_COL)
Definition: Options.cpp:10084
ENT_SURFACE
#define ENT_SURFACE
Definition: GmshDefines.h:233
opt_view_line_width
double opt_view_line_width(OPT_ARGS_NUM)
Definition: Options.cpp:8726
opt_mesh_color_quadrangles
unsigned int opt_mesh_color_quadrangles(OPT_ARGS_COL)
Definition: Options.cpp:9749
PluginManager::instance
static PluginManager * instance()
Definition: PluginManager.cpp:169
opt_post_nb_views
double opt_post_nb_views(OPT_ARGS_NUM)
Definition: Options.cpp:6902
contextMeshOptions::minLineNodes
int minLineNodes
Definition: Context.h:37
opt_general_axes_value_ymin
double opt_general_axes_value_ymin(OPT_ARGS_NUM)
Definition: Options.cpp:3244
CTX::animStep
int animStep
Definition: Context.h:317
opt_mesh_stl_remove_duplicate_triangles
double opt_mesh_stl_remove_duplicate_triangles(OPT_ARGS_NUM)
Definition: Options.cpp:5842
contextMeshOptions::partitionHexWeight
int partitionHexWeight
Definition: Context.h:75
opt_general_fontsize
double opt_general_fontsize(OPT_ARGS_NUM)
Definition: Options.cpp:2181
opt_general_light00
double opt_general_light00(OPT_ARGS_NUM)
Definition: Options.cpp:3936
DefaultOptions.h
opt_general_error_filename
std::string opt_general_error_filename(OPT_ARGS_STR)
Definition: Options.cpp:1223
opt_mesh_partition_metis_max_load_imbalance
double opt_mesh_partition_metis_max_load_imbalance(OPT_ARGS_NUM)
Definition: Options.cpp:6583
opt_mesh_aniso_max
double opt_mesh_aniso_max(OPT_ARGS_NUM)
Definition: Options.cpp:5605
opt_general_system_menu_bar
double opt_general_system_menu_bar(OPT_ARGS_NUM)
Definition: Options.cpp:2327
CTX::extraSize
int extraSize[2]
Definition: Context.h:191
CTX::bg
unsigned int bg
Definition: Context.h:358
CTX::inputScrolling
int inputScrolling
Definition: Context.h:183
opt_post_force_node_data
double opt_post_force_node_data(OPT_ARGS_NUM)
Definition: Options.cpp:6917
contextGeometryOptions::occSafeUnbind
int occSafeUnbind
Definition: Context.h:100
opt_general_clip_factor
double opt_general_clip_factor(OPT_ARGS_NUM)
Definition: Options.cpp:2826
opt_geometry_point_type
double opt_geometry_point_type(OPT_ARGS_NUM)
Definition: Options.cpp:4483
opt_general_camera_mode
double opt_general_camera_mode(OPT_ARGS_NUM)
Definition: Options.cpp:3641
CTX::fg
unsigned int fg
Definition: Context.h:358
opt_mesh_create_topology_msh2
double opt_mesh_create_topology_msh2(OPT_ARGS_NUM)
Definition: Options.cpp:5797
opt_solver_remote_login
std::string opt_solver_remote_login(OPT_ARGS_STR)
Definition: Options.cpp:1621
opt_view_nb_timestep
double opt_view_nb_timestep(OPT_ARGS_NUM)
Definition: Options.cpp:6960
CTX::ortho
int ortho
Definition: Context.h:240
adaptiveData.h
opt_print_pos_elementary
double opt_print_pos_elementary(OPT_ARGS_NUM)
Definition: Options.cpp:9255
contextMeshOptions::switchElementTags
int switchElementTags
Definition: Context.h:67
opt_mesh_node_type
double opt_mesh_node_type(OPT_ARGS_NUM)
Definition: Options.cpp:5550
opt_mesh_lc_min
double opt_mesh_lc_min(OPT_ARGS_NUM)
Definition: Options.cpp:4997
opt_solver_octave_interpreter
std::string opt_solver_octave_interpreter(OPT_ARGS_STR)
Definition: Options.cpp:1689
opt_mesh_unv_strict_format
double opt_mesh_unv_strict_format(OPT_ARGS_NUM)
Definition: Options.cpp:6664
opt_mesh_cpu_time
double opt_mesh_cpu_time(OPT_ARGS_NUM)
Definition: Options.cpp:6547
opt_geometry_light
double opt_geometry_light(OPT_ARGS_NUM)
Definition: Options.cpp:4546
opt_mesh_color_13
unsigned int opt_mesh_color_13(OPT_ARGS_COL)
Definition: Options.cpp:9941
CTX::shineExponent
double shineExponent
Definition: Context.h:275
CTX::instance
static CTX * instance()
Definition: Context.cpp:122
opt_solver_auto_save_database
double opt_solver_auto_save_database(OPT_ARGS_NUM)
Definition: Options.cpp:6749
opt_view_axes_xmin
double opt_view_axes_xmin(OPT_ARGS_NUM)
Definition: Options.cpp:7934
ALGO_2D_FRONTAL_QUAD
#define ALGO_2D_FRONTAL_QUAD
Definition: GmshDefines.h:244
contextGeometryOptions::selectedCurveWidth
double selectedCurveWidth
Definition: Context.h:116
opt_print_pos_element
double opt_print_pos_element(OPT_ARGS_NUM)
Definition: Options.cpp:9261
CTX::posElementary
int posElementary
Definition: Context.h:346
opt_mesh_label_sampling
double opt_mesh_label_sampling(OPT_ARGS_NUM)
Definition: Options.cpp:5573
_h2d
int _h2d(char c)
Definition: Options.cpp:1946
CTX::polygonOffsetAlways
int polygonOffsetAlways
Definition: Context.h:280
opt_geometry_curve_sel_width
double opt_geometry_curve_sel_width(OPT_ARGS_NUM)
Definition: Options.cpp:4506
PrintOptions
void PrintOptions(int num, int level, int diff, int help, const char *filename, std::vector< std::string > *vec)
Definition: Options.cpp:636
SPoint3::x
double x(void) const
Definition: SPoint3.h:125
opt_general_clip0c
double opt_general_clip0c(OPT_ARGS_NUM)
Definition: Options.cpp:3674
opt_view_center_glyphs
double opt_view_center_glyphs(OPT_ARGS_NUM)
Definition: Options.cpp:8691
opt_mesh_nodes
double opt_mesh_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:5270
opt_geometry_double_clicked_surface_command
std::string opt_geometry_double_clicked_surface_command(OPT_ARGS_STR)
Definition: Options.cpp:1415
contextMeshOptions::saveParametric
int saveParametric
Definition: Context.h:66
contextMeshOptions::smoothRatio
double smoothRatio
Definition: Context.h:26
opt_print_x3d_edges
double opt_print_x3d_edges(OPT_ARGS_NUM)
Definition: Options.cpp:9445
opt_general_light01
double opt_general_light01(OPT_ARGS_NUM)
Definition: Options.cpp:3952
opt_mesh_color_normals
unsigned int opt_mesh_color_normals(OPT_ARGS_COL)
Definition: Options.cpp:9861
contextGeometryOptions::occMakeSolids
int occMakeSolids
Definition: Context.h:102
opt_print_delete_tmp_files
double opt_print_delete_tmp_files(OPT_ARGS_NUM)
Definition: Options.cpp:9373
opt_print_parameter_steps
double opt_print_parameter_steps(OPT_ARGS_NUM)
Definition: Options.cpp:9409
opt_general_light30
double opt_general_light30(OPT_ARGS_NUM)
Definition: Options.cpp:4061
contextMeshOptions::cgnsExportStructured
int cgnsExportStructured
Definition: Context.h:69
contextGeometryOptions::occDisableSTL
int occDisableSTL
Definition: Context.h:103
SolverOptions_Number
StringXNumber SolverOptions_Number[]
Definition: DefaultOptions.h:1602
StringXColor
Definition: Options.h:926
opt_geometry_color_highlight1
unsigned int opt_geometry_color_highlight1(OPT_ARGS_COL)
Definition: Options.cpp:9645
contextGeometryOptions::occFixSmallFaces
int occFixSmallFaces
Definition: Context.h:101
CTX::posDisto
int posDisto
Definition: Context.h:346
StringX4Int::str
const char * str
Definition: Options.h:906
CTX::axesValue
double axesValue[6]
Definition: Context.h:249
CTX::normals
unsigned int normals
Definition: Context.h:363
contextMeshOptions::medSingleModel
int medSingleModel
Definition: Context.h:59
opt_general_light41
double opt_general_light41(OPT_ARGS_NUM)
Definition: Options.cpp:4097
GET_VIEW
#define GET_VIEW(error_val)
Definition: Options.cpp:1037
opt_general_recent_file4
std::string opt_general_recent_file4(OPT_ARGS_STR)
Definition: Options.cpp:1265
CTX::showModuleMenu
int showModuleMenu
Definition: Context.h:197
GModel::bounds
SBoundingBox3d bounds(bool aroundVisible=false)
Definition: GModel.cpp:1043
CTX::mouseHoverMeshes
int mouseHoverMeshes
Definition: Context.h:294
opt_general_version
std::string opt_general_version(OPT_ARGS_STR)
Definition: Options.cpp:1172
contextMeshOptions::lineWidth
double lineWidth
Definition: Context.h:87
contextGeometryOptions::occBooleanPreserveNumbering
int occBooleanPreserveNumbering
Definition: Context.h:102
opt_view_draw_tetrahedra
double opt_view_draw_tetrahedra(OPT_ARGS_NUM)
Definition: Options.cpp:8364
GamePad.h
CTX::posGamma
int posGamma
Definition: Context.h:346
opt_geometry_occ_auto_fix
double opt_geometry_occ_auto_fix(OPT_ARGS_NUM)
Definition: Options.cpp:4580
contextGeometryOptions::reparamOnFaceRobust
int reparamOnFaceRobust
Definition: Context.h:112
opt_view_color_text3d
unsigned int opt_view_color_text3d(OPT_ARGS_COL)
Definition: Options.cpp:10196
contextMeshOptions::tetrahedra
int tetrahedra
Definition: Context.h:83
opt_general_clip2b
double opt_general_clip2b(OPT_ARGS_NUM)
Definition: Options.cpp:3744
opt_general_tooltips
double opt_general_tooltips(OPT_ARGS_NUM)
Definition: Options.cpp:2937
opt_general_menu_size0
double opt_general_menu_size0(OPT_ARGS_NUM)
Definition: Options.cpp:2388
GMSH_DEPRECATED
#define GMSH_DEPRECATED
Definition: Options.h:21
opt_mesh_color_5
unsigned int opt_mesh_color_5(OPT_ARGS_COL)
Definition: Options.cpp:9909
CTX::autoShowLastStep
int autoShowLastStep
Definition: Context.h:335
contextGeometryOptions::doubleClickedEntityTag
int doubleClickedEntityTag
Definition: Context.h:121
opt_general_clip1a
double opt_general_clip1a(OPT_ARGS_NUM)
Definition: Options.cpp:3694
contextMeshOptions::numSubEdges
int numSubEdges
Definition: Context.h:85
StringX4Int::int2
int int2
Definition: Options.h:907
opt_mesh_color_2
unsigned int opt_mesh_color_2(OPT_ARGS_COL)
Definition: Options.cpp:9897
opt_view_raise0
double opt_view_raise0(OPT_ARGS_NUM)
Definition: Options.cpp:7286
opt_general_quaternion3
double opt_general_quaternion3(OPT_ARGS_NUM)
Definition: Options.cpp:2728
opt_general_light5
double opt_general_light5(OPT_ARGS_NUM)
Definition: Options.cpp:4115
contextMeshOptions::algoSubdivide
int algoSubdivide
Definition: Context.h:29
CTX::autoArchiveOutputFiles
int autoArchiveOutputFiles
Definition: Context.h:334
opt_geometry_color_highlight2
unsigned int opt_geometry_color_highlight2(OPT_ARGS_COL)
Definition: Options.cpp:9655
opt_mesh_color_3
unsigned int opt_mesh_color_3(OPT_ARGS_COL)
Definition: Options.cpp:9901
SetDefaultStringOptions
static void SetDefaultStringOptions(int num, StringXString s[])
Definition: Options.cpp:104
StringXColor::function
unsigned int(* function)(int num, int action, unsigned int val)
Definition: Options.h:929
opt_mesh_mesh_only_visible
double opt_mesh_mesh_only_visible(OPT_ARGS_NUM)
Definition: Options.cpp:6091
opt_geometry_color_tangents
unsigned int opt_geometry_color_tangents(OPT_ARGS_COL)
Definition: Options.cpp:9665
contextGeometryOptions::doubleClickedCurveCommand
std::string doubleClickedCurveCommand
Definition: Context.h:122
opt_view_light_two_side
double opt_view_light_two_side(OPT_ARGS_NUM)
Definition: Options.cpp:8136
opt_general_field_size1
double opt_general_field_size1(OPT_ARGS_NUM)
Definition: Options.cpp:2485
opt_print_pos_SICN
double opt_print_pos_SICN(OPT_ARGS_NUM)
Definition: Options.cpp:9279
GMSH_Plugin::getNbOptions
virtual int getNbOptions() const
Definition: Plugin.h:61
opt_mesh_color_14
unsigned int opt_mesh_color_14(OPT_ARGS_COL)
Definition: Options.cpp:9945
opt_mesh_algo_recombine
double opt_mesh_algo_recombine(OPT_ARGS_NUM)
Definition: Options.cpp:5945
contextMeshOptions::recombineMinimumQuality
double recombineMinimumQuality
Definition: Context.h:32
opt_general_hot_position1
double opt_general_hot_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2569
opt_view_position1
double opt_view_position1(OPT_ARGS_NUM)
Definition: Options.cpp:7818
opt_general_camera_aperture
double opt_general_camera_aperture(OPT_ARGS_NUM)
Definition: Options.cpp:3630
opt_geometry_snap1
double opt_geometry_snap1(OPT_ARGS_NUM)
Definition: Options.cpp:4782
opt_general_lc
double opt_general_lc(OPT_ARGS_NUM)
Definition: Options.cpp:3085
opt_view_saturate_values
double opt_view_saturate_values(OPT_ARGS_NUM)
Definition: Options.cpp:7670
contextGeometryOptions::surfaceType
int surfaceType
Definition: Context.h:117
contextMeshOptions::drawSkinOnly
int drawSkinOnly
Definition: Context.h:88
opt_mesh_color_11
unsigned int opt_mesh_color_11(OPT_ARGS_COL)
Definition: Options.cpp:9933
contextGeometryOptions::transform
double transform[3][3]
Definition: Context.h:99
PluginManager::end
std::map< std::string, GMSH_Plugin * >::iterator end()
Definition: PluginManager.h:48
opt_mesh_stl_one_solid_per_surface
double opt_mesh_stl_one_solid_per_surface(OPT_ARGS_NUM)
Definition: Options.cpp:5850
opt_mesh_angle_smooth_normals
double opt_mesh_angle_smooth_normals(OPT_ARGS_NUM)
Definition: Options.cpp:5611
opt_mesh_save_element_tag_type
double opt_mesh_save_element_tag_type(OPT_ARGS_NUM)
Definition: Options.cpp:6382
contextMeshOptions::partitionTriWeight
int partitionTriWeight
Definition: Context.h:74
Colors.h
CTX::posElement
int posElement
Definition: Context.h:346
opt_general_rotation1
double opt_general_rotation1(OPT_ARGS_NUM)
Definition: Options.cpp:2627
contextMeshOptions::recombine3DAll
int recombine3DAll
Definition: Context.h:33
opt_view_axes_ymin
double opt_view_axes_ymin(OPT_ARGS_NUM)
Definition: Options.cpp:7966
opt_general_draw_bounding_box
double opt_general_draw_bounding_box(OPT_ARGS_NUM)
Definition: Options.cpp:3038
opt_mesh_med_import_groups_of_nodes
double opt_mesh_med_import_groups_of_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:5693
CTX::gamepad
GamePad * gamepad
Definition: Context.h:223
opt_general_message_fontsize
double opt_general_message_fontsize(OPT_ARGS_NUM)
Definition: Options.cpp:2354
opt_solver_remote_login0
std::string opt_solver_remote_login0(OPT_ARGS_STR)
Definition: Options.cpp:1628
CTX::useTrackball
int useTrackball
Definition: Context.h:221
contextMeshOptions::readGroupsOfElements
int readGroupsOfElements
Definition: Context.h:61
opt_solver_name3
std::string opt_solver_name3(OPT_ARGS_STR)
Definition: Options.cpp:1472
opt_view_min_visible
double opt_view_min_visible(OPT_ARGS_NUM)
Definition: Options.cpp:7071
opt_general_xmax
double opt_general_xmax(OPT_ARGS_NUM)
Definition: Options.cpp:3055
CTX::axes
int axes
Definition: Context.h:248
ALGO_2D_FRONTAL
#define ALGO_2D_FRONTAL
Definition: GmshDefines.h:242
opt_view_stipple1
std::string opt_view_stipple1(OPT_ARGS_STR)
Definition: Options.cpp:2003
opt_mesh_partition_line_weight
double opt_mesh_partition_line_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5761
CTX::autoMesh
int autoMesh
Definition: Context.h:334
opt_general_stereo_mode
double opt_general_stereo_mode(OPT_ARGS_NUM)
Definition: Options.cpp:3597
CTX::smallAxesPos
int smallAxesPos[2]
Definition: Context.h:246
opt_solver_listen
double opt_solver_listen(OPT_ARGS_NUM)
Definition: Options.cpp:6715
CTX::lc
double lc
Definition: Context.h:234
PluginManager.h
SBoundingBox3d::empty
bool empty()
Definition: SBoundingBox3d.h:36
opt_view_axes_mikado
double opt_view_axes_mikado(OPT_ARGS_NUM)
Definition: Options.cpp:7901
CTX::deleteTmpFiles
int deleteTmpFiles
Definition: Context.h:347
CTX::camera_aperture
double camera_aperture
Definition: Context.h:238
opt_mesh_scaling_factor
double opt_mesh_scaling_factor(OPT_ARGS_NUM)
Definition: Options.cpp:4965
opt_view_color_lines
unsigned int opt_view_color_lines(OPT_ARGS_COL)
Definition: Options.cpp:9989
opt_general_extra_position1
double opt_general_extra_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2497
CTX::expertMode
int expertMode
Definition: Context.h:298
opt_general_axes_mikado
double opt_general_axes_mikado(OPT_ARGS_NUM)
Definition: Options.cpp:3103
CTX::display
std::string display
Definition: Context.h:161
CTX::nonModalWindows
int nonModalWindows
Definition: Context.h:215
contextMeshOptions::algo3d
int algo3d
Definition: Context.h:29
opt_mesh_nb_nodes
double opt_mesh_nb_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:6491
opt_view_colormap_swap
double opt_view_colormap_swap(OPT_ARGS_NUM)
Definition: Options.cpp:8944
PostProcessingOptions_String
StringXString PostProcessingOptions_String[]
Definition: DefaultOptions.h:278
GMSH_FULLRC
#define GMSH_FULLRC
Definition: Options.h:20
opt_solver_auto_check
double opt_solver_auto_check(OPT_ARGS_NUM)
Definition: Options.cpp:6762
CTX::ambientLight
unsigned int ambientLight[6]
Definition: Context.h:359
opt_mesh_quadqs_sizemap_method
double opt_mesh_quadqs_sizemap_method(OPT_ARGS_NUM)
Definition: Options.cpp:6683
opt_mesh_mesh_only_empty
double opt_mesh_mesh_only_empty(OPT_ARGS_NUM)
Definition: Options.cpp:6102
opt_mesh_color_nodes_sup
unsigned int opt_mesh_color_nodes_sup(OPT_ARGS_COL)
Definition: Options.cpp:9705
opt_post_link
double opt_post_link(OPT_ARGS_NUM)
Definition: Options.cpp:6816
opt_view_point_type
double opt_view_point_type(OPT_ARGS_NUM)
Definition: Options.cpp:8741
CTX::axesPosition
double axesPosition[6]
Definition: Context.h:249
contextMeshOptions::clip
int clip
Definition: Context.h:89
contextGeometryOptions::occFixDegenerated
int occFixDegenerated
Definition: Context.h:101
opt_general_nopopup
double opt_general_nopopup(OPT_ARGS_NUM)
Definition: Options.cpp:2914
opt_geometry_occ_make_solids
double opt_geometry_occ_make_solids(OPT_ARGS_NUM)
Definition: Options.cpp:4646
contextMeshOptions::preserveNumberingMsh2
int preserveNumberingMsh2
Definition: Context.h:70
CTX::showOptionsOnStartup
int showOptionsOnStartup
Definition: Context.h:211
opt_general_polygon_offset_units
double opt_general_polygon_offset_units(OPT_ARGS_NUM)
Definition: Options.cpp:2252
opt_general_clip4a
double opt_general_clip4a(OPT_ARGS_NUM)
Definition: Options.cpp:3814
opt_mesh_color_trihedron
unsigned int opt_mesh_color_trihedron(OPT_ARGS_COL)
Definition: Options.cpp:9834
CTX::geoLabels
int geoLabels
Definition: Context.h:342
contextMeshOptions::hoMaxInnerAngle
double hoMaxInnerAngle
Definition: Context.h:43
opt_geometry_occ_safe_unbind
double opt_geometry_occ_safe_unbind(OPT_ARGS_NUM)
Definition: Options.cpp:4574
opt_view_axes_auto_position
double opt_view_axes_auto_position(OPT_ARGS_NUM)
Definition: Options.cpp:7917
PrintOptions_Number
StringXNumber PrintOptions_Number[]
Definition: DefaultOptions.h:1989
GMSH_Plugin::getName
virtual std::string getName() const =0
opt_mesh_lc_from_curvature_iso
double opt_mesh_lc_from_curvature_iso(OPT_ARGS_NUM)
Definition: Options.cpp:5066
opt_view_component_map5
double opt_view_component_map5(OPT_ARGS_NUM)
Definition: Options.cpp:9150
drawContextGlobal
Definition: drawContext.h:93
_opt_geometry_offset
static double _opt_geometry_offset(OPT_ARGS_NUM, int ii, int nn)
Definition: Options.cpp:4254
opt_mesh_ho_periodic
double opt_mesh_ho_periodic(OPT_ARGS_NUM)
Definition: Options.cpp:6178
opt_view_draw_triangles
double opt_view_draw_triangles(OPT_ARGS_NUM)
Definition: Options.cpp:8316
opt_mesh_dual
double opt_mesh_dual(OPT_ARGS_NUM)
Definition: Options.cpp:6358
opt_general_recent_file1
std::string opt_general_recent_file1(OPT_ARGS_STR)
Definition: Options.cpp:1247
contextMeshOptions::maxNumThreads2D
int maxNumThreads2D
Definition: Context.h:46
ReplaceSubString
std::string ReplaceSubString(const std::string &olds, const std::string &news, const std::string &str)
Definition: StringUtils.cpp:140
opt_view_light
double opt_view_light(OPT_ARGS_NUM)
Definition: Options.cpp:8116
CTX::name
std::string name[NUM_SOLVERS]
Definition: Context.h:331
contextMeshOptions::saveWithoutOrphans
int saveWithoutOrphans
Definition: Context.h:66
contextGeometryOptions::tangents
double tangents
Definition: Context.h:118
opt_general_axes_label2
std::string opt_general_axes_label2(OPT_ARGS_STR)
Definition: Options.cpp:1103
contextMeshOptions::compoundClassify
int compoundClassify
Definition: Context.h:48
opt_general_plugin_position1
double opt_general_plugin_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2449
opt_mesh_color_15
unsigned int opt_mesh_color_15(OPT_ARGS_COL)
Definition: Options.cpp:9949
CTX::optionsFileName
std::string optionsFileName
Definition: Context.h:142
opt_general_axes_ymax
double opt_general_axes_ymax(OPT_ARGS_NUM)
Definition: Options.cpp:3193
opt_mesh_bdf_field_format
double opt_mesh_bdf_field_format(OPT_ARGS_NUM)
Definition: Options.cpp:5831
FieldManager::mapTypeName
std::map< std::string, FieldFactory * > mapTypeName
Definition: Field.h:151
opt_mesh_partition_qua_weight
double opt_mesh_partition_qua_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5743
opt_solver_name2
std::string opt_solver_name2(OPT_ARGS_STR)
Definition: Options.cpp:1467
contextMeshOptions::createTopologyMsh2
int createTopologyMsh2
Definition: Context.h:70
contextMeshOptions::nodes
int nodes
Definition: Context.h:83
PostProcessingOptions_Color
StringXColor PostProcessingOptions_Color[]
Definition: DefaultOptions.h:2311
drawContextGlobal::getName
virtual std::string getName()
Definition: drawContext.h:111
Msg::SetOnelabChanged
static void SetOnelabChanged(int value, const std::string &client="Gmsh")
Definition: GmshMessage.cpp:1612
contextGeometryOptions::occBoundsUseSTL
int occBoundsUseSTL
Definition: Context.h:103
CTX::clipPlane
double clipPlane[6][4]
Definition: Context.h:277
CTX::fieldPosition
int fieldPosition[2]
Definition: Context.h:190
opt_mesh_voronoi
double opt_mesh_voronoi(OPT_ARGS_NUM)
Definition: Options.cpp:6364
CTX::texForceFontSize
int texForceFontSize
Definition: Context.h:343
opt_view_transform12
double opt_view_transform12(OPT_ARGS_NUM)
Definition: Options.cpp:7448
opt_solver_extension5
std::string opt_solver_extension5(OPT_ARGS_STR)
Definition: Options.cpp:1539
opt_geometry_double_clicked_point_command
std::string opt_geometry_double_clicked_point_command(OPT_ARGS_STR)
Definition: Options.cpp:1403
CTX::alpha
int alpha
Definition: Context.h:254
opt_mesh_triangles
double opt_mesh_triangles(OPT_ARGS_NUM)
Definition: Options.cpp:5296
opt_print_gif_dither
double opt_print_gif_dither(OPT_ARGS_NUM)
Definition: Options.cpp:9297
opt_general_file_chooser_position1
double opt_general_file_chooser_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2321
opt_view_axes_xmax
double opt_view_axes_xmax(OPT_ARGS_NUM)
Definition: Options.cpp:7950
PrintColorTable
static void PrintColorTable(int num, int diff, const char *prefix, FILE *file, std::vector< std::string > *vec)
Definition: Options.cpp:583
contextMeshOptions::partitionSplitMeshFiles
int partitionSplitMeshFiles
Definition: Context.h:73
opt_geometry_transform11
double opt_geometry_transform11(OPT_ARGS_NUM)
Definition: Options.cpp:4229
opt_geometry_tolerance_boolean
double opt_geometry_tolerance_boolean(OPT_ARGS_NUM)
Definition: Options.cpp:4328
opt_geometry_curve_width
double opt_geometry_curve_width(OPT_ARGS_NUM)
Definition: Options.cpp:4495
opt_general_light20
double opt_general_light20(OPT_ARGS_NUM)
Definition: Options.cpp:4031
opt_solver_extension8
std::string opt_solver_extension8(OPT_ARGS_STR)
Definition: Options.cpp:1554
CTX::glPosition
int glPosition[2]
Definition: Context.h:185
PViewOptions.h
opt_general_gui_theme
std::string opt_general_gui_theme(OPT_ARGS_STR)
Definition: Options.cpp:1330
opt_mesh_ho_nlayers
double opt_mesh_ho_nlayers(OPT_ARGS_NUM)
Definition: Options.cpp:6190
opt_mesh_partition_tet_weight
double opt_mesh_partition_tet_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5749
opt_solver_auto_merge_file
double opt_solver_auto_merge_file(OPT_ARGS_NUM)
Definition: Options.cpp:6774
opt_general_background_gradient
double opt_general_background_gradient(OPT_ARGS_NUM)
Definition: Options.cpp:3462
opt_mesh_compound_classify
double opt_mesh_compound_classify(OPT_ARGS_NUM)
Definition: Options.cpp:6448
contextGeometryOptions::orientedPhysicals
int orientedPhysicals
Definition: Context.h:111
PrintStringOptionsDoc
static void PrintStringOptionsDoc(StringXString s[], const char *prefix, FILE *file)
Definition: Options.cpp:162
CTX::tmpQuaternion
double tmpQuaternion[4]
Definition: Context.h:309
opt_general_context_position1
double opt_general_context_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2309
opt_solver_extension4
std::string opt_solver_extension4(OPT_ARGS_STR)
Definition: Options.cpp:1534
PViewOptions::MinEigenValue
@ MinEigenValue
Definition: PViewOptions.h:30
opt_general_message_size
double opt_general_message_size(OPT_ARGS_NUM)
Definition: Options.cpp:2345
opt_mesh_tolerance_initial_delaunay
double opt_mesh_tolerance_initial_delaunay(OPT_ARGS_NUM)
Definition: Options.cpp:5038
opt_view_normals
double opt_view_normals(OPT_ARGS_NUM)
Definition: Options.cpp:7550
CTX::executable
std::string executable[NUM_SOLVERS]
Definition: Context.h:332
GMSH_GUI
#define GMSH_GUI
Definition: Options.h:14
opt_print_pos_SIGE
double opt_print_pos_SIGE(OPT_ARGS_NUM)
Definition: Options.cpp:9285
CTX::epsPS3Shading
int epsPS3Shading
Definition: Context.h:339
opt_general_menu_position1
double opt_general_menu_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2421
CTX::smallAxes
int smallAxes
Definition: Context.h:246
opt_general_plugin_size0
double opt_general_plugin_size0(OPT_ARGS_NUM)
Definition: Options.cpp:2455
opt_general_axes_xmax
double opt_general_axes_xmax(OPT_ARGS_NUM)
Definition: Options.cpp:3171
CTX::binary
int binary
Definition: Context.h:316
PViewOptions::VonMises
@ VonMises
Definition: PViewOptions.h:28
contextMeshOptions::partitionOldStyleMsh2
int partitionOldStyleMsh2
Definition: Context.h:77
contextMeshOptions::hoPeriodic
int hoPeriodic
Definition: Context.h:38
FieldManager
Definition: Field.h:145
CTX::optionsSave
int optionsSave
Definition: Context.h:157
SolverOptions_String
StringXString SolverOptions_String[]
Definition: DefaultOptions.h:174
GetOptionSaveLevel
static const char * GetOptionSaveLevel(int level)
Definition: Options.cpp:151
opt_view_custom_min
double opt_view_custom_min(OPT_ARGS_NUM)
Definition: Options.cpp:7101
opt_general_light12
double opt_general_light12(OPT_ARGS_NUM)
Definition: Options.cpp:4013
NUM_SOLVERS
#define NUM_SOLVERS
Definition: Context.h:13
CTX::focallength_ratio
double focallength_ratio
Definition: Context.h:238
GmshDefines.h
CTX::diffuseLight
unsigned int diffuseLight[6]
Definition: Context.h:359
opt_geometry_occ_bounds_use_stl
double opt_geometry_occ_bounds_use_stl(OPT_ARGS_NUM)
Definition: Options.cpp:4586
CTX::glFontTitle
std::string glFontTitle
Definition: Context.h:266
opt_mesh_stl_linear_deflection_relative
double opt_mesh_stl_linear_deflection_relative(OPT_ARGS_NUM)
Definition: Options.cpp:5864
opt_print_parameter_command
std::string opt_print_parameter_command(OPT_ARGS_STR)
Definition: Options.cpp:2149
opt_general_color_text
unsigned int opt_general_color_text(OPT_ARGS_COL)
Definition: Options.cpp:9519
CTX::saveInterpolationMatrices
int saveInterpolationMatrices
Definition: Context.h:320
opt_general_clip2c
double opt_general_clip2c(OPT_ARGS_NUM)
Definition: Options.cpp:3754
contextGeometryOptions::autoCoherence
int autoCoherence
Definition: Context.h:97
opt_general_antialiasing
double opt_general_antialiasing(OPT_ARGS_NUM)
Definition: Options.cpp:3344
SPoint3::y
double y(void) const
Definition: SPoint3.h:127
opt_view_gen_raise2
std::string opt_view_gen_raise2(OPT_ARGS_STR)
Definition: Options.cpp:1928
contextMeshOptions::hoDistCAD
int hoDistCAD
Definition: Context.h:39
contextMeshOptions::unvStrictFormat
int unvStrictFormat
Definition: Context.h:63
opt_general_confirm_overwrite
double opt_general_confirm_overwrite(OPT_ARGS_NUM)
Definition: Options.cpp:2603
opt_general_translation0
double opt_general_translation0(OPT_ARGS_NUM)
Definition: Options.cpp:2742
opt_mesh_tangents
double opt_mesh_tangents(OPT_ARGS_NUM)
Definition: Options.cpp:4939
opt_general_clip3d
double opt_general_clip3d(OPT_ARGS_NUM)
Definition: Options.cpp:3804
opt_mesh_partition_create_ghost_cells
double opt_mesh_partition_create_ghost_cells(OPT_ARGS_NUM)
Definition: Options.cpp:5779
opt_geometry_curve_labels
double opt_geometry_curve_labels(OPT_ARGS_NUM)
Definition: Options.cpp:4411
opt_geometry_curve_type
double opt_geometry_curve_type(OPT_ARGS_NUM)
Definition: Options.cpp:4517
opt_mesh_volume_edges
double opt_mesh_volume_edges(OPT_ARGS_NUM)
Definition: Options.cpp:5465
contextMeshOptions::quadrangles
int quadrangles
Definition: Context.h:83
contextMeshOptions::recombine3DConformity
int recombine3DConformity
Definition: Context.h:33
opt_mesh_color_7
unsigned int opt_mesh_color_7(OPT_ARGS_COL)
Definition: Options.cpp:9917
contextMeshOptions::metisMinConn
int metisMinConn
Definition: Context.h:79
opt_solver_plugins
double opt_solver_plugins(OPT_ARGS_NUM)
Definition: Options.cpp:6737
opt_general_plugin_size1
double opt_general_plugin_size1(OPT_ARGS_NUM)
Definition: Options.cpp:2461
contextMeshOptions::ignorePeriodicityMsh2
int ignorePeriodicityMsh2
Definition: Context.h:45
opt_view_draw_pyramids
double opt_view_draw_pyramids(OPT_ARGS_NUM)
Definition: Options.cpp:8436
contextMeshOptions::minCurveNodes
int minCurveNodes
Definition: Context.h:37
PrintOptionCategory
static void PrintOptionCategory(int level, int diff, int help, const char *cat, FILE *file, std::vector< std::string > *vec=nullptr)
Definition: Options.cpp:545
opt_mesh_first_element_tag
double opt_mesh_first_element_tag(OPT_ARGS_NUM)
Definition: Options.cpp:5254
contextGeometryOptions::pipeDefaultTrihedron
std::string pipeDefaultTrihedron
Definition: Context.h:96
CTX::specularLight
unsigned int specularLight[6]
Definition: Context.h:359
opt_view_stipple2
std::string opt_view_stipple2(OPT_ARGS_STR)
Definition: Options.cpp:2018
opt_general_small_axes_size
double opt_general_small_axes_size(OPT_ARGS_NUM)
Definition: Options.cpp:3303
contextMeshOptions::hoNLayers
int hoNLayers
Definition: Context.h:38
opt_mesh_allow_swap_edge_angle
double opt_mesh_allow_swap_edge_angle(OPT_ARGS_NUM)
Definition: Options.cpp:6135
opt_mesh_save_without_orphans
double opt_mesh_save_without_orphans(OPT_ARGS_NUM)
Definition: Options.cpp:6394
contextMeshOptions::hoPoissonRatio
double hoPoissonRatio
Definition: Context.h:40
opt_mesh_second_order_linear
double opt_mesh_second_order_linear(OPT_ARGS_NUM)
Definition: Options.cpp:6282
CTX::mesh
contextMeshOptions mesh
Definition: Context.h:313
CTX::gifInterlace
int gifInterlace
Definition: Context.h:345
contextMeshOptions::partitionLinWeight
int partitionLinWeight
Definition: Context.h:75
opt_general_axes_format0
std::string opt_general_axes_format0(OPT_ARGS_STR)
Definition: Options.cpp:1114
Parser.h
opt_geometry_occ_auto_embed
double opt_geometry_occ_auto_embed(OPT_ARGS_NUM)
Definition: Options.cpp:4568
contextGeometryOptions::scalingFactor
double scalingFactor
Definition: Context.h:118
opt_view_size0
double opt_view_size0(OPT_ARGS_NUM)
Definition: Options.cpp:7851
opt_general_clip5c
double opt_general_clip5c(OPT_ARGS_NUM)
Definition: Options.cpp:3874
StringXString::def
std::string def
Definition: Options.h:914
CTX::animDelay
double animDelay
Definition: Context.h:321
opt_view_color_axes
unsigned int opt_view_color_axes(OPT_ARGS_COL)
Definition: Options.cpp:10213
opt_print_jpeg_quality
double opt_print_jpeg_quality(OPT_ARGS_NUM)
Definition: Options.cpp:9231
opt_general_graphics_fontsize_title
double opt_general_graphics_fontsize_title(OPT_ARGS_NUM)
Definition: Options.cpp:2219
CTX::texWidthInMm
double texWidthInMm
Definition: Context.h:344
CTX::arrowRelStemRadius
double arrowRelStemRadius
Definition: Context.h:288
ALGO_2D_MESHADAPT
#define ALGO_2D_MESHADAPT
Definition: GmshDefines.h:238
opt_post_double_clicked_graph_point_x
double opt_post_double_clicked_graph_point_x(OPT_ARGS_NUM)
Definition: Options.cpp:6942
CTX::x3dEdges
int x3dEdges
Definition: Context.h:354
GModel::getFields
FieldManager * getFields()
Definition: GModel.h:325
opt_mesh_color_10
unsigned int opt_mesh_color_10(OPT_ARGS_COL)
Definition: Options.cpp:9929
opt_view_scale_type
double opt_view_scale_type(OPT_ARGS_NUM)
Definition: Options.cpp:8574
opt_mesh_recombine_optimize_topology
double opt_mesh_recombine_optimize_topology(OPT_ARGS_NUM)
Definition: Options.cpp:5981
opt_general_arrow_stem_radius
double opt_general_arrow_stem_radius(OPT_ARGS_NUM)
Definition: Options.cpp:3409
opt_print_eps_quality
double opt_print_eps_quality(OPT_ARGS_NUM)
Definition: Options.cpp:9201
opt_mesh_color_nodes
unsigned int opt_mesh_color_nodes(OPT_ARGS_COL)
Definition: Options.cpp:9695
opt_mesh_order
double opt_mesh_order(OPT_ARGS_NUM)
Definition: Options.cpp:6152
CTX::tmpTranslation
double tmpTranslation[3]
Definition: Context.h:309
CTX::menuPosition
int menuPosition[2]
Definition: Context.h:185
CTX::octaveInterpreter
std::string octaveInterpreter
Definition: Context.h:330
CTX::socketName
std::string socketName
Definition: Context.h:330
CTX::autoSaveDatabase
int autoSaveDatabase
Definition: Context.h:333
opt_view_max_recursion_level
double opt_view_max_recursion_level(OPT_ARGS_NUM)
Definition: Options.cpp:7717
opt_general_light23
double opt_general_light23(OPT_ARGS_NUM)
Definition: Options.cpp:4049
GeometryOptions_Number
StringXNumber GeometryOptions_Number[]
Definition: DefaultOptions.h:860
opt_print_text
double opt_print_text(OPT_ARGS_NUM)
Definition: Options.cpp:9343
opt_general_clip4c
double opt_general_clip4c(OPT_ARGS_NUM)
Definition: Options.cpp:3834
opt_general_background_image_position0
double opt_general_background_image_position0(OPT_ARGS_NUM)
Definition: Options.cpp:3477
opt_general_extra_size1
double opt_general_extra_size1(OPT_ARGS_NUM)
Definition: Options.cpp:2509
contextGeometryOptions::oldNewreg
int oldNewreg
Definition: Context.h:94
opt_geometry_color_projection
unsigned int opt_geometry_color_projection(OPT_ARGS_COL)
Definition: Options.cpp:9685
ALGO_3D_HXT
#define ALGO_3D_HXT
Definition: GmshDefines.h:255
contextGeometryOptions::normals
double normals
Definition: Context.h:118
CTX::posSICN
int posSICN
Definition: Context.h:346
StringX4Int::int3
int int3
Definition: Options.h:907
opt_general_light13
double opt_general_light13(OPT_ARGS_NUM)
Definition: Options.cpp:4019
opt_mesh_cgns_import_ignore_solution
double opt_mesh_cgns_import_ignore_solution(OPT_ARGS_NUM)
Definition: Options.cpp:6326
contextMeshOptions::normals
double normals
Definition: Context.h:22
opt_mesh_partition_num
double opt_mesh_partition_num(OPT_ARGS_NUM)
Definition: Options.cpp:6554
opt_general_graphics_position1
double opt_general_graphics_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2269
opt_mesh_transfinite_tri
double opt_mesh_transfinite_tri(OPT_ARGS_NUM)
Definition: Options.cpp:5429
opt_general_rotation_center1
double opt_general_rotation_center1(OPT_ARGS_NUM)
Definition: Options.cpp:2664
opt_general_axes_value_zmin
double opt_general_axes_value_zmin(OPT_ARGS_NUM)
Definition: Options.cpp:3256
opt_mesh_line_labels
double opt_mesh_line_labels(OPT_ARGS_NUM)
Definition: Options.cpp:5506
opt_geometry_old_newreg
double opt_geometry_old_newreg(OPT_ARGS_NUM)
Definition: Options.cpp:4725
opt_geometry_occ_export_only_visible
double opt_geometry_occ_export_only_visible(OPT_ARGS_NUM)
Definition: Options.cpp:4695
opt_general_axes_zmin
double opt_general_axes_zmin(OPT_ARGS_NUM)
Definition: Options.cpp:3204
opt_post_file_format
double opt_post_file_format(OPT_ARGS_NUM)
Definition: Options.cpp:6911
opt_solver_remote_login7
std::string opt_solver_remote_login7(OPT_ARGS_STR)
Definition: Options.cpp:1663
opt_general_terminal
double opt_general_terminal(OPT_ARGS_NUM)
Definition: Options.cpp:2926
opt_mesh_lc_from_parametric_points
double opt_mesh_lc_from_parametric_points(OPT_ARGS_NUM)
Definition: Options.cpp:5094
contextMeshOptions::cgnsImportIgnoreSolution
int cgnsImportIgnoreSolution
Definition: Context.h:68
opt_view_timestep
double opt_view_timestep(OPT_ARGS_NUM)
Definition: Options.cpp:6993
opt_geometry_surface_labels
double opt_geometry_surface_labels(OPT_ARGS_NUM)
Definition: Options.cpp:4422
opt_view_draw_scalars
double opt_view_draw_scalars(OPT_ARGS_NUM)
Definition: Options.cpp:8484
opt_view_offset0
double opt_view_offset0(OPT_ARGS_NUM)
Definition: Options.cpp:7232
opt_general_light32
double opt_general_light32(OPT_ARGS_NUM)
Definition: Options.cpp:4073
Field
Definition: Field.h:103
opt_mesh_old_initial_delaunay_2d
double opt_mesh_old_initial_delaunay_2d(OPT_ARGS_NUM)
Definition: Options.cpp:6708
SetStringOptionsGUI
static void SetStringOptionsGUI(int num, StringXString s[])
Definition: Options.cpp:113
opt_geometry_double_clicked_volume_command
std::string opt_geometry_double_clicked_volume_command(OPT_ARGS_STR)
Definition: Options.cpp:1421
contextMeshOptions::flexibleTransfinite
int flexibleTransfinite
Definition: Context.h:34
opt_general_line_width
double opt_general_line_width(OPT_ARGS_NUM)
Definition: Options.cpp:2866
GMSH_Plugin::getNbOptionsStr
virtual int getNbOptionsStr() const
Definition: Plugin.h:65
opt_view_component_map8
double opt_view_component_map8(OPT_ARGS_NUM)
Definition: Options.cpp:9162
_opt_geometry_transform
static double _opt_geometry_transform(OPT_ARGS_NUM, int ii, int jj, int nn)
Definition: Options.cpp:4189
opt_general_executable_filename
std::string opt_general_executable_filename(OPT_ARGS_STR)
Definition: Options.cpp:1201
opt_general_progress_meter_step
double opt_general_progress_meter_step(OPT_ARGS_NUM)
Definition: Options.cpp:2908
contextMeshOptions::algoSwitchOnFailure
int algoSwitchOnFailure
Definition: Context.h:29
opt_print_x3d_transparency
double opt_print_x3d_transparency(OPT_ARGS_NUM)
Definition: Options.cpp:9421
opt_solver_name4
std::string opt_solver_name4(OPT_ARGS_STR)
Definition: Options.cpp:1477
contextMeshOptions::cgnsExportCPEX0045
int cgnsExportCPEX0045
Definition: Context.h:69
opt_general_axes_auto_position
double opt_general_axes_auto_position(OPT_ARGS_NUM)
Definition: Options.cpp:3114
CTX::pluginSize
int pluginSize[2]
Definition: Context.h:190
contextGeometryOptions::occUnionUnify
int occUnionUnify
Definition: Context.h:104
contextGeometryOptions::light
int light
Definition: Context.h:114
StringX4Int::int1
int int1
Definition: Options.h:907
opt_mesh_nb_quadrangles
double opt_mesh_nb_quadrangles(OPT_ARGS_NUM)
Definition: Options.cpp:6505
opt_mesh_volume_labels
double opt_mesh_volume_labels(OPT_ARGS_NUM)
Definition: Options.cpp:5528
CTX::gifTransparent
int gifTransparent
Definition: Context.h:345
opt_general_clip5a
double opt_general_clip5a(OPT_ARGS_NUM)
Definition: Options.cpp:3854
opt_geometry_tolerance
double opt_geometry_tolerance(OPT_ARGS_NUM)
Definition: Options.cpp:4317
opt_mesh_preserve_numbering_msh2
double opt_mesh_preserve_numbering_msh2(OPT_ARGS_NUM)
Definition: Options.cpp:6611
GmshColorTable::ipar
int ipar[COLORTABLE_NBMAX_PARAM]
Definition: ColorTable.h:19
opt_mesh_lc_max
double opt_mesh_lc_max(OPT_ARGS_NUM)
Definition: Options.cpp:5012
opt_general_menu_size1
double opt_general_menu_size1(OPT_ARGS_NUM)
Definition: Options.cpp:2402
opt_mesh_tolerance_edge_length
double opt_mesh_tolerance_edge_length(OPT_ARGS_NUM)
Definition: Options.cpp:5027
opt_view_displacement_factor
double opt_view_displacement_factor(OPT_ARGS_NUM)
Definition: Options.cpp:7580
CTX::axesFormat
std::string axesFormat[3]
Definition: Context.h:250
opt_mesh_color_19
unsigned int opt_mesh_color_19(OPT_ARGS_COL)
Definition: Options.cpp:9965
GetRGBForString
bool GetRGBForString(const char *str, int &r, int &g, int &b)
Definition: Options.cpp:344
opt_general_mouse_selection
double opt_general_mouse_selection(OPT_ARGS_NUM)
Definition: Options.cpp:2980
CTX::posEta
int posEta
Definition: Context.h:346
CTX::geom
contextGeometryOptions geom
Definition: Context.h:311
opt_solver_executable6
std::string opt_solver_executable6(OPT_ARGS_STR)
Definition: Options.cpp:1601
CTX::extraPosition
int extraPosition[2]
Definition: Context.h:191
opt_view_force_num_components
double opt_view_force_num_components(OPT_ARGS_NUM)
Definition: Options.cpp:9084
opt_view_draw_points
double opt_view_draw_points(OPT_ARGS_NUM)
Definition: Options.cpp:8268
opt_geometry_transform01
double opt_geometry_transform01(OPT_ARGS_NUM)
Definition: Options.cpp:4214
contextGeometryOptions::volumeLabels
int volumeLabels
Definition: Context.h:115
contextMeshOptions::optimizeThreshold
double optimizeThreshold
Definition: Context.h:22
CTX::autoShowViews
int autoShowViews
Definition: Context.h:335
CTX::drawBBox
int drawBBox
Definition: Context.h:242
contextMeshOptions::hoThresholdMax
double hoThresholdMax
Definition: Context.h:40
opt_general_clip2d
double opt_general_clip2d(OPT_ARGS_NUM)
Definition: Options.cpp:3764
ALGO_3D_FRONTAL
#define ALGO_3D_FRONTAL
Definition: GmshDefines.h:252
CTX::initialContext
int initialContext
Definition: Context.h:209
opt_mesh_color_17
unsigned int opt_mesh_color_17(OPT_ARGS_COL)
Definition: Options.cpp:9957
opt_print_pos_gamma
double opt_print_pos_gamma(OPT_ARGS_NUM)
Definition: Options.cpp:9267
CTX::print
struct CTX::@2 print
CTX::scriptLang
std::vector< std::string > scriptLang
Definition: Context.h:179
opt_mesh_save_groups_of_elements
double opt_mesh_save_groups_of_elements(OPT_ARGS_NUM)
Definition: Options.cpp:6413
opt_geometry_offset0
double opt_geometry_offset0(OPT_ARGS_NUM)
Definition: Options.cpp:4274
opt_solver_auto_load_database
double opt_solver_auto_load_database(OPT_ARGS_NUM)
Definition: Options.cpp:6743
PrintColorOptions
static void PrintColorOptions(int num, int level, int diff, int help, StringXColor s[], const char *prefix, FILE *file, std::vector< std::string > *vec)
Definition: Options.cpp:407
CTX::forceElementData
int forceElementData
Definition: Context.h:319
contextMeshOptions::anisoMax
double anisoMax
Definition: Context.h:26
contextMeshOptions::hoNewFastCurvingAlgo
bool hoNewFastCurvingAlgo
Definition: Context.h:41
CTX::combineRemoveOrig
int combineRemoveOrig
Definition: Context.h:318
CTX::manipPosition
int manipPosition[2]
Definition: Context.h:188
opt_mesh_max_iter_delaunay_3d
double opt_mesh_max_iter_delaunay_3d(OPT_ARGS_NUM)
Definition: Options.cpp:6623
CTX::confirmOverwrite
int confirmOverwrite
Definition: Context.h:159
contextGeometryOptions::highlightOrphans
int highlightOrphans
Definition: Context.h:120
opt_view_color_tangents
unsigned int opt_view_color_tangents(OPT_ARGS_COL)
Definition: Options.cpp:10141
contextMeshOptions::secondOrderIncomplete
int secondOrderIncomplete
Definition: Context.h:35
CTX::detachedMenu
int detachedMenu
Definition: Context.h:186
contextMeshOptions::reparamMaxTriangles
int reparamMaxTriangles
Definition: Context.h:48
CTX::msgSize
int msgSize
Definition: Context.h:185
StringUtils.h
opt_view_vector_type
double opt_view_vector_type(OPT_ARGS_NUM)
Definition: Options.cpp:8651
contextMeshOptions::allowSwapEdgeAngle
double allowSwapEdgeAngle
Definition: Context.h:23
contextMeshOptions::minCircleNodes
int minCircleNodes
Definition: Context.h:37
drawTransformScaled
Definition: drawContext.h:56
opt_view_gen_raise0
std::string opt_view_gen_raise0(OPT_ARGS_STR)
Definition: Options.cpp:1892
opt_geometry_tangents
double opt_geometry_tangents(OPT_ARGS_NUM)
Definition: Options.cpp:4345
opt_mesh_ho_dist_cad
double opt_mesh_ho_dist_cad(OPT_ARGS_NUM)
Definition: Options.cpp:6214
opt_general_build_info
std::string opt_general_build_info(OPT_ARGS_STR)
Definition: Options.cpp:1181
CTX::glFontEngine
std::string glFontEngine
Definition: Context.h:266
CTX::axesMikado
int axesMikado
Definition: Context.h:248
contextGeometryOptions::occSewFaces
int occSewFaces
Definition: Context.h:102
contextMeshOptions::partitionConvertMsh2
int partitionConvertMsh2
Definition: Context.h:77
contextGeometryOptions::occAutoFix
int occAutoFix
Definition: Context.h:100
contextMeshOptions::changed
int changed
Definition: Context.h:82
CTX::tooltips
int tooltips
Definition: Context.h:181
CTX::extension
std::string extension[NUM_SOLVERS]
Definition: Context.h:331
CTX::glFontEnum
int glFontEnum
Definition: Context.h:267
contextGeometryOptions::occUseGenericClosestPoint
int occUseGenericClosestPoint
Definition: Context.h:104
PViewOptions::reference
static PViewOptions * reference()
Definition: PViewOptions.cpp:27
opt_mesh_min_line_nodes
double opt_mesh_min_line_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:6113
opt_general_field_position0
double opt_general_field_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2467
opt_general_display
std::string opt_general_display(OPT_ARGS_STR)
Definition: Options.cpp:1147
opt_general_light4
double opt_general_light4(OPT_ARGS_NUM)
Definition: Options.cpp:4085
opt_view_max_visible
double opt_view_max_visible(OPT_ARGS_NUM)
Definition: Options.cpp:7086
opt_mesh_boundary_layer_fan_elements
double opt_mesh_boundary_layer_fan_elements(OPT_ARGS_NUM)
Definition: Options.cpp:5809
opt_mesh_color_tetrahedra
unsigned int opt_mesh_color_tetrahedra(OPT_ARGS_COL)
Definition: Options.cpp:9766
opt_geometry_occ_thrusections_degree
double opt_geometry_occ_thrusections_degree(OPT_ARGS_NUM)
Definition: Options.cpp:4664
opt_view_stipple7
std::string opt_view_stipple7(OPT_ARGS_STR)
Definition: Options.cpp:2093
opt_general_statistics_position0
double opt_general_statistics_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2515
opt_mesh_ho_fix_bnd_nodes
double opt_mesh_ho_fix_bnd_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:6276
opt_mesh_draw_skin_only
double opt_mesh_draw_skin_only(OPT_ARGS_NUM)
Definition: Options.cpp:6370
contextMeshOptions::quadqsRemeshingBoldness
double quadqsRemeshingBoldness
Definition: Context.h:54
opt_mesh_light_lines
double opt_mesh_light_lines(OPT_ARGS_NUM)
Definition: Options.cpp:5639
opt_general_background_image_filename
std::string opt_general_background_image_filename(OPT_ARGS_STR)
Definition: Options.cpp:1153
CTX::arrowRelHeadRadius
double arrowRelHeadRadius
Definition: Context.h:288
GetColorTable
GmshColorTable * GetColorTable(int num)
Definition: Options.cpp:566
opt_view_custom_max
double opt_view_custom_max(OPT_ARGS_NUM)
Definition: Options.cpp:7120
opt_general_light03
double opt_general_light03(OPT_ARGS_NUM)
Definition: Options.cpp:3984
contextGeometryOptions::oldRuledSurface
int oldRuledSurface
Definition: Context.h:94
opt_general_color_scheme
double opt_general_color_scheme(OPT_ARGS_NUM)
Definition: Options.cpp:3419
opt_general_rotation2
double opt_general_rotation2(OPT_ARGS_NUM)
Definition: Options.cpp:2640
opt_geometry_snap0
double opt_geometry_snap0(OPT_ARGS_NUM)
Definition: Options.cpp:4771
opt_post_plugins
double opt_post_plugins(OPT_ARGS_NUM)
Definition: Options.cpp:6896
GmshColorTable::dpar
double dpar[COLORTABLE_NBMAX_PARAM]
Definition: ColorTable.h:20
contextGeometryOptions::points
int points
Definition: Context.h:114
opt_general_arrow_head_radius
double opt_general_arrow_head_radius(OPT_ARGS_NUM)
Definition: Options.cpp:3389
opt_solver_remote_login2
std::string opt_solver_remote_login2(OPT_ARGS_STR)
Definition: Options.cpp:1638
contextMeshOptions::mshFileVersion
double mshFileVersion
Definition: Context.h:58
opt_view_max
double opt_view_max(OPT_ARGS_NUM)
Definition: Options.cpp:7059
opt_print_x3d_compatibility
double opt_print_x3d_compatibility(OPT_ARGS_NUM)
Definition: Options.cpp:9415
contextMeshOptions::quadqsScalingOnTriangulation
double quadqsScalingOnTriangulation
Definition: Context.h:54
opt_mesh_label_type
double opt_mesh_label_type(OPT_ARGS_NUM)
Definition: Options.cpp:5237
contextMeshOptions::ignoreParametrizationMsh4
int ignoreParametrizationMsh4
Definition: Context.h:45
opt_general_light11
double opt_general_light11(OPT_ARGS_NUM)
Definition: Options.cpp:4007
opt_mesh_save_all
double opt_mesh_save_all(OPT_ARGS_NUM)
Definition: Options.cpp:6376
CTX::width
int width
Definition: Context.h:348
opt_geometry_point_labels
double opt_geometry_point_labels(OPT_ARGS_NUM)
Definition: Options.cpp:4400
opt_mesh_pyramids
double opt_mesh_pyramids(OPT_ARGS_NUM)
Definition: Options.cpp:5391
opt_solver_extension6
std::string opt_solver_extension6(OPT_ARGS_STR)
Definition: Options.cpp:1544
opt_solver_executable2
std::string opt_solver_executable2(OPT_ARGS_STR)
Definition: Options.cpp:1581
contextMeshOptions::qualitySup
double qualitySup
Definition: Context.h:24
COLORTABLE_NUMBER
#define COLORTABLE_NUMBER
Definition: ColorTable.h:30
opt_general_arrow_stem_length
double opt_general_arrow_stem_length(OPT_ARGS_NUM)
Definition: Options.cpp:3399
contextMeshOptions::labelType
int labelType
Definition: Context.h:86
opt_mesh_clip
double opt_mesh_clip(OPT_ARGS_NUM)
Definition: Options.cpp:6601
contextMeshOptions::metisObjective
int metisObjective
Definition: Context.h:79
CTX::fastRedraw
int fastRedraw
Definition: Context.h:244
opt_view_nb_non_empty_timestep
double opt_view_nb_non_empty_timestep(OPT_ARGS_NUM)
Definition: Options.cpp:6979
opt_general_menu_position0
double opt_general_menu_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2411
opt_mesh_radius_sup
double opt_mesh_radius_sup(OPT_ARGS_NUM)
Definition: Options.cpp:5222
GET_VIEWo
#define GET_VIEWo(error_val)
Definition: Options.cpp:1053
CTX::height
int height
Definition: Context.h:348
opt_geometry_surfaces
double opt_geometry_surfaces(OPT_ARGS_NUM)
Definition: Options.cpp:4378
opt_view_component_map7
double opt_view_component_map7(OPT_ARGS_NUM)
Definition: Options.cpp:9158
PrintNumberOptions
static void PrintNumberOptions(int num, int level, int diff, int help, StringXNumber s[], const char *prefix, FILE *file, std::vector< std::string > *vec=nullptr)
Definition: Options.cpp:245
opt_mesh_med_single_model
double opt_mesh_med_single_model(OPT_ARGS_NUM)
Definition: Options.cpp:5699
CTX::recentFiles
std::vector< std::string > recentFiles
Definition: Context.h:149
Msg::Direct
static void Direct(const char *fmt,...)
Definition: GmshMessage.cpp:634
opt_view_xmin
double opt_view_xmin(OPT_ARGS_NUM)
Definition: Options.cpp:7166
opt_view_axes_zmin
double opt_view_axes_zmin(OPT_ARGS_NUM)
Definition: Options.cpp:7998
ENT_CURVE
#define ENT_CURVE
Definition: GmshDefines.h:232
opt_mesh_cgns_import_order
double opt_mesh_cgns_import_order(OPT_ARGS_NUM)
Definition: Options.cpp:6309
opt_mesh_color_16
unsigned int opt_mesh_color_16(OPT_ARGS_COL)
Definition: Options.cpp:9953
contextGeometryOptions::occTargetUnit
std::string occTargetUnit
Definition: Context.h:106
Context.h
contextMeshOptions::stlAngularDeflection
double stlAngularDeflection
Definition: Context.h:64
CTX::fontSize
int fontSize
Definition: Context.h:264
opt_view_color_trihedra
unsigned int opt_view_color_trihedra(OPT_ARGS_COL)
Definition: Options.cpp:10122
opt_view_axes_tics2
double opt_view_axes_tics2(OPT_ARGS_NUM)
Definition: Options.cpp:8062
opt_general_translation1
double opt_general_translation1(OPT_ARGS_NUM)
Definition: Options.cpp:2756
opt_general_quaternion2
double opt_general_quaternion2(OPT_ARGS_NUM)
Definition: Options.cpp:2714
opt_view_stipple5
std::string opt_view_stipple5(OPT_ARGS_STR)
Definition: Options.cpp:2063
COLORTABLE_ALPHA
#define COLORTABLE_ALPHA
Definition: ColorTable.h:40
opt_geometry_snap_points
double opt_geometry_snap_points(OPT_ARGS_NUM)
Definition: Options.cpp:4765
CTX::visPosition
int visPosition[2]
Definition: Context.h:187
CTX::gifSort
int gifSort
Definition: Context.h:345
CTX::camera
int camera
Definition: Context.h:236
opt_mesh_optimize
double opt_mesh_optimize(OPT_ARGS_NUM)
Definition: Options.cpp:4851
opt_general_small_axes_position1
double opt_general_small_axes_position1(OPT_ARGS_NUM)
Definition: Options.cpp:3292
opt_mesh_reparam_max_triangles
double opt_mesh_reparam_max_triangles(OPT_ARGS_NUM)
Definition: Options.cpp:6670
contextGeometryOptions::surfaceLabels
int surfaceLabels
Definition: Context.h:115
opt_mesh_nb_trihedra
double opt_mesh_nb_trihedra(OPT_ARGS_NUM)
Definition: Options.cpp:6540
opt_view_offset1
double opt_view_offset1(OPT_ARGS_NUM)
Definition: Options.cpp:7250
opt_solver_show_invisible_parameters
double opt_solver_show_invisible_parameters(OPT_ARGS_NUM)
Definition: Options.cpp:6792
contextMeshOptions::hoPassMax
int hoPassMax
Definition: Context.h:38
opt_print_eps_line_width_factor
double opt_print_eps_line_width_factor(OPT_ARGS_NUM)
Definition: Options.cpp:9219
opt_mesh_zone_definition
double opt_mesh_zone_definition(OPT_ARGS_NUM)
Definition: Options.cpp:6472
contextGeometryOptions::curveType
int curveType
Definition: Context.h:117
contextMeshOptions::hoFixBndNodes
int hoFixBndNodes
Definition: Context.h:39
contextMeshOptions::qualityInf
double qualityInf
Definition: Context.h:24
opt_geometry_occ_union_unify
double opt_geometry_occ_union_unify(OPT_ARGS_NUM)
Definition: Options.cpp:4658
opt_general_initial_context
double opt_general_initial_context(OPT_ARGS_NUM)
Definition: Options.cpp:2163
opt_geometry_color_points
unsigned int opt_geometry_color_points(OPT_ARGS_COL)
Definition: Options.cpp:9585
opt_general_trackball_hyperbolic_sheet
double opt_general_trackball_hyperbolic_sheet(OPT_ARGS_NUM)
Definition: Options.cpp:3524
opt_view_component_map4
double opt_view_component_map4(OPT_ARGS_NUM)
Definition: Options.cpp:9146
opt_mesh_quadqs_remeshing_boldness
double opt_mesh_quadqs_remeshing_boldness(OPT_ARGS_NUM)
Definition: Options.cpp:6689
opt_mesh_nb_triangles
double opt_mesh_nb_triangles(OPT_ARGS_NUM)
Definition: Options.cpp:6498
contextMeshOptions::secondOrderLinear
int secondOrderLinear
Definition: Context.h:35
opt_view_draw_lines
double opt_view_draw_lines(OPT_ARGS_NUM)
Definition: Options.cpp:8292
opt_view_gen_raise_factor
double opt_view_gen_raise_factor(OPT_ARGS_NUM)
Definition: Options.cpp:9014
opt_mesh_rand_factor
double opt_mesh_rand_factor(OPT_ARGS_NUM)
Definition: Options.cpp:5137
opt_view_type
double opt_view_type(OPT_ARGS_NUM)
Definition: Options.cpp:7763
opt_mesh_color_hexahedra
unsigned int opt_mesh_color_hexahedra(OPT_ARGS_COL)
Definition: Options.cpp:9783
opt_post_combine_remove_orig
double opt_post_combine_remove_orig(OPT_ARGS_NUM)
Definition: Options.cpp:6879
opt_general_visibility_position0
double opt_general_visibility_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2527
opt_mesh_ignore_parametrization
double opt_mesh_ignore_parametrization(OPT_ARGS_NUM)
Definition: Options.cpp:6676
opt_post_combine_copy_options
double opt_post_combine_copy_options(OPT_ARGS_NUM)
Definition: Options.cpp:6890
contextMeshOptions::radiusInf
double radiusInf
Definition: Context.h:24
opt_geometry_occ_sew_faces
double opt_geometry_occ_sew_faces(OPT_ARGS_NUM)
Definition: Options.cpp:4634
contextMeshOptions::meshOnlyEmpty
int meshOnlyEmpty
Definition: Context.h:36
CTX::x3dVolumes
int x3dVolumes
Definition: Context.h:354
opt_geometry_occ_target_unit
std::string opt_geometry_occ_target_unit(OPT_ARGS_STR)
Definition: Options.cpp:1427
opt_view_glyph_location
double opt_view_glyph_location(OPT_ARGS_NUM)
Definition: Options.cpp:8671
opt_general_light2
double opt_general_light2(OPT_ARGS_NUM)
Definition: Options.cpp:4025
opt_geometry_light_two_side
double opt_geometry_light_two_side(OPT_ARGS_NUM)
Definition: Options.cpp:4557
opt_general_clip4d
double opt_general_clip4d(OPT_ARGS_NUM)
Definition: Options.cpp:3844
CTX::stereo
int stereo
Definition: Context.h:236
contextMeshOptions::voronoi
int voronoi
Definition: Context.h:88
opt_mesh_quality_sup
double opt_mesh_quality_sup(OPT_ARGS_NUM)
Definition: Options.cpp:5192
contextMeshOptions::lcFactor
double lcFactor
Definition: Context.h:21
opt_view_line_type
double opt_view_line_type(OPT_ARGS_NUM)
Definition: Options.cpp:8761
CTX::parameterFirst
double parameterFirst
Definition: Context.h:349
opt_general_ymin
double opt_general_ymin(OPT_ARGS_NUM)
Definition: Options.cpp:3061
opt_mesh_stl_angular_deflection
double opt_mesh_stl_angular_deflection(OPT_ARGS_NUM)
Definition: Options.cpp:5872
opt_view_filename
std::string opt_view_filename(OPT_ARGS_STR)
Definition: Options.cpp:1785
contextMeshOptions::algo2d
int algo2d
Definition: Context.h:29
opt_solver_extension3
std::string opt_solver_extension3(OPT_ARGS_STR)
Definition: Options.cpp:1529
opt_view_color_points
unsigned int opt_view_color_points(OPT_ARGS_COL)
Definition: Options.cpp:9970
contextMeshOptions::cgnsImportIgnoreBC
int cgnsImportIgnoreBC
Definition: Context.h:68
opt_view_color_background2d
unsigned int opt_view_color_background2d(OPT_ARGS_COL)
Definition: Options.cpp:10230
GetBuildInfo
std::vector< std::string > GetBuildInfo()
Definition: CommandLine.cpp:364
CTX::errorFileName
std::string errorFileName
Definition: Context.h:142
opt_general_gui_refresh_rate
double opt_general_gui_refresh_rate(OPT_ARGS_NUM)
Definition: Options.cpp:2202
CTX::glFontSize
int glFontSize
Definition: Context.h:267
ALGO_2D_INITIAL_ONLY
#define ALGO_2D_INITIAL_ONLY
Definition: GmshDefines.h:240
opt_geometry_point_size
double opt_geometry_point_size(OPT_ARGS_NUM)
Definition: Options.cpp:4461
opt_view_raise1
double opt_view_raise1(OPT_ARGS_NUM)
Definition: Options.cpp:7304
opt_geometry_occ_scaling
double opt_geometry_occ_scaling(OPT_ARGS_NUM)
Definition: Options.cpp:4683
opt_mesh_nb_pyramids
double opt_mesh_nb_pyramids(OPT_ARGS_NUM)
Definition: Options.cpp:6533
GmshColorTable
Definition: ColorTable.h:16
contextMeshOptions::quadqsSizemapMethod
int quadqsSizemapMethod
Definition: Context.h:53
opt_view_custom_abscissa_min
double opt_view_custom_abscissa_min(OPT_ARGS_NUM)
Definition: Options.cpp:7138
opt_mesh_node_size
double opt_mesh_node_size(OPT_ARGS_NUM)
Definition: Options.cpp:5539
opt_view_color_normals
unsigned int opt_view_color_normals(OPT_ARGS_COL)
Definition: Options.cpp:10160
contextGeometryOptions::pointSize
double pointSize
Definition: Context.h:116
opt_geometry_occ_fix_degenerated
double opt_geometry_occ_fix_degenerated(OPT_ARGS_NUM)
Definition: Options.cpp:4598
contextMeshOptions::stlRemoveDuplicateTriangles
int stlRemoveDuplicateTriangles
Definition: Context.h:63
SplitString
std::vector< std::string > SplitString(const std::string &msg, char separator, bool removeWhiteSpace)
Definition: StringUtils.cpp:210
CTX::showInvisibleParameters
int showInvisibleParameters
Definition: Context.h:335
opt_post_anim_delay
double opt_post_anim_delay(OPT_ARGS_NUM)
Definition: Options.cpp:6834
opt_mesh_trihedra
double opt_mesh_trihedra(OPT_ARGS_NUM)
Definition: Options.cpp:5410
opt_solver_auto_show_last_step
double opt_solver_auto_show_last_step(OPT_ARGS_NUM)
Definition: Options.cpp:6786
opt_mesh_algo_subdivide
double opt_mesh_algo_subdivide(OPT_ARGS_NUM)
Definition: Options.cpp:6038
opt_geometry_copy_meshing_method
double opt_geometry_copy_meshing_method(OPT_ARGS_NUM)
Definition: Options.cpp:4814
StringXString::str
const char * str
Definition: Options.h:912
PrintColorOptionsDoc
static void PrintColorOptionsDoc(StringXColor s[], const char *prefix, FILE *file)
Definition: Options.cpp:452
opt_print_parameter_last
double opt_print_parameter_last(OPT_ARGS_NUM)
Definition: Options.cpp:9403
opt_mesh_min_circle_nodes
double opt_mesh_min_circle_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:6124
PViewOptions
Definition: PViewOptions.h:16
contextMeshOptions::tangents
double tangents
Definition: Context.h:22
opt_mesh_color_4
unsigned int opt_mesh_color_4(OPT_ARGS_COL)
Definition: Options.cpp:9905
contextMeshOptions::cgnsConstructTopology
int cgnsConstructTopology
Definition: Context.h:69
opt_view_draw_skin_only
double opt_view_draw_skin_only(OPT_ARGS_NUM)
Definition: Options.cpp:8556
contextMeshOptions::metisMaxLoadImbalance
double metisMaxLoadImbalance
Definition: Context.h:80
CTX::jpegQuality
int jpegQuality
Definition: Context.h:342
opt_mesh_flexible_transfinite
double opt_mesh_flexible_transfinite(OPT_ARGS_NUM)
Definition: Options.cpp:6030
CTX::lightPosition
double lightPosition[6][4]
Definition: Context.h:275
contextMeshOptions::hoPrimSurfMesh
int hoPrimSurfMesh
Definition: Context.h:38
opt_print_eps_best_root
double opt_print_eps_best_root(OPT_ARGS_NUM)
Definition: Options.cpp:9213
opt_view_attributes
std::string opt_view_attributes(OPT_ARGS_STR)
Definition: Options.cpp:2138
opt_mesh_partition_old_style_msh2
double opt_mesh_partition_old_style_msh2(OPT_ARGS_NUM)
Definition: Options.cpp:5785
opt_mesh_ho_threshold_min
double opt_mesh_ho_threshold_min(OPT_ARGS_NUM)
Definition: Options.cpp:6196
PrintOptions_Color
StringXColor PrintOptions_Color[]
Definition: DefaultOptions.h:2342
MeshOptions_Number
StringXNumber MeshOptions_Number[]
Definition: DefaultOptions.h:1067
opt_general_graphics_position0
double opt_general_graphics_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2263
contextMeshOptions::maxIterDelaunay3D
int maxIterDelaunay3D
Definition: Context.h:44
opt_general_ymax
double opt_general_ymax(OPT_ARGS_NUM)
Definition: Options.cpp:3067
opt_general_graphics_font
std::string opt_general_graphics_font(OPT_ARGS_STR)
Definition: Options.cpp:1336
opt_mesh_surface_labels
double opt_mesh_surface_labels(OPT_ARGS_NUM)
Definition: Options.cpp:5517
contextMeshOptions::smoothCrossField
int smoothCrossField
Definition: Context.h:20
opt_geometry_occ_import_labels
double opt_geometry_occ_import_labels(OPT_ARGS_NUM)
Definition: Options.cpp:4701
MeshOptions_Color
StringXColor MeshOptions_Color[]
Definition: DefaultOptions.h:2221
contextMeshOptions::binary
int binary
Definition: Context.h:62
contextMeshOptions::radiusSup
double radiusSup
Definition: Context.h:24
opt_mesh_stl_linear_deflection
double opt_mesh_stl_linear_deflection(OPT_ARGS_NUM)
Definition: Options.cpp:5858
GET_VIEWd
#define GET_VIEWd(error_val)
Definition: Options.cpp:1067
CTX::antialiasing
int antialiasing
Definition: Context.h:236
opt_geometry_occ_fix_small_edges
double opt_geometry_occ_fix_small_edges(OPT_ARGS_NUM)
Definition: Options.cpp:4610
CTX::remoteLogin
std::string remoteLogin[NUM_SOLVERS]
Definition: Context.h:332
ALGO_3D_DELAUNAY
#define ALGO_3D_DELAUNAY
Definition: GmshDefines.h:250
opt_general_color_background
unsigned int opt_general_color_background(OPT_ARGS_COL)
Definition: Options.cpp:9486
GMSH_OPTIONSRC
#define GMSH_OPTIONSRC
Definition: Options.h:19
contextGeometryOptions::selectedPointSize
double selectedPointSize
Definition: Context.h:116
CTX::trackballHyperbolicSheet
int trackballHyperbolicSheet
Definition: Context.h:221
opt_mesh_recombine_all
double opt_mesh_recombine_all(OPT_ARGS_NUM)
Definition: Options.cpp:5965
contextMeshOptions::smoothNormals
int smoothNormals
Definition: Context.h:89
opt_general_background_image_3d
double opt_general_background_image_3d(OPT_ARGS_NUM)
Definition: Options.cpp:3501
opt_view_axes_label2
std::string opt_view_axes_label2(OPT_ARGS_STR)
Definition: Options.cpp:1828
CTX::defaultFileName
std::string defaultFileName
Definition: Context.h:141
opt_mesh_recombine_node_repositioning
double opt_mesh_recombine_node_repositioning(OPT_ARGS_NUM)
Definition: Options.cpp:5989
opt_general_build_options
std::string opt_general_build_options(OPT_ARGS_STR)
Definition: Options.cpp:1174
opt_solver_remote_login4
std::string opt_solver_remote_login4(OPT_ARGS_STR)
Definition: Options.cpp:1648
opt_mesh_prisms
double opt_mesh_prisms(OPT_ARGS_NUM)
Definition: Options.cpp:5372
opt_mesh_save_topology
double opt_mesh_save_topology(OPT_ARGS_NUM)
Definition: Options.cpp:6401
opt_general_polygon_offset_factor
double opt_general_polygon_offset_factor(OPT_ARGS_NUM)
Definition: Options.cpp:2241
opt_print_gif_interlace
double opt_print_gif_interlace(OPT_ARGS_NUM)
Definition: Options.cpp:9309
opt_geometry_snap2
double opt_geometry_snap2(OPT_ARGS_NUM)
Definition: Options.cpp:4793
contextMeshOptions::metisRefinementAlgorithm
int metisRefinementAlgorithm
Definition: Context.h:78
opt_print_x3d_surfaces
double opt_print_x3d_surfaces(OPT_ARGS_NUM)
Definition: Options.cpp:9439
contextMeshOptions::pyramids
int pyramids
Definition: Context.h:84
opt_view_axes_tics0
double opt_view_axes_tics0(OPT_ARGS_NUM)
Definition: Options.cpp:8030
CTX::light
int light[6]
Definition: Context.h:274
opt_print_tex_as_equation
double opt_print_tex_as_equation(OPT_ARGS_NUM)
Definition: Options.cpp:9349
opt_view_component_map1
double opt_view_component_map1(OPT_ARGS_NUM)
Definition: Options.cpp:9134
ALGO_2D_AUTO
#define ALGO_2D_AUTO
Definition: GmshDefines.h:239
opt_mesh_explode
double opt_mesh_explode(OPT_ARGS_NUM)
Definition: Options.cpp:4950
opt_view_axes_zmax
double opt_view_axes_zmax(OPT_ARGS_NUM)
Definition: Options.cpp:8014
opt_solver_executable8
std::string opt_solver_executable8(OPT_ARGS_STR)
Definition: Options.cpp:1611
opt_geometry_transform12
double opt_geometry_transform12(OPT_ARGS_NUM)
Definition: Options.cpp:4234
opt_view_time
double opt_view_time(OPT_ARGS_NUM)
Definition: Options.cpp:7021
opt_geometry_extrude_return_lateral
double opt_geometry_extrude_return_lateral(OPT_ARGS_NUM)
Definition: Options.cpp:4753
PrintOptions_String
StringXString PrintOptions_String[]
Definition: DefaultOptions.h:353
contextMeshOptions::oldInitialDelaunay2D
int oldInitialDelaunay2D
Definition: Context.h:55
SPoint3::z
double z(void) const
Definition: SPoint3.h:129
ALGO_3D_INITIAL_ONLY
#define ALGO_3D_INITIAL_ONLY
Definition: GmshDefines.h:251
opt_geometry_volume_labels
double opt_geometry_volume_labels(OPT_ARGS_NUM)
Definition: Options.cpp:4433
opt_geometry_transform20
double opt_geometry_transform20(OPT_ARGS_NUM)
Definition: Options.cpp:4239
CTX::epsCompress
int epsCompress
Definition: Context.h:339
opt_general_extra_size0
double opt_general_extra_size0(OPT_ARGS_NUM)
Definition: Options.cpp:2503
opt_mesh_quadqs_scaling_on_triangulation
double opt_mesh_quadqs_scaling_on_triangulation(OPT_ARGS_NUM)
Definition: Options.cpp:6703
contextMeshOptions::saveElementTagType
int saveElementTagType
Definition: Context.h:67
opt_solver_executable1
std::string opt_solver_executable1(OPT_ARGS_STR)
Definition: Options.cpp:1576
opt_general_detached_menu
double opt_general_detached_menu(OPT_ARGS_NUM)
Definition: Options.cpp:2368
contextGeometryOptions::occAutoEmbed
int occAutoEmbed
Definition: Context.h:100
opt_geometry_surface_type
double opt_geometry_surface_type(OPT_ARGS_NUM)
Definition: Options.cpp:4529
opt_solver_extension7
std::string opt_solver_extension7(OPT_ARGS_STR)
Definition: Options.cpp:1549
opt_solver_remote_login8
std::string opt_solver_remote_login8(OPT_ARGS_STR)
Definition: Options.cpp:1668
contextMeshOptions::partitionSaveTopologyFile
int partitionSaveTopologyFile
Definition: Context.h:74
ViewOptions_Color
StringXColor ViewOptions_Color[]
Definition: DefaultOptions.h:2317
Msg::SetVerbosity
static void SetVerbosity(int val)
Definition: GmshMessage.cpp:249
Options.h
CTX::highResolutionGraphics
int highResolutionGraphics
Definition: Context.h:199
contextMeshOptions::NewtonConvergenceTestXYZ
int NewtonConvergenceTestXYZ
Definition: Context.h:44
SetDefaultNumberOptions
static void SetDefaultNumberOptions(int num, StringXNumber s[])
Definition: Options.cpp:227
opt_mesh_ho_max_rho
double opt_mesh_ho_max_rho(OPT_ARGS_NUM)
Definition: Options.cpp:6258
opt_post_double_clicked_graph_point_command
std::string opt_post_double_clicked_graph_point_command(OPT_ARGS_STR)
Definition: Options.cpp:1700
opt_geometry_color_normals
unsigned int opt_geometry_color_normals(OPT_ARGS_COL)
Definition: Options.cpp:9675
opt_general_light10
double opt_general_light10(OPT_ARGS_NUM)
Definition: Options.cpp:4001
opt_view_transform10
double opt_view_transform10(OPT_ARGS_NUM)
Definition: Options.cpp:7412
opt_mesh_ho_pass_max
double opt_mesh_ho_pass_max(OPT_ARGS_NUM)
Definition: Options.cpp:6226
opt_mesh_ho_prim_surf_mesh
double opt_mesh_ho_prim_surf_mesh(OPT_ARGS_NUM)
Definition: Options.cpp:6208
contextMeshOptions::toleranceEdgeLength
double toleranceEdgeLength
Definition: Context.h:25
opt_geometry_occ_use_generic_closest_point
double opt_geometry_occ_use_generic_closest_point(OPT_ARGS_NUM)
Definition: Options.cpp:4707
StringXString::function
std::string(* function)(int num, int action, const std::string &val)
Definition: Options.h:913
ViewOptions_String
StringXString ViewOptions_String[]
Definition: DefaultOptions.h:289
opt_geometry_occ_disable_stl
double opt_geometry_occ_disable_stl(OPT_ARGS_NUM)
Definition: Options.cpp:4592
opt_mesh_newton_convergence_test_xyz
double opt_mesh_newton_convergence_test_xyz(OPT_ARGS_NUM)
Definition: Options.cpp:5674
opt_view_color_hexahedra
unsigned int opt_view_color_hexahedra(OPT_ARGS_COL)
Definition: Options.cpp:10065
opt_mesh_switch_elem_tags
double opt_mesh_switch_elem_tags(OPT_ARGS_NUM)
Definition: Options.cpp:6466
opt_general_background_image_page
double opt_general_background_image_page(OPT_ARGS_NUM)
Definition: Options.cpp:3507
opt_view_light_lines
double opt_view_light_lines(OPT_ARGS_NUM)
Definition: Options.cpp:8151
opt_solver_name5
std::string opt_solver_name5(OPT_ARGS_STR)
Definition: Options.cpp:1482
CTX::link
int link
Definition: Context.h:316
opt_general_scale0
double opt_general_scale0(OPT_ARGS_NUM)
Definition: Options.cpp:2784
GModel.h
CTX::autoCheck
int autoCheck
Definition: Context.h:335
opt_view_sampling
double opt_view_sampling(OPT_ARGS_NUM)
Definition: Options.cpp:7833
opt_general_color_axes
unsigned int opt_general_color_axes(OPT_ARGS_COL)
Definition: Options.cpp:9530
opt_general_session_save
double opt_general_session_save(OPT_ARGS_NUM)
Definition: Options.cpp:2581
opt_geometry_transform22
double opt_geometry_transform22(OPT_ARGS_NUM)
Definition: Options.cpp:4249
GMSH_Plugin::getOptionStr
virtual StringXString * getOptionStr(int iopt)
Definition: Plugin.h:66
contextMeshOptions::hoCurveOuterBL
int hoCurveOuterBL
Definition: Context.h:42
opt_general_recent_file7
std::string opt_general_recent_file7(OPT_ARGS_STR)
Definition: Options.cpp:1283
opt_print_pgf_two_dim
double opt_print_pgf_two_dim(OPT_ARGS_NUM)
Definition: Options.cpp:9327
CTX::tmpScale
double tmpScale[3]
Definition: Context.h:309
CommandLine.h
contextMeshOptions::saveTopology
int saveTopology
Definition: Context.h:66
CTX::exeFileName
std::string exeFileName
Definition: Context.h:145
opt_print_gif_transparent
double opt_print_gif_transparent(OPT_ARGS_NUM)
Definition: Options.cpp:9315
opt_general_double_buffer
double opt_general_double_buffer(OPT_ARGS_NUM)
Definition: Options.cpp:3322
contextMeshOptions::saveGroupsOfNodes
int saveGroupsOfNodes
Definition: Context.h:60
contextGeometryOptions::clip
int clip
Definition: Context.h:120
opt_print_eps_occlusion_culling
double opt_print_eps_occlusion_culling(OPT_ARGS_NUM)
Definition: Options.cpp:9207
opt_geometry_old_circle
double opt_geometry_old_circle(OPT_ARGS_NUM)
Definition: Options.cpp:4713
opt_mesh_partition_metis_refinement_algorithm
double opt_mesh_partition_metis_refinement_algorithm(OPT_ARGS_NUM)
Definition: Options.cpp:6576
opt_mesh_quadrangles
double opt_mesh_quadrangles(OPT_ARGS_NUM)
Definition: Options.cpp:5315
GMSH_SESSIONRC
#define GMSH_SESSIONRC
Definition: Options.h:18
opt_geometry_reparam_on_face_robust
double opt_geometry_reparam_on_face_robust(OPT_ARGS_NUM)
Definition: Options.cpp:2849
CTX::sessionSave
int sessionSave
Definition: Context.h:157
opt_mesh_cross_field_closest_point
double opt_mesh_cross_field_closest_point(OPT_ARGS_NUM)
Definition: Options.cpp:5825
opt_print_geo_only_physicals
double opt_print_geo_only_physicals(OPT_ARGS_NUM)
Definition: Options.cpp:9249
ColorTable_Diff
int ColorTable_Diff(GmshColorTable *ct1, GmshColorTable *ct2)
Definition: ColorTable.cpp:1071
opt_geometry_auto_coherence
double opt_geometry_auto_coherence(OPT_ARGS_NUM)
Definition: Options.cpp:4289
contextMeshOptions::algoRecombine
int algoRecombine
Definition: Context.h:30
opt_general_light02
double opt_general_light02(OPT_ARGS_NUM)
Definition: Options.cpp:3968
opt_geometry_color_volumes
unsigned int opt_geometry_color_volumes(OPT_ARGS_COL)
Definition: Options.cpp:9615
contextMeshOptions::explode
double explode
Definition: Context.h:22
CTX::watchFilePattern
std::string watchFilePattern
Definition: Context.h:177
ViewOptions_Number
StringXNumber ViewOptions_Number[]
Definition: DefaultOptions.h:1697
opt_mesh_recombine3d_all
double opt_mesh_recombine3d_all(OPT_ARGS_NUM)
Definition: Options.cpp:6005
opt_mesh_num_sub_edges
double opt_mesh_num_sub_edges(OPT_ARGS_NUM)
Definition: Options.cpp:4922
contextMeshOptions::bdfFieldFormat
int bdfFieldFormat
Definition: Context.h:62
opt_view_fake_transparency
double opt_view_fake_transparency(OPT_ARGS_NUM)
Definition: Options.cpp:7598
opt_mesh_algo2d
double opt_mesh_algo2d(OPT_ARGS_NUM)
Definition: Options.cpp:5889
opt_geometry_offset1
double opt_geometry_offset1(OPT_ARGS_NUM)
Definition: Options.cpp:4279
opt_general_scale2
double opt_general_scale2(OPT_ARGS_NUM)
Definition: Options.cpp:2812
opt_general_hot_position0
double opt_general_hot_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2563
InitOptions
void InitOptions(int num)
Definition: Options.cpp:472
opt_view_colormap_number
double opt_view_colormap_number(OPT_ARGS_NUM)
Definition: Options.cpp:8901
opt_mesh_lc_from_curvature
double opt_mesh_lc_from_curvature(OPT_ARGS_NUM)
Definition: Options.cpp:5049
contextMeshOptions::randomSeed
unsigned int randomSeed
Definition: Context.h:50
opt_mesh_color_1
unsigned int opt_mesh_color_1(OPT_ARGS_COL)
Definition: Options.cpp:9893
opt_print_background
double opt_print_background(OPT_ARGS_NUM)
Definition: Options.cpp:9321
contextMeshOptions::hexahedra
int hexahedra
Definition: Context.h:83
opt_general_light40
double opt_general_light40(OPT_ARGS_NUM)
Definition: Options.cpp:4091
opt_mesh_recombine_minimum_quality
double opt_mesh_recombine_minimum_quality(OPT_ARGS_NUM)
Definition: Options.cpp:5997
CTX::menuSize
int menuSize[2]
Definition: Context.h:185
opt_solver_name1
std::string opt_solver_name1(OPT_ARGS_STR)
Definition: Options.cpp:1462
contextMeshOptions::lines
int lines
Definition: Context.h:83
contextGeometryOptions::curves
int curves
Definition: Context.h:114
opt_general_trackball
double opt_general_trackball(OPT_ARGS_NUM)
Definition: Options.cpp:3513
contextGeometryOptions::surfaces
int surfaces
Definition: Context.h:114
CTX::compositeWindows
int compositeWindows
Definition: Context.h:347
contextMeshOptions::hoThresholdMin
double hoThresholdMin
Definition: Context.h:40
CTX::parameterSteps
double parameterSteps
Definition: Context.h:349
CTX::lineWidth
double lineWidth
Definition: Context.h:271
opt_general_clip_whole_elements
double opt_general_clip_whole_elements(OPT_ARGS_NUM)
Definition: Options.cpp:3894
opt_general_rotation_center2
double opt_general_rotation_center2(OPT_ARGS_NUM)
Definition: Options.cpp:2675
opt_mesh_ho_max_in_angle
double opt_mesh_ho_max_in_angle(OPT_ARGS_NUM)
Definition: Options.cpp:6270
opt_geometry_transform
double opt_geometry_transform(OPT_ARGS_NUM)
Definition: Options.cpp:4157
GetUsage
std::vector< std::pair< std::string, std::string > > GetUsage()
Definition: CommandLine.cpp:68
opt_geometry_oriented_physicals
double opt_geometry_oriented_physicals(OPT_ARGS_NUM)
Definition: Options.cpp:4300
drawContextGlobal::resetFontTextures
virtual void resetFontTextures()
Definition: drawContext.h:109
opt_solver_remote_login1
std::string opt_solver_remote_login1(OPT_ARGS_STR)
Definition: Options.cpp:1633
opt_general_filename
std::string opt_general_filename(OPT_ARGS_STR)
Definition: Options.cpp:1196
opt_solver_remote_login9
std::string opt_solver_remote_login9(OPT_ARGS_STR)
Definition: Options.cpp:1673
COLORTABLE_SWAP
#define COLORTABLE_SWAP
Definition: ColorTable.h:32
CTX::tmpFileName
std::string tmpFileName
Definition: Context.h:141
CTX::glFontEnumTitle
int glFontEnumTitle
Definition: Context.h:267
CTX::fileChooserPosition
int fileChooserPosition[2]
Definition: Context.h:191
CTX::pointSize
double pointSize
Definition: Context.h:271
PView::list
static std::vector< PView * > list
Definition: PView.h:112
opt_general_light53
double opt_general_light53(OPT_ARGS_NUM)
Definition: Options.cpp:4139
opt_geometry_occ_parallel
double opt_geometry_occ_parallel(OPT_ARGS_NUM)
Definition: Options.cpp:4670
opt_general_axes_force_value
double opt_general_axes_force_value(OPT_ARGS_NUM)
Definition: Options.cpp:3226
opt_mesh_min_curve_nodes
double opt_mesh_min_curve_nodes(OPT_ARGS_NUM)
Definition: Options.cpp:6141
opt_general_extra_position0
double opt_general_extra_position0(OPT_ARGS_NUM)
Definition: Options.cpp:2491
contextMeshOptions::metisAlgorithm
int metisAlgorithm
Definition: Context.h:78
opt_general_show_messages_on_startup
double opt_general_show_messages_on_startup(OPT_ARGS_NUM)
Definition: Options.cpp:2175
opt_mesh_partition_tri_weight
double opt_mesh_partition_tri_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5755
CTX::parameterCommand
std::string parameterCommand
Definition: Context.h:351
opt_general_axes
double opt_general_axes(OPT_ARGS_NUM)
Definition: Options.cpp:3087
opt_mesh_quality_type
double opt_mesh_quality_type(OPT_ARGS_NUM)
Definition: Options.cpp:5158
opt_mesh_partition_pri_weight
double opt_mesh_partition_pri_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5725
opt_general_background_image_position1
double opt_general_background_image_position1(OPT_ARGS_NUM)
Definition: Options.cpp:3483
SBoundingBox3d::max
SPoint3 max() const
Definition: SBoundingBox3d.h:91
CTX::terminal
int terminal
Definition: Context.h:167
ALGO_2D_DELAUNAY
#define ALGO_2D_DELAUNAY
Definition: GmshDefines.h:241
contextGeometryOptions::occFixSmallEdges
int occFixSmallEdges
Definition: Context.h:101
opt_general_light31
double opt_general_light31(OPT_ARGS_NUM)
Definition: Options.cpp:4067
opt_view_gen_raise1
std::string opt_view_gen_raise1(OPT_ARGS_STR)
Definition: Options.cpp:1910
CTX::animCycle
int animCycle
Definition: Context.h:317
opt_solver_auto_archive_output_files
double opt_solver_auto_archive_output_files(OPT_ARGS_NUM)
Definition: Options.cpp:6755
contextGeometryOptions::matchMeshTolerance
double matchMeshTolerance
Definition: Context.h:110
CTX::x3dPrecision
double x3dPrecision
Definition: Context.h:353
contextMeshOptions::boundaryLayerFanElements
int boundaryLayerFanElements
Definition: Context.h:45
opt_view_position0
double opt_view_position0(OPT_ARGS_NUM)
Definition: Options.cpp:7803
opt_view_visible
double opt_view_visible(OPT_ARGS_NUM)
Definition: Options.cpp:7634
ovcm
static double ovcm(OPT_ARGS_NUM, int nn)
Definition: Options.cpp:9110
GetStatistics
static void GetStatistics(double stat[50])
Definition: Options.cpp:6485
CTX::systemMenuBar
int systemMenuBar
Definition: Context.h:193
opt_solver_executable4
std::string opt_solver_executable4(OPT_ARGS_STR)
Definition: Options.cpp:1591
opt_view_offset2
double opt_view_offset2(OPT_ARGS_NUM)
Definition: Options.cpp:7268
opt_general_shine
double opt_general_shine(OPT_ARGS_NUM)
Definition: Options.cpp:2877
Generator.h
CTX::guiTheme
std::string guiTheme
Definition: Context.h:163
opt_general_light1
double opt_general_light1(OPT_ARGS_NUM)
Definition: Options.cpp:3995
opt_general_axes_xmin
double opt_general_axes_xmin(OPT_ARGS_NUM)
Definition: Options.cpp:3160
contextMeshOptions::numPartitions
int numPartitions
Definition: Context.h:72
PrintOptionsDoc
void PrintOptionsDoc()
Definition: Options.cpp:793
opt_mesh_lc_factor
double opt_mesh_lc_factor(OPT_ARGS_NUM)
Definition: Options.cpp:4976
CTX::listen
int listen
Definition: Context.h:328
GetColorForString
int GetColorForString(int alpha, const char *str, int *FlagError)
Definition: Options.cpp:331
contextGeometryOptions::volumes
int volumes
Definition: Context.h:114
opt_view_transform02
double opt_view_transform02(OPT_ARGS_NUM)
Definition: Options.cpp:7394
opt_general_graphics_font_title
std::string opt_general_graphics_font_title(OPT_ARGS_STR)
Definition: Options.cpp:1353
CTX::displayBorderFactor
double displayBorderFactor
Definition: Context.h:219
contextMeshOptions::partitionPriWeight
int partitionPriWeight
Definition: Context.h:76
CTX::quadricSubdivisions
int quadricSubdivisions
Definition: Context.h:285
opt_view_min
double opt_view_min(OPT_ARGS_NUM)
Definition: Options.cpp:7047
CTX::plugins
int plugins
Definition: Context.h:319
opt_mesh_save_parametric
double opt_mesh_save_parametric(OPT_ARGS_NUM)
Definition: Options.cpp:6388
contextMeshOptions::transfiniteTri
int transfiniteTri
Definition: Context.h:34
opt_geometry_match_geom_and_mesh
double opt_geometry_match_geom_and_mesh(OPT_ARGS_NUM)
Definition: Options.cpp:4832
CTX::bgImageFileName
std::string bgImageFileName
Definition: Context.h:260
contextGeometryOptions::offset
double offset[3]
Definition: Context.h:99
opt_general_color_diffuse_light
unsigned int opt_general_color_diffuse_light(OPT_ARGS_COL)
Definition: Options.cpp:9563
opt_solver_name8
std::string opt_solver_name8(OPT_ARGS_STR)
Definition: Options.cpp:1497
opt_view_axes_ymax
double opt_view_axes_ymax(OPT_ARGS_NUM)
Definition: Options.cpp:7982
opt_general_rotation0
double opt_general_rotation0(OPT_ARGS_NUM)
Definition: Options.cpp:2614
contextMeshOptions::partitionCreateTopology
int partitionCreateTopology
Definition: Context.h:72
contextMeshOptions::partitionTetWeight
int partitionTetWeight
Definition: Context.h:75
opt_mesh_color_triangles
unsigned int opt_mesh_color_triangles(OPT_ARGS_COL)
Definition: Options.cpp:9732
Sanitize_String_Texi
void Sanitize_String_Texi(std::string &s)
Definition: Options.cpp:625
opt_view_gen_raise_view
double opt_view_gen_raise_view(OPT_ARGS_NUM)
Definition: Options.cpp:8989
opt_general_mouse_invert_zoom
double opt_general_mouse_invert_zoom(OPT_ARGS_NUM)
Definition: Options.cpp:3014
opt_general_quadric_subdivisions
double opt_general_quadric_subdivisions(OPT_ARGS_NUM)
Definition: Options.cpp:3309
opt_view_colormap_beta
double opt_view_colormap_beta(OPT_ARGS_NUM)
Definition: Options.cpp:8821
opt_mesh_first_node_tag
double opt_mesh_first_node_tag(OPT_ARGS_NUM)
Definition: Options.cpp:5262
opt_general_clip3a
double opt_general_clip3a(OPT_ARGS_NUM)
Definition: Options.cpp:3774
opt_print_gif_sort
double opt_print_gif_sort(OPT_ARGS_NUM)
Definition: Options.cpp:9303
opt_view_transform00
double opt_view_transform00(OPT_ARGS_NUM)
Definition: Options.cpp:7358
opt_solver_remote_login6
std::string opt_solver_remote_login6(OPT_ARGS_STR)
Definition: Options.cpp:1658
contextMeshOptions::hoMaxRho
double hoMaxRho
Definition: Context.h:43
contextMeshOptions::hoSavePeriodic
int hoSavePeriodic
Definition: Context.h:39
ALGO_2D_QUAD_QUASI_STRUCT
#define ALGO_2D_QUAD_QUASI_STRUCT
Definition: GmshDefines.h:247
opt_general_session_filename
std::string opt_general_session_filename(OPT_ARGS_STR)
Definition: Options.cpp:1229
SBoundingBox3d
Definition: SBoundingBox3d.h:21
CTX::doubleClickedView
int doubleClickedView
Definition: Context.h:324
ALGO_2D_BAMG
#define ALGO_2D_BAMG
Definition: GmshDefines.h:243
opt_view_color_tetrahedra
unsigned int opt_view_color_tetrahedra(OPT_ARGS_COL)
Definition: Options.cpp:10046
opt_mesh_color_
unsigned int opt_mesh_color_(int i, OPT_ARGS_COL)
Definition: Options.cpp:9871
opt_general_clip0a
double opt_general_clip0a(OPT_ARGS_NUM)
Definition: Options.cpp:3654
opt_mesh_partition_metis_edge_matching
double opt_mesh_partition_metis_edge_matching(OPT_ARGS_NUM)
Definition: Options.cpp:6570
opt_general_tmp_filename
std::string opt_general_tmp_filename(OPT_ARGS_STR)
Definition: Options.cpp:1217
CTX::axesTics
double axesTics[3]
Definition: Context.h:249
contextMeshOptions::lcFromPoints
int lcFromPoints
Definition: Context.h:27
CTX::sessionFileName
std::string sessionFileName
Definition: Context.h:142
opt_mesh_surface_edges
double opt_mesh_surface_edges(OPT_ARGS_NUM)
Definition: Options.cpp:5435
contextMeshOptions::colorCarousel
int colorCarousel
Definition: Context.h:88
opt_general_axes_format1
std::string opt_general_axes_format1(OPT_ARGS_STR)
Definition: Options.cpp:1125
contextGeometryOptions::snap
double snap[3]
Definition: Context.h:99
opt_view_auto_position
double opt_view_auto_position(OPT_ARGS_NUM)
Definition: Options.cpp:7783
drawTransform::setMatrix
virtual void setMatrix(double mat[3][3], double tra[3])
Definition: drawContext.h:53
GeometryOptions_String
StringXString GeometryOptions_String[]
Definition: DefaultOptions.h:142
opt_mesh_optimize_netgen
double opt_mesh_optimize_netgen(OPT_ARGS_NUM)
Definition: Options.cpp:4878
opt_general_axes_zmax
double opt_general_axes_zmax(OPT_ARGS_NUM)
Definition: Options.cpp:3215
opt_print_parameter
double opt_print_parameter(OPT_ARGS_NUM)
Definition: Options.cpp:9391
opt_print_eps_compress
double opt_print_eps_compress(OPT_ARGS_NUM)
Definition: Options.cpp:9189
opt_view_show_element
double opt_view_show_element(OPT_ARGS_NUM)
Definition: Options.cpp:8202
opt_general_display_border_factor
double opt_general_display_border_factor(OPT_ARGS_NUM)
Definition: Options.cpp:2843
CTX::editor
std::string editor
Definition: Context.h:175
CTX::autoLoadDatabase
int autoLoadDatabase
Definition: Context.h:333
CTX::geoOnlyPhysicals
int geoOnlyPhysicals
Definition: Context.h:342
opt_mesh_partition_pyr_weight
double opt_mesh_partition_pyr_weight(OPT_ARGS_NUM)
Definition: Options.cpp:5731
contextMeshOptions::partitionCreatePhysicals
int partitionCreatePhysicals
Definition: Context.h:73
CTX::saveMesh
int saveMesh
Definition: Context.h:320
GModel::current
static GModel * current(int index=-1)
Definition: GModel.cpp:136
opt_mesh_cgns_construct_topology
double opt_mesh_cgns_construct_topology(OPT_ARGS_NUM)
Definition: Options.cpp:6334
opt_mesh_partition_convert_msh2
double opt_mesh_partition_convert_msh2(OPT_ARGS_NUM)
Definition: Options.cpp:5791
opt_geometry_exact_extrusion
double opt_geometry_exact_extrusion(OPT_ARGS_NUM)
Definition: Options.cpp:4826
opt_general_option_position1
double opt_general_option_position1(OPT_ARGS_NUM)
Definition: Options.cpp:2437
COLORTABLE_BETA
#define COLORTABLE_BETA
Definition: ColorTable.h:41
CTX::background
int background
Definition: Context.h:347
opt_general_translation2
double opt_general_translation2(OPT_ARGS_NUM)
Definition: Options.cpp:2770
contextGeometryOptions::doubleClickedVolumeCommand
std::string doubleClickedVolumeCommand
Definition: Context.h:123
opt_solver_executable
std::string opt_solver_executable(OPT_ARGS_STR)
Definition: Options.cpp:1564
CTX::statPosition
int statPosition[2]
Definition: Context.h:189
SetColorOptionsGUI
static void SetColorOptionsGUI(int num, StringXColor s[])
Definition: Options.cpp:398
CTX::pgfHorizBar
int pgfHorizBar
Definition: Context.h:350
opt_general_axes_tics1
double opt_general_axes_tics1(OPT_ARGS_NUM)
Definition: Options.cpp:3138
opt_view_zmax
double opt_view_zmax(OPT_ARGS_NUM)
Definition: Options.cpp:7221
GMSH_Plugin::getOption
virtual StringXNumber * getOption(int iopt)
Definition: Plugin.h:62
CTX::bgImagePosition
double bgImagePosition[2]
Definition: Context.h:261
CTX::bgImagePage
int bgImagePage
Definition: Context.h:262
opt_general_clip2a
double opt_general_clip2a(OPT_ARGS_NUM)
Definition: Options.cpp:3734
opt_general_axes_value_xmax
double opt_general_axes_value_xmax(OPT_ARGS_NUM)
Definition: Options.cpp:3238
opt_general_background_image_size1
double opt_general_background_image_size1(OPT_ARGS_NUM)
Definition: Options.cpp:3495
opt_solver_executable0
std::string opt_solver_executable0(OPT_ARGS_STR)
Definition: Options.cpp:1571
opt_general_recent_file9
std::string opt_general_recent_file9(OPT_ARGS_STR)
Definition: Options.cpp:1295
CTX::guiColorScheme
int guiColorScheme
Definition: Context.h:165
opt_general_clip0b
double opt_general_clip0b(OPT_ARGS_NUM)
Definition: Options.cpp:3664
MeshOptions_String
StringXString MeshOptions_String[]
Definition: DefaultOptions.h:170
opt_geometry_old_ruled_surface
double opt_geometry_old_ruled_surface(OPT_ARGS_NUM)
Definition: Options.cpp:4719
opt_general_quaternion0
double opt_general_quaternion0(OPT_ARGS_NUM)
Definition: Options.cpp:2686
CTX::arrowRelStemLength
double arrowRelStemLength
Definition: Context.h:288
contextMeshOptions::labelSampling
int labelSampling
Definition: Context.h:88
opt_mesh_ignore_periodicity
double opt_mesh_ignore_periodicity(OPT_ARGS_NUM)
Definition: Options.cpp:6617
contextMeshOptions::saveAll
int saveAll
Definition: Context.h:60
opt_general_light50
double opt_general_light50(OPT_ARGS_NUM)
Definition: Options.cpp:4121
opt_general_recent_file8
std::string opt_general_recent_file8(OPT_ARGS_STR)
Definition: Options.cpp:1289
opt_general_clip_only_volume
double opt_general_clip_only_volume(OPT_ARGS_NUM)
Definition: Options.cpp:3919
opt_solver_executable3
std::string opt_solver_executable3(OPT_ARGS_STR)
Definition: Options.cpp:1586
opt_mesh_partition_save_topology_file
double opt_mesh_partition_save_topology_file(OPT_ARGS_NUM)
Definition: Options.cpp:5712
CTX::forceNodeData
int forceNodeData
Definition: Context.h:319
opt_print_file_format
double opt_print_file_format(OPT_ARGS_NUM)
Definition: Options.cpp:9183
CTX::smallAxesSize
int smallAxesSize
Definition: Context.h:246
opt_mesh_color_9
unsigned int opt_mesh_color_9(OPT_ARGS_COL)
Definition: Options.cpp:9925
opt_general_color_small_axes
unsigned int opt_general_color_small_axes(OPT_ARGS_COL)
Definition: Options.cpp:9541
opt_mesh_color_prisms
unsigned int opt_mesh_color_prisms(OPT_ARGS_COL)
Definition: Options.cpp:9800
opt_general_clip3b
double opt_general_clip3b(OPT_ARGS_NUM)
Definition: Options.cpp:3784
opt_view_colormap_invert
double opt_view_colormap_invert(OPT_ARGS_NUM)
Definition: Options.cpp:8881
opt_geometry_occ_fix_small_faces
double opt_geometry_occ_fix_small_faces(OPT_ARGS_NUM)
Definition: Options.cpp:4622
CTX::clipFactor
double clipFactor
Definition: Context.h:217
opt_general_default_filename
std::string opt_general_default_filename(OPT_ARGS_STR)
Definition: Options.cpp:1206
opt_geometry_color_curves
unsigned int opt_geometry_color_curves(OPT_ARGS_COL)
Definition: Options.cpp:9595
opt_mesh_max_num_threads_1d
double opt_mesh_max_num_threads_1d(OPT_ARGS_NUM)
Definition: Options.cpp:6629
contextMeshOptions::hoOptimize
int hoOptimize
Definition: Context.h:38
contextMeshOptions::hoMaxAngle
double hoMaxAngle
Definition: Context.h:43
CTX::pluginPosition
int pluginPosition[2]
Definition: Context.h:190
opt_general_clip1c
double opt_general_clip1c(OPT_ARGS_NUM)
Definition: Options.cpp:3714
CTX::clipPosition
int clipPosition[2]
Definition: Context.h:187
contextMeshOptions::randFactor
double randFactor
Definition: Context.h:21
CTX::abortOnError
int abortOnError
Definition: Context.h:153