Go to the documentation of this file. 1 #ifndef DIVISION_ANALYSIS_PROCESSES_HPP
2 #define DIVISION_ANALYSIS_PROCESSES_HPP
23 setName(
"Mesh/Division Analysis/Display and Filter Planes");
24 setDesc(
"Displays planes of the Division analysis processes");
25 setIcon(QIcon(
":/images/DivisionPlane.png"));
27 addParm(
"Search on",
"Search on",
"All Planes", QStringList() <<
"All Planes" <<
"Filtered Planes");
28 addParm(
"Filter",
"Filter",
"Min Area", QStringList() <<
"None" <<
"Min Area" <<
"Max Area" <<
"Min Angle to Actual" <<
"Max Angle to Actual" <<
"Min Volume Ratio" <<
"Max Volume Ratio" <<
"Random");
29 addParm(
"Number of Planes",
"Number of Planes",
"3");
30 addParm(
"Min Angle Between Planes",
"Min Angle Between Planes",
"10.0");
33 addParm(
"Plane Size",
"Plane Size",
"10.0");
34 addParm(
"Plane Scaling 2D",
"Plane Scaling 2D",
"0.92");
35 addParm(
"Heat Map",
"Heat Map",
"Plane Area Rel Shortest", QStringList() <<
"None" <<
"Plane Area Abs" <<
"Normalized Area"<<
"Plane Area Rel Shortest" <<
"Plane Area Rel Actual" <<
"Angle to Actual" <<
"Daughter Ratio" <<
"Distance Centroid");
48 return run(m, m2,
parm(
"Search on"),
parm(
"Filter"),
parm(
"Number of Planes").toInt(),
parm(
"Min Angle Between Planes").toDouble(),
53 bool run(
Mesh *m,
Mesh *m2, QString planes, QString filter,
int maxPlanes,
double maxSimilarity,
bool drawPlanes,
bool resetMesh2,
double planeSize,
54 bool actual,
bool selectActual, QString heatmap);
69 setName(
"Mesh/Division Analysis/Reset Division Data");
71 setIcon(QIcon(
":/images/DivisionPlane.png"));
108 setName(
"Mesh/Division Analysis/Compute Division Plane Angles");
110 setIcon(QIcon(
":/images/DivisionPlane.png"));
112 addParm(
"Plane",
"Plane",
"Actual", QStringList() <<
"Actual" <<
"Shortest" <<
"Filtered Best" <<
"Filtered Worst");
113 addParm(
"Direction",
"Direction",
"Custom Dir X", QStringList() <<
"Custom Dir X" <<
"Custom Dir Y" <<
"Custom Dir Z" <<
"Actual");
125 return run(m, m2,
parm(
"Plane"),
parm(
"Direction"));
127 bool run(
Mesh *m,
Mesh *m2, QString plane1, QString plane2);
134 double maxPlaneSimilarity(AttrMap<int, CellDivisionAttr>& cellDivs, CellDivisionAttr cda);
bool addParm(const QString &parmName, const QString &desc, const QString &def, const QStringList &choices=QStringList())
Add a parameter to the list.
FilterPlanes(const Process &process)
const Attributes & attributes() const
Get the mesh attributes.
double maxPlaneSimilarity(AttrMap< int, CellDivisionAttr > &cellDivs, CellDivisionAttr cda)
static QStringList booleanChoice()
Helper function that provides a list of choices for a boolean argument.
bool run()
Runs the process.
Distributed matrix library.
bool run()
Runs the process.
bool setIcon(const QIcon &icon)
Set the icon.
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
bool run()
Runs the process.
AttrMap< KeyT, ValueT > & attrMap(const QString &name, bool saveRequired=true)
Get the attribute, if it does not exist create it and add to the set If it exists,...
bool setDesc(const QString &description)
Set the description.
ResetDivPlaneData(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.
Mesh * currentMesh()
Returns the current mesh (i.e.
Attribute map wraps std::map.
ComputeDivPlaneAngles(const Process &process)