~ubuntu-branches/ubuntu/intrepid/gmsh/intrepid

« back to all changes in this revision

Viewing changes to Common/Options.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Veri
  • Date: 2007-07-14 23:29:56 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070714232956-ikw2f28278kxkquw
Tags: 2.0.8-1ubuntu1
* Merge from debian unstable, remaining changes:
  debian/rules:
    - added dh_desktop for registering gmsh.desktop file.
  debian/gmsh.install:
    - Installing both gmsh.desktop and respective icon.
  debian/menu:
    - added gmsh icon path
  debian/control:
    - Modify Maintainer value to match Debian-Maintainer-Field Spec.

* removing 02_gcc4.3-FTBFS.dpatch previously added in ubuntu, it has been reported 
  and fixed upstream with the new usptream release (2.0.8).
  Check debian bug #417211 for confirmation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: Options.cpp,v 1.338 2007/03/18 12:05:16 geuzaine Exp $
 
1
// $Id: Options.cpp,v 1.346 2007-06-22 08:07:45 geuzaine Exp $
2
2
//
3
3
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
4
4
//
144
144
  CTX.post.force_num = 0;
145
145
  CTX.threads_lock = 0; // very primitive locking
146
146
  CTX.mesh.changed = 0;
147
 
  CTX.mesh.bgmesh_view_num = -1;
148
147
  CTX.post.combine_time = 0; // try to combine_time views at startup
149
148
  CTX.post.plugin_draw_function = NULL;
150
149
#if defined(HAVE_FLTK)
2391
2390
  return CTX.opt_position[1];
2392
2391
}
2393
2392
 
 
2393
double opt_general_plugin_position0(OPT_ARGS_NUM)
 
2394
{
 
2395
  if(action & GMSH_SET)
 
2396
    CTX.plugin_position[0] = (int)val;
 
2397
  return CTX.plugin_position[0];
 
2398
}
 
2399
 
 
2400
double opt_general_plugin_position1(OPT_ARGS_NUM)
 
2401
{
 
2402
  if(action & GMSH_SET)
 
2403
    CTX.plugin_position[1] = (int)val;
 
2404
  return CTX.plugin_position[1];
 
2405
}
 
2406
 
 
2407
double opt_general_plugin_size0(OPT_ARGS_NUM)
 
2408
{
 
2409
  if(action & GMSH_SET)
 
2410
    CTX.plugin_size[0] = (int)val;
 
2411
  return CTX.plugin_size[0];
 
2412
}
 
2413
 
 
2414
double opt_general_plugin_size1(OPT_ARGS_NUM)
 
2415
{
 
2416
  if(action & GMSH_SET)
 
2417
    CTX.plugin_size[1] = (int)val;
 
2418
  return CTX.plugin_size[1];
 
2419
}
 
2420
 
2394
2421
double opt_general_statistics_position0(OPT_ARGS_NUM)
2395
2422
{
2396
2423
  if(action & GMSH_SET)
4083
4110
  return CTX.geom.extrude_spline_points;
4084
4111
}
4085
4112
 
 
4113
double opt_geometry_extrude_return_lateral(OPT_ARGS_NUM)
 
4114
{
 
4115
  if(action & GMSH_SET)
 
4116
    CTX.geom.extrude_return_lateral = (int)val;
 
4117
  return CTX.geom.extrude_return_lateral;
 
4118
}
 
4119
 
4086
4120
double opt_geometry_scaling_factor(OPT_ARGS_NUM)
4087
4121
{
4088
4122
  if(action & GMSH_SET)
4719
4753
#if defined(HAVE_FLTK)
4720
4754
  if(WID && (action & GMSH_GUI)) {
4721
4755
    switch (CTX.mesh.algo2d) {
 
4756
    case ALGO_2D_MESHADAPT:
 
4757
      WID->mesh_choice[2]->value(0);
 
4758
      break;
4722
4759
    case ALGO_2D_DELAUNAY:
4723
4760
      WID->mesh_choice[2]->value(1);
4724
4761
      break;
4725
 
    case ALGO_2D_MESHADAPT:
 
4762
    case ALGO_2D_MESHADAPT_DELAUNAY:
4726
4763
    default:
4727
 
      WID->mesh_choice[2]->value(0);
 
4764
      WID->mesh_choice[2]->value(2);
4728
4765
      break;
4729
4766
    }
4730
4767
  }
4770
4807
    case ALGO_3D_NETGEN:
4771
4808
      WID->mesh_choice[3]->value(1);
4772
4809
      break;
4773
 
    case ALGO_3D_DELAUNAY:
 
4810
    case ALGO_3D_TETGEN_DELAUNAY:
4774
4811
    default:
4775
4812
      WID->mesh_choice[3]->value(0);
4776
4813
      break;
4809
4846
  return CTX.mesh.order;
4810
4847
}
4811
4848
 
 
4849
double opt_mesh_c1(OPT_ARGS_NUM)
 
4850
{
 
4851
  if(action & GMSH_SET)
 
4852
    CTX.mesh.c1_continuity = (int)val;
 
4853
#if defined(HAVE_FLTK)
 
4854
  if(WID && (action & GMSH_GUI))
 
4855
    WID->mesh_butt[21]->value(CTX.mesh.c1_continuity);
 
4856
#endif
 
4857
  return CTX.mesh.c1_continuity;
 
4858
}
 
4859
 
4812
4860
double opt_mesh_smooth_internal_edges(OPT_ARGS_NUM)
4813
4861
{
4814
4862
  if(action & GMSH_SET)
4964
5012
  return CTX.mesh.save_all;
4965
5013
}
4966
5014
 
 
5015
double opt_mesh_save_groups_of_nodes(OPT_ARGS_NUM)
 
5016
{
 
5017
  if(action & GMSH_SET)
 
5018
    CTX.mesh.save_groups_of_nodes = val ? 1 : 0;
 
5019
  return CTX.mesh.save_groups_of_nodes;
 
5020
}
 
5021
 
4967
5022
double opt_mesh_color_carousel(OPT_ARGS_NUM)
4968
5023
{
4969
5024
  if(action & GMSH_SET) {
7014
7069
  return CTX.print.text;
7015
7070
}
7016
7071
 
 
7072
double opt_print_tex_as_equation(OPT_ARGS_NUM)
 
7073
{
 
7074
  if(action & GMSH_SET)
 
7075
    CTX.print.tex_as_equation = (int)val;
 
7076
  return CTX.print.tex_as_equation;
 
7077
}
 
7078
 
7017
7079
// Color option routines
7018
7080
 
7019
7081
#if defined(HAVE_FLTK)