1 #ifndef GLOBALPROCESS_HPP
2 #define GLOBALPROCESS_HPP
27 int id = parms[1].toInt();
28 if(!checkState().store((is_main ? STORE_MAIN : STORE_WORK),
id))
30 return (*
this)(is_main, id);
33 bool operator()(
bool is_main,
int id);
36 return "SetCurrentStack";
42 return "Change the current stack and mesh. Needed for scripts.";
57 map[0] = storeChoice();
66 return QIcon(
":/images/Relabel.png");
98 return (*
this)(parms[0]);
101 bool operator()(
const QString& filename);
107 return "Save Global Transform";
111 return "Save the global alignment (transform) matrix from one stack to the other into a file";
123 return QIcon(
":/images/save.png");
147 if(!checkState().store(STORE_WORK | STORE_LABEL).mesh(MESH_NON_EMPTY))
149 Store* work = currentStack()->work();
150 Mesh* mesh = currentMesh();
153 float cubeSize = parms[0].toFloat(&ok);
155 return setErrorMessage(
"Error, the parameter 'Cube Size' must be a number.");
157 bool res = (*this)(work, mesh, cubeSize);
163 bool operator()(
Store* work,
Mesh* mesh,
float cubeSize);
166 return "JoinRegions Segmentation";
170 return "Join Regions after 3D segmentation.\n"
171 "Cells selected in the 3D cell mesh extracted from the stack will be merged and re-extracted.";
174 return "Segmentation";
180 return QStringList() <<
"Cube Size for the Marching Cube process.";
186 return QIcon(
":/images/JoinRegions.png");
QStringList parmNames() const
List of named parameters.
Definition: GlobalProcess.hpp:176
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: GlobalProcess.hpp:54
QStringList parmDefaults() const
List of default parms.
Definition: GlobalProcess.hpp:182
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: GlobalProcess.hpp:145
QString description() const
Returns a description of the process for the GUI.
Definition: GlobalProcess.hpp:168
QString folder() const
Folder in which to place the process.
Definition: GlobalProcess.hpp:38
QString folder() const
Folder in which to place the process.
Definition: GlobalProcess.hpp:173
QStringList parmNames() const
List of named parameters.
Definition: GlobalProcess.hpp:44
QStringList parmDescs() const
List of parameters descriptions.
Definition: GlobalProcess.hpp:179
The Store class holds the actual 3D data and properties specific to it.
Definition: Store.hpp:25
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:167
QStringList parmDescs() const
List of parameters descriptions.
Definition: GlobalProcess.hpp:49
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: GlobalProcess.hpp:24
File containing the definition of a Process.
This is the main process class, the one all process inherit from.
Definition: Process.hpp:248
Global processes have full mutable access to all properties of the process.
Definition: Process.hpp:894
QString description() const
Returns a description of the process for the GUI.
Definition: GlobalProcess.hpp:41
QString name() const
Returns the name of the process.
Definition: GlobalProcess.hpp:165
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: GlobalProcess.hpp:185
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: GlobalProcess.hpp:65
QString name() const
Returns the name of the process.
Definition: GlobalProcess.hpp:35
Join regions, using both the segmented stack and the extracted 3D cell mesh.
Definition: GlobalProcess.hpp:137
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:16
QStringList parmDefaults() const
List of default parms.
Definition: GlobalProcess.hpp:60