gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
6 #include "GmshConfig.h"
11 #if defined(HAVE_OPENGL)
30 #if defined(HAVE_OPENGL)
32 if(num < 0) num =
iview;
41 if(x >= bb.
min().
x() && x <= bb.
max().
x() && y >= bb.
min().
y() &&
45 glVertex3d(bb.
min().
x(), y,
z);
46 glVertex3d(bb.
max().
x(), y,
z);
47 glVertex3d(x, bb.
min().
y(),
z);
48 glVertex3d(x, bb.
max().
y(),
z);
49 glVertex3d(x, y, bb.
min().
z());
50 glVertex3d(x, y, bb.
max().
z());
57 glVertex3d(x - d, y,
z);
58 glVertex3d(x + d, y,
z);
59 glVertex3d(x, y - d,
z);
60 glVertex3d(x, y + d,
z);
61 glVertex3d(x, y,
z - d);
62 glVertex3d(x, y,
z + d);
73 if(action > 0)
iview = num;
102 return "Plugin(Probe) gets the value of the view `View' at "
103 "the point (`X',`Y',`Z').\n\n"
104 "If `View' < 0, the plugin is run on the current view.\n\n"
105 "Plugin(Probe) creates one new view.";
132 double *val =
new double[9 * numSteps];
137 data2->
SP.push_back(x);
138 data2->
SP.push_back(y);
139 data2->
SP.push_back(
z);
140 for(
int i = 0; i < numSteps; i++) data2->
SP.push_back(val[i]);
145 data2->
VP.push_back(x);
146 data2->
VP.push_back(y);
147 data2->
VP.push_back(
z);
148 for(
int i = 0; i < numSteps; i++) {
149 for(
int j = 0; j < 3; j++) data2->
VP.push_back(val[3 * i + j]);
155 data2->
TP.push_back(x);
156 data2->
TP.push_back(y);
157 data2->
TP.push_back(
z);
158 for(
int i = 0; i < numSteps; i++) {
159 for(
int j = 0; j < 9; j++) data2->
TP.push_back(val[9 * i + j]);
166 for(
int i = 0; i < numSteps; i++) {
168 data2->
Time.push_back(time);
static double callbackZ(int, int, double)
bool searchScalar(double x, double y, double z, double *values, int step=-1, double *size=nullptr, int qn=0, double *qx=nullptr, double *qy=nullptr, double *qz=nullptr, bool grad=false, int dim=-1)
static double callbackY(int, int, double)
StringXNumber ProbeOptions_Number[]
virtual int getNumTimeSteps()=0
static void(* draw)(void *)
GMSH_Plugin * GMSH_RegisterProbePlugin()
virtual void setFileName(const std::string &val)
StringXNumber * getOption(int iopt)
virtual double getTime(int step)
PViewData * getData(bool useAdaptiveIfAvailable=false)
bool finalize(bool computeMinMax=true, const std::string &interpolationScheme="")
virtual void setName(const std::string &val)
std::string getHelp() const
static double callback(int num, int action, double value, double *opt)
bool searchVector(double x, double y, double z, double *values, int step=-1, double *size=nullptr, int qn=0, double *qx=nullptr, double *qy=nullptr, double *qz=nullptr, bool grad=false, int dim=-1)
static void setDrawFunction(void(*fct)(void *))
virtual PView * getView(int index, PView *view)
std::vector< double > Time
virtual std::string getName()
static double callbackX(int, int, double)
static std::vector< PView * > list
void drawSphere(double R, double x, double y, double z, int n1, int n2, int light)
virtual PViewDataList * getDataList(PView *view, bool showError=true)
bool searchTensor(double x, double y, double z, double *values, int step=-1, double *size=nullptr, int qn=0, double *qx=nullptr, double *qy=nullptr, double *qz=nullptr, bool grad=false, int dim=-1)