gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CutSphere.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_SPHERE_H
7 #define CUT_SPHERE_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 
20 public:
22  std::string getName() const { return "CutSphere"; }
23  std::string getShortHelp() const
24  {
25  return "Cut with a sphere centered at (Xc, Yc, Zc)";
26  }
27  std::string getHelp() const;
28  int getNbOptions() const;
29  StringXNumber *getOption(int iopt);
30  PView *execute(PView *);
31 
32  static double callbackX(int, int, double);
33  static double callbackY(int, int, double);
34  static double callbackZ(int, int, double);
35  static double callbackR(int, int, double);
36  static double callbackVol(int, int, double);
37  static double callbackRecur(int, int, double);
38  static double callbackTarget(int, int, double);
39  static void draw(void *context);
40 };
41 
42 #endif
PView
Definition: PView.h:27
GMSH_CutSpherePlugin
Definition: CutSphere.h:15
Levelset.h
GMSH_CutSpherePlugin::getShortHelp
std::string getShortHelp() const
Definition: CutSphere.h:23
GMSH_Plugin
Definition: Plugin.h:26
GMSH_Plugin::draw
static void(* draw)(void *)
Definition: Plugin.h:77
StringXNumber
Definition: Options.h:918
GMSH_CutSpherePlugin::callbackZ
static double callbackZ(int, int, double)
Definition: CutSphere.cpp:77
GMSH_CutSpherePlugin::callbackR
static double callbackR(int, int, double)
Definition: CutSphere.cpp:84
GMSH_CutSpherePlugin::getHelp
std::string getHelp() const
Definition: CutSphere.cpp:108
GMSH_CutSpherePlugin::callbackY
static double callbackY(int, int, double)
Definition: CutSphere.cpp:70
GMSH_CutSpherePlugin::callbackRecur
static double callbackRecur(int, int, double)
Definition: CutSphere.cpp:96
GMSH_CutSpherePlugin::execute
PView * execute(PView *)
Definition: CutSphere.cpp:139
GMSH_CutSpherePlugin::getOption
StringXNumber * getOption(int iopt)
Definition: CutSphere.cpp:124
GMSH_RegisterCutSpherePlugin
GMSH_Plugin * GMSH_RegisterCutSpherePlugin()
Definition: CutSphere.cpp:26
GMSH_CutSpherePlugin::callbackTarget
static double callbackTarget(int, int, double)
Definition: CutSphere.cpp:102
GMSH_CutSpherePlugin::GMSH_CutSpherePlugin
GMSH_CutSpherePlugin()
Definition: CutSphere.h:21
z
const double z
Definition: GaussQuadratureQuad.cpp:56
GMSH_CutSpherePlugin::getName
std::string getName() const
Definition: CutSphere.h:22
GMSH_CutSpherePlugin::callbackX
static double callbackX(int, int, double)
Definition: CutSphere.cpp:63
GMSH_LevelsetPlugin
Definition: Levelset.h:11
GMSH_CutSpherePlugin::getNbOptions
int getNbOptions() const
Definition: CutSphere.cpp:119
GMSH_CutSpherePlugin::levelset
double levelset(double x, double y, double z, double val) const
Definition: CutSphere.cpp:129
GMSH_CutSpherePlugin::callbackVol
static double callbackVol(int, int, double)
Definition: CutSphere.cpp:90
GMSH_CutSpherePlugin::callback
static double callback(int num, int action, double value, double *opt, double step, double min, double max)
Definition: CutSphere.cpp:48