gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CutGrid.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_GRID_H
7 #define CUT_GRID_H
8 
9 #include "Plugin.h"
10 
11 extern "C" {
13 }
14 
16  static double callback(int num, int action, double value, double *opt,
17  double step, double min, double max);
18  void addInView(int numsteps, int connect, int nbcomp, double ***pnts,
19  double ***vals, std::vector<double> &P, int *nP,
20  std::vector<double> &L, int *nL, std::vector<double> &Q,
21  int *nQ);
22  PView *GenerateView(PView *v, int connectPoints);
23 
24 public:
26  std::string getName() const { return "CutGrid"; }
27  std::string getShortHelp() const
28  {
29  return "Cut with a regular grid defined by 3 points";
30  }
31  std::string getHelp() const;
32  int getNbOptions() const;
33  StringXNumber *getOption(int iopt);
34  PView *execute(PView *);
35 
36  static int getNbU();
37  static int getNbV();
38  static void getPoint(int iU, int iV, double *X);
39 
40  static double callbackX0(int, int, double);
41  static double callbackY0(int, int, double);
42  static double callbackZ0(int, int, double);
43  static double callbackX1(int, int, double);
44  static double callbackY1(int, int, double);
45  static double callbackZ1(int, int, double);
46  static double callbackX2(int, int, double);
47  static double callbackY2(int, int, double);
48  static double callbackZ2(int, int, double);
49  static double callbackU(int, int, double);
50  static double callbackV(int, int, double);
51  static double callbackConnect(int, int, double);
52  static void draw(void *context);
53 };
54 
55 #endif
GMSH_CutGridPlugin::GMSH_CutGridPlugin
GMSH_CutGridPlugin()
Definition: CutGrid.h:25
PView
Definition: PView.h:27
GMSH_CutGridPlugin::callbackY2
static double callbackY2(int, int, double)
Definition: CutGrid.cpp:143
Plugin.h
GMSH_CutGridPlugin::execute
PView * execute(PView *)
Definition: CutGrid.cpp:378
GMSH_CutGridPlugin::callbackZ2
static double callbackZ2(int, int, double)
Definition: CutGrid.cpp:150
GMSH_Plugin
Definition: Plugin.h:26
GMSH_CutGridPlugin::getOption
StringXNumber * getOption(int iopt)
Definition: CutGrid.cpp:194
GMSH_Plugin::draw
static void(* draw)(void *)
Definition: Plugin.h:77
StringXNumber
Definition: Options.h:918
GMSH_CutGridPlugin::callbackV
static double callbackV(int, int, double)
Definition: CutGrid.cpp:162
GMSH_CutGridPlugin::getShortHelp
std::string getShortHelp() const
Definition: CutGrid.h:27
GMSH_CutGridPlugin::callbackConnect
static double callbackConnect(int, int, double)
Definition: CutGrid.cpp:168
GMSH_CutGridPlugin::addInView
void addInView(int numsteps, int connect, int nbcomp, double ***pnts, double ***vals, std::vector< double > &P, int *nP, std::vector< double > &L, int *nL, std::vector< double > &Q, int *nQ)
Definition: CutGrid.cpp:218
GMSH_CutGridPlugin::getName
std::string getName() const
Definition: CutGrid.h:26
GMSH_CutGridPlugin::callbackU
static double callbackU(int, int, double)
Definition: CutGrid.cpp:157
GMSH_CutGridPlugin::callbackZ0
static double callbackZ0(int, int, double)
Definition: CutGrid.cpp:108
GMSH_CutGridPlugin
Definition: CutGrid.h:15
GMSH_RegisterCutGridPlugin
GMSH_Plugin * GMSH_RegisterCutGridPlugin()
Definition: CutGrid.cpp:31
GMSH_CutGridPlugin::callbackZ1
static double callbackZ1(int, int, double)
Definition: CutGrid.cpp:129
GMSH_CutGridPlugin::callbackY0
static double callbackY0(int, int, double)
Definition: CutGrid.cpp:101
GMSH_CutGridPlugin::callbackX1
static double callbackX1(int, int, double)
Definition: CutGrid.cpp:115
GMSH_CutGridPlugin::callbackX2
static double callbackX2(int, int, double)
Definition: CutGrid.cpp:136
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_CutGridPlugin::getNbU
static int getNbU()
Definition: CutGrid.cpp:199
GMSH_CutGridPlugin::getPoint
static void getPoint(int iU, int iV, double *X)
Definition: CutGrid.cpp:203
GMSH_CutGridPlugin::callbackY1
static double callbackY1(int, int, double)
Definition: CutGrid.cpp:122
GMSH_CutGridPlugin::getNbV
static int getNbV()
Definition: CutGrid.cpp:201
GMSH_CutGridPlugin::GenerateView
PView * GenerateView(PView *v, int connectPoints)
Definition: CutGrid.cpp:307
GMSH_CutGridPlugin::getNbOptions
int getNbOptions() const
Definition: CutGrid.cpp:189
GMSH_CutGridPlugin::callback
static double callback(int num, int action, double value, double *opt, double step, double min, double max)
Definition: CutGrid.cpp:79
GMSH_CutGridPlugin::getHelp
std::string getHelp() const
Definition: CutGrid.cpp:173
GMSH_CutGridPlugin::callbackX0
static double callbackX0(int, int, double)
Definition: CutGrid.cpp:94