11 #ifndef MESH_PROCESS_CELL_MESH_HPP 12 #define MESH_PROCESS_CELL_MESH_HPP 16 #include <MeshProcessSegmentation.hpp> 42 if(!checkState().mesh(MESH_NON_EMPTY))
44 if(parms[2].toInt() < 1) {
45 setErrorMessage(
"Number of runs must be at least one.");
51 bool operator()(
Mesh* mesh,
bool autoSegment,
bool selectBadVertices,
int maxRun);
60 return "Fix labelling of cell corners.";
65 <<
"Select bad vertices" 70 return QStringList() <<
"Re-run watershed automatically at each turn." 71 <<
"Select remaining bad vertices at the end.\n" 72 "Helps in deleting bad vertices that cannot be segmented properly." 73 <<
"Maximal number of turns.";
84 map[0] = booleanChoice();
85 map[1] = booleanChoice();
89 return QIcon(
":/images/FixCorners.png");
109 if(!checkState().mesh(MESH_NON_EMPTY) or checkState().mesh(MESH_CELLS))
111 return (*
this)(currentMesh(), parms[1].toFloat(), currentMesh()->graph(),
stringToBool(parms[0]));
114 bool operator()(
Mesh* mesh,
float minWall,
vvgraph& S,
bool eraseMarginCells);
124 return "Convert the segmented mesh into a 2D cellular mesh.\n" 125 "The simplified mesh contains only vertices for cell centers and cell outlines";
133 return QStringList() <<
"Delete cells that touch the edge of the mesh." 134 <<
"Min length in between vertices within cell outlines.";
144 map[0] = booleanChoice();
148 return QIcon(
":/images/MakeCells.png");
Fix labelling of cell corners.
Definition: MeshProcessCellMesh.hpp:32
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessCellMesh.hpp:59
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessCellMesh.hpp:75
QString name() const
Returns the name of the process.
Definition: MeshProcessCellMesh.hpp:56
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessCellMesh.hpp:88
Convert a segmented mesh into a 2D cellular mesh.
Definition: MeshProcessCellMesh.hpp:99
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:81
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessCellMesh.hpp:40
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessCellMesh.hpp:136
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessCellMesh.hpp:107
QString folder() const
Folder in which to place the process.
Definition: MeshProcessCellMesh.hpp:116
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:177
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessCellMesh.hpp:127
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessCellMesh.hpp:131
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessCellMesh.hpp:141
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessCellMesh.hpp:68
File containing the definition of a Process.
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
This namespace contains all the classes needed to define processes.
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessCellMesh.hpp:62
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessCellMesh.hpp:122
QString name() const
Returns the name of the process.
Definition: MeshProcessCellMesh.hpp:119
QString folder() const
Folder in which to place the process.
Definition: MeshProcessCellMesh.hpp:53
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:865
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessCellMesh.hpp:147