gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
Annotate.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef ANNOTATE_H
7 #define ANNOTATE_H
8 
9 #include <string>
10 #include "Plugin.h"
11 
12 extern "C" {
14 }
15 
17 private:
18  static double callback(int num, int action, double value, double *opt,
19  double step, double min, double max);
20  static std::string callbackStr(int num, int action, const std::string &value,
21  std::string &opt);
22 
23 public:
25  std::string getName() const { return "Annotate"; }
26  std::string getShortHelp() const { return "Add a text annotation"; }
27  std::string getHelp() const;
28  int getNbOptions() const;
29  StringXNumber *getOption(int iopt);
30  int getNbOptionsStr() const;
31  StringXString *getOptionStr(int iopt);
32  PView *execute(PView *);
33 
34  static double callbackX(int, int, double);
35  static double callbackY(int, int, double);
36  static double callbackZ(int, int, double);
37  static double callback3D(int, int, double);
38  static double callbackFontSize(int, int, double);
39  static std::string callbackText(int, int, const std::string &);
40  static std::string callbackFont(int, int, const std::string &);
41  static std::string callbackAlign(int, int, const std::string &);
42  static void draw(void *context);
43 };
44 
45 #endif
StringXString
Definition: Options.h:910
PView
Definition: PView.h:27
Plugin.h
GMSH_Plugin
Definition: Plugin.h:26
GMSH_AnnotatePlugin::getShortHelp
std::string getShortHelp() const
Definition: Annotate.h:26
GMSH_AnnotatePlugin::callbackX
static double callbackX(int, int, double)
Definition: Annotate.cpp:120
GMSH_AnnotatePlugin::getOptionStr
StringXString * getOptionStr(int iopt)
Definition: Annotate.cpp:209
GMSH_Plugin::draw
static void(* draw)(void *)
Definition: Plugin.h:77
GMSH_AnnotatePlugin::getName
std::string getName() const
Definition: Annotate.h:25
GMSH_AnnotatePlugin::getOption
StringXNumber * getOption(int iopt)
Definition: Annotate.cpp:199
GMSH_AnnotatePlugin::getNbOptions
int getNbOptions() const
Definition: Annotate.cpp:194
StringXNumber
Definition: Options.h:918
GMSH_AnnotatePlugin::callback
static double callback(int num, int action, double value, double *opt, double step, double min, double max)
Definition: Annotate.cpp:96
GMSH_AnnotatePlugin::callbackFont
static std::string callbackFont(int, int, const std::string &)
Definition: Annotate.cpp:167
GMSH_RegisterAnnotatePlugin
GMSH_Plugin * GMSH_RegisterAnnotatePlugin()
Definition: Annotate.cpp:29
GMSH_AnnotatePlugin::GMSH_AnnotatePlugin
GMSH_AnnotatePlugin()
Definition: Annotate.h:24
GMSH_AnnotatePlugin::callback3D
static double callback3D(int, int, double)
Definition: Annotate.cpp:150
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_AnnotatePlugin
Definition: Annotate.h:16
GMSH_AnnotatePlugin::getNbOptionsStr
int getNbOptionsStr() const
Definition: Annotate.cpp:204
GMSH_AnnotatePlugin::callbackText
static std::string callbackText(int, int, const std::string &)
Definition: Annotate.cpp:161
GMSH_AnnotatePlugin::execute
PView * execute(PView *)
Definition: Annotate.cpp:214
GMSH_AnnotatePlugin::callbackY
static double callbackY(int, int, double)
Definition: Annotate.cpp:130
GMSH_AnnotatePlugin::callbackFontSize
static double callbackFontSize(int, int, double)
Definition: Annotate.cpp:155
GMSH_AnnotatePlugin::callbackStr
static std::string callbackStr(int num, int action, const std::string &value, std::string &opt)
Definition: Annotate.cpp:111
GMSH_AnnotatePlugin::getHelp
std::string getHelp() const
Definition: Annotate.cpp:179
GMSH_AnnotatePlugin::callbackAlign
static std::string callbackAlign(int, int, const std::string &)
Definition: Annotate.cpp:173
GMSH_AnnotatePlugin::callbackZ
static double callbackZ(int, int, double)
Definition: Annotate.cpp:140