11 #ifndef GLOBALPROCESS_HPP 12 #define GLOBALPROCESS_HPP 37 int id = parms[1].toInt();
38 if(!checkState().store((is_main ? STORE_MAIN : STORE_WORK),
id))
40 return (*
this)(is_main, id);
43 bool operator()(
bool is_main,
int id);
46 return "SetCurrentStack";
52 return "Change the current stack and mesh. Needed for scripts.";
67 map[0] = storeChoice();
76 return QIcon(
":/images/Relabel.png");
108 return (*
this)(parms[0]);
111 bool operator()(
const QString& filename);
117 return "Save Global Transform";
121 return "Save the global alignment (transform) matrix from one stack to the other into a file";
133 return QIcon(
":/images/save.png");
157 if(!checkState().store(STORE_WORK | STORE_LABEL).mesh(MESH_NON_EMPTY))
159 Store* work = currentStack()->work();
160 Mesh* mesh = currentMesh();
163 float cubeSize = parms[0].toFloat(&ok);
165 return setErrorMessage(
"Error, the parameter 'Cube Size' must be a number.");
167 bool res = (*this)(work, mesh, cubeSize);
173 bool operator()(
Store* work,
Mesh* mesh,
float cubeSize);
176 return "JoinRegions Segmentation";
180 return "Join Regions after 3D segmentation.\n" 181 "Cells selected in the 3D cell mesh extracted from the stack will be merged and re-extracted.";
184 return "Segmentation";
190 return QStringList() <<
"Cube Size for the Marching Cube process.";
196 return QIcon(
":/images/JoinRegions.png");
QStringList parmNames() const
List of named parameters.
Definition: GlobalProcess.hpp:186
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: GlobalProcess.hpp:64
QStringList parmDefaults() const
List of default parms.
Definition: GlobalProcess.hpp:192
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: GlobalProcess.hpp:155
QString description() const
Returns a description of the process for the GUI.
Definition: GlobalProcess.hpp:178
QString folder() const
Folder in which to place the process.
Definition: GlobalProcess.hpp:48
QString folder() const
Folder in which to place the process.
Definition: GlobalProcess.hpp:183
QStringList parmNames() const
List of named parameters.
Definition: GlobalProcess.hpp:54
QStringList parmDescs() const
List of parameters descriptions.
Definition: GlobalProcess.hpp:189
The Store class holds the actual 3D data and properties specific to it.
Definition: Store.hpp:35
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:177
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
QStringList parmDescs() const
List of parameters descriptions.
Definition: GlobalProcess.hpp:59
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: GlobalProcess.hpp:34
File containing the definition of a Process.
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
Global processes have full mutable access to all properties of the process.
Definition: Process.hpp:904
This namespace contains all the classes needed to define processes.
QString description() const
Returns a description of the process for the GUI.
Definition: GlobalProcess.hpp:51
QString name() const
Returns the name of the process.
Definition: GlobalProcess.hpp:175
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: GlobalProcess.hpp:195
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: GlobalProcess.hpp:75
QString name() const
Returns the name of the process.
Definition: GlobalProcess.hpp:45
Join regions, using both the segmented stack and the extracted 3D cell mesh.
Definition: GlobalProcess.hpp:147
mgx_EXPORT bool stringToMainStore(const QString &string)
Returns true if string correspond to the main store, false otherwise.
Set the current stack and store.
Definition: GlobalProcess.hpp:26
QStringList parmDefaults() const
List of default parms.
Definition: GlobalProcess.hpp:70