gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CutParametric.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 CUT_PARAMETRIC_H
7 #define CUT_PARAMETRIC_H
8 
9 #include <string>
10 #include <vector>
11 #include "Plugin.h"
12 
13 extern "C" {
15 }
16 
18 private:
19  static double callback(int num, int action, double value, double *opt,
20  double step, double min, double max);
21  static std::string callbackStr(int num, int action, const std::string &value,
22  std::string &opt);
23  static int fillXYZ();
24  static int recompute;
25  static std::vector<double> x, y, z;
26 
27 public:
29  std::string getName() const { return "CutParametric"; }
30  std::string getShortHelp() const
31  {
32  return "Cut with the parametric curve (X(u,v), Y(u,v), Z(u,v))";
33  }
34  std::string getHelp() const;
35  int getNbOptions() const;
36  StringXNumber *getOption(int iopt);
37  int getNbOptionsStr() const;
38  StringXString *getOptionStr(int iopt);
39  PView *execute(PView *);
40 
41  static double callbackMinU(int, int, double);
42  static double callbackMaxU(int, int, double);
43  static double callbackNU(int, int, double);
44  static double callbackMinV(int, int, double);
45  static double callbackMaxV(int, int, double);
46  static double callbackNV(int, int, double);
47  static double callbackConnect(int, int, double);
48  static std::string callbackX(int, int, const std::string &);
49  static std::string callbackY(int, int, const std::string &);
50  static std::string callbackZ(int, int, const std::string &);
51  static void draw(void *context);
52 };
53 
54 #endif
StringXString
Definition: Options.h:910
GMSH_CutParametricPlugin::z
static std::vector< double > z
Definition: CutParametric.h:25
GMSH_CutParametricPlugin::recompute
static int recompute
Definition: CutParametric.h:24
PView
Definition: PView.h:27
GMSH_CutParametricPlugin::callbackMinU
static double callbackMinU(int, int, double)
Definition: CutParametric.cpp:171
GMSH_CutParametricPlugin::getNbOptions
int getNbOptions() const
Definition: CutParametric.cpp:245
GMSH_CutParametricPlugin::callbackStr
static std::string callbackStr(int num, int action, const std::string &value, std::string &opt)
Definition: CutParametric.cpp:161
Plugin.h
GMSH_Plugin
Definition: Plugin.h:26
GMSH_CutParametricPlugin
Definition: CutParametric.h:17
GMSH_Plugin::draw
static void(* draw)(void *)
Definition: Plugin.h:77
GMSH_CutParametricPlugin::getOptionStr
StringXString * getOptionStr(int iopt)
Definition: CutParametric.cpp:260
StringXNumber
Definition: Options.h:918
GMSH_CutParametricPlugin::fillXYZ
static int fillXYZ()
Definition: CutParametric.cpp:71
GMSH_CutParametricPlugin::getShortHelp
std::string getShortHelp() const
Definition: CutParametric.h:30
GMSH_CutParametricPlugin::getName
std::string getName() const
Definition: CutParametric.h:29
GMSH_RegisterCutParametricPlugin
GMSH_Plugin * GMSH_RegisterCutParametricPlugin()
Definition: CutParametric.cpp:36
GMSH_CutParametricPlugin::GMSH_CutParametricPlugin
GMSH_CutParametricPlugin()
Definition: CutParametric.h:28
GMSH_CutParametricPlugin::y
static std::vector< double > y
Definition: CutParametric.h:25
GMSH_CutParametricPlugin::getNbOptionsStr
int getNbOptionsStr() const
Definition: CutParametric.cpp:255
GMSH_CutParametricPlugin::callbackConnect
static double callbackConnect(int, int, double)
Definition: CutParametric.cpp:207
GMSH_CutParametricPlugin::callbackX
static std::string callbackX(int, int, const std::string &)
Definition: CutParametric.cpp:214
GMSH_CutParametricPlugin::callbackNU
static double callbackNU(int, int, double)
Definition: CutParametric.cpp:183
GMSH_CutParametricPlugin::callbackMaxV
static double callbackMaxV(int, int, double)
Definition: CutParametric.cpp:195
GMSH_CutParametricPlugin::callbackZ
static std::string callbackZ(int, int, const std::string &)
Definition: CutParametric.cpp:226
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_CutParametricPlugin::getHelp
std::string getHelp() const
Definition: CutParametric.cpp:232
GMSH_CutParametricPlugin::callback
static double callback(int num, int action, double value, double *opt, double step, double min, double max)
Definition: CutParametric.cpp:145
GMSH_CutParametricPlugin::getOption
StringXNumber * getOption(int iopt)
Definition: CutParametric.cpp:250
GMSH_CutParametricPlugin::callbackNV
static double callbackNV(int, int, double)
Definition: CutParametric.cpp:201
GMSH_CutParametricPlugin::callbackY
static std::string callbackY(int, int, const std::string &)
Definition: CutParametric.cpp:220
GMSH_CutParametricPlugin::execute
PView * execute(PView *)
Definition: CutParametric.cpp:322
GMSH_CutParametricPlugin::x
static std::vector< double > x
Definition: CutParametric.h:25
GMSH_CutParametricPlugin::callbackMinV
static double callbackMinV(int, int, double)
Definition: CutParametric.cpp:189
GMSH_CutParametricPlugin::callbackMaxU
static double callbackMaxU(int, int, double)
Definition: CutParametric.cpp:177