~ubuntu-branches/debian/sid/gmsh/sid

« back to all changes in this revision

Viewing changes to Common/Options.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-08-26 22:45:27 UTC
  • mfrom: (1.3.25)
  • Revision ID: package-import@ubuntu.com-20150826224527-wiqnz3dwz6ap8tty
Tags: 2.10.1+dfsg1-1
* [4c450d1] Update d/watch.
* [90ca918] Imported Upstream version 2.10.1+dfsg1. (Closes: #793245)
* [af26665] Use any-arch instead of list of archs.
* [e94c6d2] Refresh patches.
* [6ab417f] Update d/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1335
1335
  return CTX::instance()->glFontEngine;
1336
1336
}
1337
1337
 
 
1338
std::string opt_geometry_double_clicked_point_command(OPT_ARGS_STR)
 
1339
{
 
1340
  if(action & GMSH_SET)
 
1341
    CTX::instance()->geom.doubleClickedPointCommand = val;
 
1342
  return CTX::instance()->geom.doubleClickedPointCommand;
 
1343
}
 
1344
 
 
1345
std::string opt_geometry_double_clicked_line_command(OPT_ARGS_STR)
 
1346
{
 
1347
  if(action & GMSH_SET)
 
1348
    CTX::instance()->geom.doubleClickedLineCommand = val;
 
1349
  return CTX::instance()->geom.doubleClickedLineCommand;
 
1350
}
 
1351
 
 
1352
std::string opt_geometry_double_clicked_surface_command(OPT_ARGS_STR)
 
1353
{
 
1354
  if(action & GMSH_SET)
 
1355
    CTX::instance()->geom.doubleClickedSurfaceCommand = val;
 
1356
  return CTX::instance()->geom.doubleClickedSurfaceCommand;
 
1357
}
 
1358
 
 
1359
std::string opt_geometry_double_clicked_volume_command(OPT_ARGS_STR)
 
1360
{
 
1361
  if(action & GMSH_SET)
 
1362
    CTX::instance()->geom.doubleClickedVolumeCommand = val;
 
1363
  return CTX::instance()->geom.doubleClickedVolumeCommand;
 
1364
}
 
1365
 
1338
1366
std::string opt_solver_socket_name(OPT_ARGS_STR)
1339
1367
{
1340
1368
  if(action & GMSH_SET)
1545
1573
  return CTX::instance()->solver.octaveInterpreter;
1546
1574
}
1547
1575
 
1548
 
std::string opt_post_graph_point_command(OPT_ARGS_STR)
 
1576
std::string opt_post_double_clicked_graph_point_command(OPT_ARGS_STR)
1549
1577
{
1550
1578
  if(action & GMSH_SET)
1551
 
    CTX::instance()->post.graphPointCommand = val;
1552
 
  return CTX::instance()->post.graphPointCommand;
 
1579
    CTX::instance()->post.doubleClickedGraphPointCommand = val;
 
1580
  return CTX::instance()->post.doubleClickedGraphPointCommand;
1553
1581
}
1554
1582
 
1555
1583
#if defined(HAVE_FLTK)
1610
1638
#endif
1611
1639
}
1612
1640
 
 
1641
std::string opt_view_double_clicked_command(OPT_ARGS_STR)
 
1642
{
 
1643
#if defined(HAVE_POST)
 
1644
  GET_VIEWo("");
 
1645
  if(action & GMSH_SET) {
 
1646
    opt->doubleClickedCommand = val;
 
1647
  }
 
1648
  return opt->doubleClickedCommand;
 
1649
#else
 
1650
  return "";
 
1651
#endif
 
1652
}
 
1653
 
 
1654
std::string opt_view_group(OPT_ARGS_STR)
 
1655
{
 
1656
#if defined(HAVE_POST)
 
1657
  GET_VIEWo("");
 
1658
  if(action & GMSH_SET) {
 
1659
    opt->group = val;
 
1660
  }
 
1661
  return opt->group;
 
1662
#else
 
1663
  return "";
 
1664
#endif
 
1665
}
 
