Skip to content
Snippets Groups Projects
Select Git revision
  • 163002803684733519c185149c8ec2aef437a2f1
  • master default protected
  • NewDistributionGmshFWI
  • parametrizationSimpleWave
  • tuto_obstacle
  • everything
  • cleanup_configuuration_mesh
  • fix
  • source_estimation
  • unique_ptr
  • SobolevDirectionalFilter
  • OT
  • newPhysics
  • SimultaneousFrequency
  • SobolevDistance
  • BonesImaging
  • MultiParameter
  • UpdateAntho
  • v2.0
  • v1.0
20 results

flexible_acquisition.cpp

Blame
  • Annotate.h 1.45 KiB
    // Gmsh - Copyright (C) 1997-2016 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@onelab.info>.
    
    #ifndef _ANNOTATE_H_
    #define _ANNOTATE_H_
    
    #include <string>
    #include "Plugin.h"
    
    extern "C"
    {
      GMSH_Plugin *GMSH_RegisterAnnotatePlugin();
    }
    
    class GMSH_AnnotatePlugin : public GMSH_PostPlugin
    {
     private:
      static double callback(int num, int action, double value, double *opt,
                             double step, double min, double max);
      static std::string callbackStr(int num, int action, std::string value,
                                     std::string &opt);
     public:
      GMSH_AnnotatePlugin(){}
      std::string getName() const { return "Annotate"; }
      std::string getShortHelp() const { return "Add a text annotation"; }
      std::string getHelp() const;
      int getNbOptions() const;
      StringXNumber *getOption(int iopt);  
      int getNbOptionsStr() const;
      StringXString *getOptionStr(int iopt);  
      PView *execute(PView *);
    
      static double callbackX(int, int, double);
      static double callbackY(int, int, double);
      static double callbackZ(int, int, double);
      static double callback3D(int, int, double);
      static double callbackFontSize(int, int, double);
      static std::string callbackText(int, int, std::string);
      static std::string callbackFont(int, int, std::string);
      static std::string callbackAlign(int, int, std::string);
      static void draw(void *context);
    };
    
    #endif