1 #ifndef MESH_PROCESS_CELL_MESH_HPP
2 #define MESH_PROCESS_CELL_MESH_HPP
6 #include <MeshProcessSegmentation.hpp>
32 if(!checkState().mesh(MESH_NON_EMPTY))
34 if(parms[2].toInt() < 1) {
35 setErrorMessage(
"Number of runs must be at least one.");
41 bool operator()(
Mesh* mesh,
bool autoSegment,
bool selectBadVertices,
int maxRun);
50 return "Fix labelling of cell corners.";
55 <<
"Select bad vertices"
60 return QStringList() <<
"Re-run watershed automatically at each turn."
61 <<
"Select remaining bad vertices at the end.\n"
62 "Helps in deleting bad vertices that cannot be segmented properly."
63 <<
"Maximal number of turns.";
74 map[0] = booleanChoice();
75 map[1] = booleanChoice();
79 return QIcon(
":/images/FixCorners.png");
99 if(!checkState().mesh(MESH_NON_EMPTY) or checkState().mesh(MESH_CELLS))
101 return (*
this)(currentMesh(), parms[1].toFloat(), currentMesh()->graph(),
stringToBool(parms[0]));
104 bool operator()(
Mesh* mesh,
float minWall,
vvgraph& S,
bool eraseMarginCells);
114 return "Convert the segmented mesh into a 2D cellular mesh.\n"
115 "The simplified mesh contains only vertices for cell centers and cell outlines";
123 return QStringList() <<
"Delete cells that touch the edge of the mesh."
124 <<
"Min length in between vertices within cell outlines.";
134 map[0] = booleanChoice();
138 return QIcon(
":/images/MakeCells.png");
Fix labelling of cell corners.
Definition: MeshProcessCellMesh.hpp:22
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessCellMesh.hpp:49
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessCellMesh.hpp:65
QString name() const
Returns the name of the process.
Definition: MeshProcessCellMesh.hpp:46
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessCellMesh.hpp:78
Convert a segmented mesh into a 2D cellular mesh.
Definition: MeshProcessCellMesh.hpp:89
arg(const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char( ' ')
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessCellMesh.hpp:71
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessCellMesh.hpp:30
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessCellMesh.hpp:126
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessCellMesh.hpp:97
QString folder() const
Folder in which to place the process.
Definition: MeshProcessCellMesh.hpp:106
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:167
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessCellMesh.hpp:117
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessCellMesh.hpp:121
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessCellMesh.hpp:131
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessCellMesh.hpp:58
File containing the definition of a Process.
This is the main process class, the one all process inherit from.
Definition: Process.hpp:248
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessCellMesh.hpp:52
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessCellMesh.hpp:112
QString name() const
Returns the name of the process.
Definition: MeshProcessCellMesh.hpp:109
QString folder() const
Folder in which to place the process.
Definition: MeshProcessCellMesh.hpp:43
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:855
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessCellMesh.hpp:137