1666
 
1613
1667
std::string opt_view_filename(OPT_ARGS_STR)
1614
1668
{
1615
1669
#if defined(HAVE_POST)
4735
4789
  return CTX::instance()->geom.copyDisplayAttributes;
4736
4790
}
4737
4791
 
 
4792
double opt_geometry_double_clicked_entity_tag(OPT_ARGS_NUM)
 
4793
{
 
4794
  if(action & GMSH_SET)
 
4795
    CTX::instance()->geom.doubleClickedEntityTag = (int)val;
 
4796
  return CTX::instance()->geom.doubleClickedEntityTag;
 
4797
}
 
4798
 
4738
4799
double opt_geometry_exact_extrusion(OPT_ARGS_NUM)
4739
4800
{
4740
4801
  if(action & GMSH_SET)
6516
6577
  return CTX::instance()->post.forceNodeData;
6517
6578
}
6518
6579
 
6519
 
double opt_post_graph_point_x(OPT_ARGS_NUM)
6520
 
{
6521
 
  if(action & GMSH_SET)
6522
 
    CTX::instance()->post.graphPointX = val;
6523
 
  return CTX::instance()->post.graphPointX;
6524
 
}
6525
 
 
6526
 
double opt_post_graph_point_y(OPT_ARGS_NUM)
6527
 
{
6528
 
  if(action & GMSH_SET)
6529
 
    CTX::instance()->post.graphPointY = val;
6530
 
  return CTX::instance()->post.graphPointY;
 
6580
double opt_post_force_element_data(OPT_ARGS_NUM)
 
6581
{
 
6582
  if(action & GMSH_SET)
 
6583
    CTX::instance()->post.forceElementData = (int)val;
 
6584
  return CTX::instance()->post.forceElementData;
 
6585
}
 
6586
 
 
6587
double opt_post_double_clicked_graph_point_x(OPT_ARGS_NUM)
 
6588
{
 
6589
  if(action & GMSH_SET)
 
6590
    CTX::instance()->post.doubleClickedGraphPointX = val;
 
6591
  return CTX::instance()->post.doubleClickedGraphPointX;
 
6592
}
 
6593
 
 
6594
double opt_post_double_clicked_graph_point_y(OPT_ARGS_NUM)
 
6595
{
 
6596
  if(action & GMSH_SET)
 
6597
    CTX::instance()->post.doubleClickedGraphPointY = val;
 
6598
  return CTX::instance()->post.doubleClickedGraphPointY;
 
6599
}
 
6600
 
 
6601
double opt_post_double_clicked_view(OPT_ARGS_NUM)
 
6602
{
 
6603
  if(action & GMSH_SET)
 
6604
    CTX::instance()->post.doubleClickedView = (int)val;
 
6605
  return CTX::instance()->post.doubleClickedView;
6531
6606
}
6532
6607
 
6533
6608
double opt_view_nb_timestep(OPT_ARGS_NUM)
8720
8795
double opt_view_component_map7(OPT_ARGS_NUM){ return ovcm(num, action, val, 7); }
8721
8796
double opt_view_component_map8(OPT_ARGS_NUM){ return ovcm(num, action, val, 8); }
8722
8797
 
 
8798
double opt_view_closed(OPT_ARGS_NUM)
 
8799
{
 
8800
#if defined(HAVE_POST)
 
8801
  GET_VIEWo(0.);
 
8802
  if(action & GMSH_SET) {
 
8803
    opt->closed = (int)val;
 
8804
  }
 
8805
#if defined(HAVE_FLTK)
 
8806
  if(FlGui::available() && (action & GMSH_GUI) && num >= 0){
 
8807
    FlGui::instance()->onelab->openCloseViewButton(num);
 
8808
  }
 
8809
#endif
 
8810
  return opt->closed;
 
8811
#else
 
8812
  return 0.;
 
8813
#endif
 
8814
}
 
8815
 
8723
8816
double opt_print_file_format(OPT_ARGS_NUM)
8724
8817
{
8725
8818
  if(action & GMSH_SET)