Skip to content
Snippets Groups Projects
Select Git revision
  • eeefe8a9f79bf35ca279b5c7933441a71393865e
  • master default protected
  • overlaps_tags_and_distributed_export
  • relaying
  • patches-4.14
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

Probe.h

  • Probe.h 983 B
    // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    
    #ifndef PROBE_H
    #define PROBE_H
    
    #include "Plugin.h"
    
    extern "C" {
    GMSH_Plugin *GMSH_RegisterProbePlugin();
    }
    
    class GMSH_ProbePlugin : public GMSH_PostPlugin {
      double levelset(double x, double y, double z, double val) const;
      static double callback(int num, int action, double value, double *opt);
      static int iview;
    
    public:
      GMSH_ProbePlugin() {}
      std::string getName() const { return "Probe"; }
      std::string getShortHelp() const { return "Get value at point (X, Y, Z)"; }
      std::string getHelp() const;
      int getNbOptions() const;
      StringXNumber *getOption(int iopt);
      PView *execute(PView *);
    
      static double callbackX(int, int, double);
      static double callbackY(int, int, double);
      static double callbackZ(int, int, double);
      static void draw(void *context);
    };
    
    #endif