Skip to content
Snippets Groups Projects
Select Git revision
  • 64696945b8cd80e955727a19f758e980f23a92c6
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

Visibility.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    highOrderToolsWindow.cpp 12.15 KiB
    // Gmsh - Copyright (C) 1997-2012 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to <gmsh@geuz.org>.
    
    #include "GmshConfig.h"
    #if !defined(HAVE_NO_STDINT_H)
    #include <stdint.h>
    #elif defined(HAVE_NO_INTPTR_T)
    typedef unsigned long intptr_t;
    #endif
    #include <string>
    #include <sstream>
    #include <map>
    #include <vector>
    #include <string.h>
    #include <FL/Fl_Tabs.H>
    #include <FL/Fl_Box.H>
    #include <FL/Fl_Return_Button.H>
    #include <FL/Fl_Value_Input.H>
    #include "GmshConfig.h"
    #include "FlGui.h"
    #include "drawContext.h"
    #include "highOrderToolsWindow.h"
    #include "paletteWindow.h"
    #include "contextWindow.h"
    #include "graphicWindow.h"
    #include "GmshDefines.h"
    #include "GmshMessage.h"
    #include "GModel.h"
    #include "MElement.h"
    #include "PView.h"
    #include "PViewData.h"
    #include "GeoStringInterface.h"
    #include "Options.h"
    #include "Context.h"
    #include "HighOrder.h"
    #include "OptHomRun.h"
    
    #if defined(HAVE_PARSER)
    #include "Parser.h"
    #endif
    
    
    static void change_completeness_cb(Fl_Widget *w, void *data){
    
      highOrderToolsWindow *o = FlGui::instance()->highordertools;
      bool onlyVisible = (bool)o->butt[1]->value(); 
      if (!o->complete){
        SetHighOrderComplete (GModel::current(), onlyVisible);
        o->complete = 1;
      }
      else if (o->complete){
        SetHighOrderInComplete (GModel::current(), onlyVisible);
        o->complete = 0;
      }
      CTX::instance()->mesh.changed |= (ENT_LINE | ENT_SURFACE | ENT_VOLUME);
      drawContext::global()->draw();
    }
    
    static void highordertools_runp_cb(Fl_Widget *w, void *data)
    {
      highOrderToolsWindow *o = FlGui::instance()->highordertools;
      
      int order = (int)o->value[0]->value();
      bool linear = !(bool)o->butt[2]->value(); 
      bool incomplete = (bool)o->butt[0]->value(); 
      bool elastic = (bool)o->butt[3]->value(); 
      double threshold = o->value[1]->value(); 
      bool onlyVisible = (bool)o->butt[1]->value();