gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
20 return "Plugin(MinMax) computes the min/max of a view.\n\n"
21 "If `View' < 0, the plugin is run on the current view. "
22 "If `OverTime' = 1, the plugin calculates the min/max over "
23 "space and time. If `Argument' = 1, the plugin calculates the "
24 "min/max and the argmin/argmax. If `Visible' = 1, the plugin "
25 "is only applied to visible entities.\n\n"
26 "Plugin(MinMax) creates two new list-based views.";
59 dataMin->
SP.push_back(x);
60 dataMin->
SP.push_back(y);
61 dataMin->
SP.push_back(
z);
62 dataMax->
SP.push_back(x);
63 dataMax->
SP.push_back(y);
64 dataMax->
SP.push_back(
z);
74 double xmin = 0., ymin = 0., zmin = 0., xmax = 0., ymax = 0., zmax = 0.;
76 if(visible && data1->
skipEntity(step, ent))
continue;
78 if(data1->
skipElement(step, ent, ele, visible))
continue;
79 for(
int nod = 0; nod < data1->
getNumNodes(step, ent, ele); nod++) {
83 data1->
getNode(step, ent, ele, nod, xmin, ymin, zmin);
87 data1->
getNode(step, ent, ele, nod, xmax, ymax, zmax);
96 dataMin->
SP.push_back(xmin);
97 dataMin->
SP.push_back(ymin);
98 dataMin->
SP.push_back(zmin);
99 dataMax->
SP.push_back(xmax);
100 dataMax->
SP.push_back(ymax);
101 dataMax->
SP.push_back(zmax);
106 double time = data1->
getTime(step);
107 dataMin->
Time.push_back(time);
108 dataMax->
Time.push_back(time);
110 dataMin->
SP.push_back(minView);
111 dataMax->
SP.push_back(maxView);
116 timeMin = data1->
getTime(step);
120 timeMax = data1->
getTime(step);
127 dataMin->
SP.push_back(min);
128 dataMax->
SP.push_back(max);
129 dataMin->
Time.push_back(timeMin);
130 dataMax->
Time.push_back(timeMax);
virtual bool skipElement(int step, int ent, int ele, bool checkVisibility=false, int samplingRate=1)
virtual int getNumTimeSteps()=0
virtual int getNode(int step, int ent, int ele, int nod, double &x, double &y, double &z)
StringXNumber MinMaxOptions_Number[]
std::string getHelp() const
virtual int getNumEntities(int step=-1)
virtual void setFileName(const std::string &val)
virtual double getTime(int step)
virtual SBoundingBox3d getBoundingBox(int step=-1)=0
void getScalarValue(int step, int ent, int ele, int nod, double &val, int tensorRep=0, int forceNumComponents=0, int componentMap[9]=nullptr)
virtual bool hasTimeStep(int step)
PViewData * getData(bool useAdaptiveIfAvailable=false)
virtual int getNumNodes(int step, int ent, int ele)
bool finalize(bool computeMinMax=true, const std::string &interpolationScheme="")
virtual void setName(const std::string &val)
StringXNumber * getOption(int iopt)
virtual PView * getView(int index, PView *view)
std::vector< double > Time
PViewOptions * getOptions()
virtual int getNumElements(int step=-1, int ent=-1)
GMSH_Plugin * GMSH_RegisterMinMaxPlugin()
virtual std::string getName()
virtual PViewDataList * getDataList(PView *view, bool showError=true)
virtual bool skipEntity(int step, int ent)