gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CutBox.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_BOX_H
7 #define CUT_BOX_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 connect, int boundary, int numsteps, int nbcomp,
19  double ****pnts, double ****vals, std::vector<double> &P,
20  int *nP, std::vector<double> &L, int *nL,
21  std::vector<double> &Q, int *nQ, std::vector<double> &H,
22  int *nH);
23  PView *GenerateView(PView *v, int connectPoints, int boundary);
24 
25 public:
27  std::string getName() const { return "CutBox"; }
28  std::string getShortHelp() const
29  {
30  return "Cut with a regular box defined by 4 points";
31  }
32  std::string getHelp() const;
33  int getNbOptions() const;
34  StringXNumber *getOption(int iopt);
35  PView *execute(PView *);
36 
37  static int getNbU();
38  static int getNbV();
39  static int getNbW();
40  static void getPoint(int iU, int iV, int iW, double *X);
41 
42  static double callbackX0(int, int, double);
43  static double callbackY0(int, int, double);
44  static double callbackZ0(int, int, double);
45  static double callbackX1(int, int, double);
46  static double callbackY1(int, int, double);
47  static double callbackZ1(int, int, double);
48  static double callbackX2(int, int, double);
49  static double callbackY2(int, int, double);
50  static double callbackZ2(int, int, double);
51  static double callbackX3(int, int, double);
52  static double callbackY3(int, int, double);
53  static double callbackZ3(int, int, double);
54  static double callbackU(int, int, double);
55  static double callbackV(int, int, double);
56  static double callbackW(int, int, double);
57  static double callbackConnect(int, int, double);
58  static double callbackBoundary(int, int, double);
59  static void draw(void *context);
60 };
61 
62 #endif
GMSH_CutBoxPlugin::callbackW
static double callbackW(int, int, double)
Definition: CutBox.cpp:273
GMSH_CutBoxPlugin::getNbV
static int getNbV()
Definition: CutBox.cpp:319
GMSH_CutBoxPlugin::callbackU
static double callbackU(int, int, double)
Definition: CutBox.cpp:263
GMSH_RegisterCutBoxPlugin
GMSH_Plugin * GMSH_RegisterCutBoxPlugin()
Definition: CutBox.cpp:36
PView
Definition: PView.h:27
GMSH_CutBoxPlugin::GenerateView
PView * GenerateView(PView *v, int connectPoints, int boundary)
Definition: CutBox.cpp:1016
GMSH_CutBoxPlugin::getOption
StringXNumber * getOption(int iopt)
Definition: CutBox.cpp:312
GMSH_CutBoxPlugin::getNbOptions
int getNbOptions() const
Definition: CutBox.cpp:307
Plugin.h
GMSH_Plugin
Definition: Plugin.h:26
GMSH_CutBoxPlugin::callbackX0
static double callbackX0(int, int, double)
Definition: CutBox.cpp:179
GMSH_Plugin::draw
static void(* draw)(void *)
Definition: Plugin.h:77
StringXNumber
Definition: Options.h:918
GMSH_CutBoxPlugin::callbackY2
static double callbackY2(int, int, double)
Definition: CutBox.cpp:228
GMSH_CutBoxPlugin::getNbW
static int getNbW()
Definition: CutBox.cpp:321
GMSH_CutBoxPlugin::GMSH_CutBoxPlugin
GMSH_CutBoxPlugin()
Definition: CutBox.h:26
GMSH_CutBoxPlugin::callbackZ3
static double callbackZ3(int, int, double)
Definition: CutBox.cpp:256
GMSH_CutBoxPlugin::callbackX3
static double callbackX3(int, int, double)
Definition: CutBox.cpp:242
GMSH_CutBoxPlugin::callbackY3
static double callbackY3(int, int, double)
Definition: CutBox.cpp:249
GMSH_CutBoxPlugin::getName
std::string getName() const
Definition: CutBox.h:27
GMSH_CutBoxPlugin::callbackX1
static double callbackX1(int, int, double)
Definition: CutBox.cpp:200
GMSH_CutBoxPlugin::callbackY1
static double callbackY1(int, int, double)
Definition: CutBox.cpp:207
GMSH_CutBoxPlugin::callbackZ1
static double callbackZ1(int, int, double)
Definition: CutBox.cpp:214
GMSH_CutBoxPlugin::getHelp
std::string getHelp() const
Definition: CutBox.cpp:288
GMSH_CutBoxPlugin::callbackBoundary
static double callbackBoundary(int, int, double)
Definition: CutBox.cpp:283
GMSH_CutBoxPlugin
Definition: CutBox.h:15
GMSH_CutBoxPlugin::addInView
void addInView(int connect, int boundary, int numsteps, int nbcomp, double ****pnts, double ****vals, std::vector< double > &P, int *nP, std::vector< double > &L, int *nL, std::vector< double > &Q, int *nQ, std::vector< double > &H, int *nH)
Definition: CutBox.cpp:343
GMSH_CutBoxPlugin::getPoint
static void getPoint(int iU, int iV, int iW, double *X)
Definition: CutBox.cpp:323
GMSH_CutBoxPlugin::callback
static double callback(int num, int action, double value, double *opt, double step, double min, double max)
Definition: CutBox.cpp:164
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_CutBoxPlugin::callbackX2
static double callbackX2(int, int, double)
Definition: CutBox.cpp:221
GMSH_CutBoxPlugin::callbackY0
static double callbackY0(int, int, double)
Definition: CutBox.cpp:186
GMSH_CutBoxPlugin::execute
PView * execute(PView *)
Definition: CutBox.cpp:1104
GMSH_CutBoxPlugin::getNbU
static int getNbU()
Definition: CutBox.cpp:317
GMSH_CutBoxPlugin::getShortHelp
std::string getShortHelp() const
Definition: CutBox.h:28
GMSH_CutBoxPlugin::callbackConnect
static double callbackConnect(int, int, double)
Definition: CutBox.cpp:278
GMSH_CutBoxPlugin::callbackZ2
static double callbackZ2(int, int, double)
Definition: CutBox.cpp:235
GMSH_CutBoxPlugin::callbackV
static double callbackV(int, int, double)
Definition: CutBox.cpp:268
GMSH_CutBoxPlugin::callbackZ0
static double callbackZ0(int, int, double)
Definition: CutBox.cpp:193