Skip to content
Snippets Groups Projects
Select Git revision
  • fb03e12aa29c9fa85518b28bebf2e96b220aae93
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • 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
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

README.txt

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    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