Go to the documentation of this file. 1 #ifndef DIVISION_ANALYSIS_2D_HPP
2 #define DIVISION_ANALYSIS_2D_HPP
24 setName(
"Mesh/Division Analysis/Analysis 2D/Division Plane Approximation");
25 setDesc(
"Display a planar approximation plane of a wall between two cells");
26 setIcon(QIcon(
":/images/DivisionPlane.png"));
28 addParm(
"Display Plane",
"Overwrite the non-active mesh and display the plane",
"Yes",
booleanChoice());
29 addParm(
"Plane Size",
"Plane Size",
"10.0");
44 bool run(
Mesh *m,
Mesh *m2,
bool display,
double planeSize,
bool resetMesh,
int label = 0);
59 setName(
"Mesh/Division Analysis/Analysis 2D/Division Analysis");
60 setDesc(
"Finds the shortest wall of a cell PRE division \n"
61 "(needs a single cell as input)\n"
62 "The result will appear in (and overwrite) the non-active mesh.");
63 setIcon(QIcon(
":/images/CHull.png"));
65 addParm(
"Nr of Planes",
"Approx number of planes to be tested",
"1000");
66 addParm(
"Steps Center Displacement",
"Displacement steps from the cell center",
"0");
67 addParm(
"Stepsize Center Displacement",
"Displacement step size from the cell center",
"0.0");
68 addParm(
"Division Point",
"Division Point",
"Centroid",QStringList() <<
"Centroid" <<
"Center Actual" <<
"Custom Vertex");
80 return run(m, m2,
parm(
"Nr of Planes").toInt(),
parm(
"Steps Center Displacement").toInt(),
parm(
"Stepsize Center Displacement").toDouble(),
81 parm(
"Division Point"), -1);
83 bool run(
Mesh *m,
Mesh *m2,
int divPlanes,
int centerDisplSteps,
double centerDisplStepSize, QString divCenter,
int parentLabel);
97 setName(
"Mesh/Division Analysis/Analysis 2D/Division Analysis Multi");
98 setDesc(
"Multi cell analysis of divisions in 2D meshes");
99 setIcon(QIcon(
":/images/CHull.png"));
115 bool run(
Mesh *m,
Mesh *m2,
bool singleCells,
bool doubleCells);
bool addParm(const QString &parmName, const QString &desc, const QString &def, const QStringList &choices=QStringList())
Add a parameter to the list.
FlatDivisionPlane2D(const Process &process)
static QStringList booleanChoice()
Helper function that provides a list of choices for a boolean argument.
Distributed matrix library.
bool setIcon(const QIcon &icon)
Set the icon.
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
DivisionAnalysisMulti2D(const Process &process)
bool setDesc(const QString &description)
Set the description.
TestDivisionPlanes2D(const Process &process)
Mesh * mesh(int i)
Returns the ith mesh.
bool setName(const QString &name)
Set the name.
QString parm(const QString &name) const
Get a single parameter value by name.
bool run()
Runs the process.
Mesh * currentMesh()
Returns the current mesh (i.e.
bool run()
Runs the process.
bool run()
Runs the process.