gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CutPlane.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_PLANE_H
7 #define CUT_PLANE_H
8 
9 #include "Levelset.h"
10 
11 extern "C" {
13 }
14 
16  double levelset(double x, double y, double z, double val) const;
17  static double callback(int num, int action, double value, double *opt,
18  double step, double min, double max);
19  static int iview;
20 
21 public:
23  std::string getName() const { return "CutPlane"; }
24  std::string getShortHelp() const
25  {
26  return "Cut with the plane A*X + B*Y + C*Z + D = 0";
27  }
28  std::string getHelp() const;
29  int getNbOptions() const;
30  StringXNumber *getOption(int iopt);
31  PView *execute(PView *);
32  virtual bool geometricalFilter(fullMatrix<double> *) const;
33 
34  static double callbackA(int, int, double);
35  static double callbackB(int, int, double);
36  static double callbackC(int, int, double);
37  static double callbackD(int, int, double);
38  static double callbackVol(int, int, double);
39  static double callbackRecur(int, int, double);
40  static double callbackTarget(int, int, double);
41  static void draw(void *context);
42 };
43 
44 #endif
PView
Definition: PView.h:27
Levelset.h
GMSH_Plugin
Definition: Plugin.h:26
GMSH_CutPlanePlugin::callbackRecur
static double callbackRecur(int, int, double)
Definition: CutPlane.cpp:97
GMSH_Plugin::draw
static void(* draw)(void *)
Definition: Plugin.h:77
GMSH_CutPlanePlugin
Definition: CutPlane.h:15
StringXNumber
Definition: Options.h:918
GMSH_CutPlanePlugin::iview
static int iview
Definition: CutPlane.h:19
GMSH_CutPlanePlugin::getName
std::string getName() const
Definition: CutPlane.h:23
GMSH_CutPlanePlugin::callbackTarget
static double callbackTarget(int, int, double)
Definition: CutPlane.cpp:102
GMSH_CutPlanePlugin::getHelp
std::string getHelp() const
Definition: CutPlane.cpp:108
GMSH_CutPlanePlugin::getOption
StringXNumber * getOption(int iopt)
Definition: CutPlane.cpp:124
GMSH_CutPlanePlugin::callbackB
static double callbackB(int, int, double)
Definition: CutPlane.cpp:72
GMSH_CutPlanePlugin::callback
static double callback(int num, int action, double value, double *opt, double step, double min, double max)
Definition: CutPlane.cpp:50
fullMatrix< double >
GMSH_CutPlanePlugin::callbackC
static double callbackC(int, int, double)
Definition: CutPlane.cpp:78
GMSH_CutPlanePlugin::levelset
double levelset(double x, double y, double z, double val) const
Definition: CutPlane.cpp:129
GMSH_CutPlanePlugin::callbackA
static double callbackA(int, int, double)
Definition: CutPlane.cpp:66
GMSH_CutPlanePlugin::execute
PView * execute(PView *)
Definition: CutPlane.cpp:150
GMSH_CutPlanePlugin::GMSH_CutPlanePlugin
GMSH_CutPlanePlugin()
Definition: CutPlane.h:22
GMSH_CutPlanePlugin::geometricalFilter
virtual bool geometricalFilter(fullMatrix< double > *) const
Definition: CutPlane.cpp:136
GMSH_CutPlanePlugin::callbackVol
static double callbackVol(int, int, double)
Definition: CutPlane.cpp:91
z
const double z
Definition: GaussQuadratureQuad.cpp:56
GMSH_CutPlanePlugin::getShortHelp
std::string getShortHelp() const
Definition: CutPlane.h:24
GMSH_CutPlanePlugin::callbackD
static double callbackD(int, int, double)
Definition: CutPlane.cpp:84
GMSH_RegisterCutPlanePlugin
GMSH_Plugin * GMSH_RegisterCutPlanePlugin()
Definition: CutPlane.cpp:28
GMSH_LevelsetPlugin
Definition: Levelset.h:11
GMSH_CutPlanePlugin::getNbOptions
int getNbOptions() const
Definition: CutPlane.cpp:119