11 #ifndef MergeStacks_HPP 12 #define MergeStacks_HPP 46 return setErrorMessage(
"Error, one stack is labeled and the other is not.");
48 bool result =
operator()(current, other, change_both);
49 if(not change_both and result)
60 return "Align Canvas";
64 return "Align two stacks' canvas. Expand the canvas of the first stack so the\n" 65 "second one can be drawn onto it. If the 'change both stack' option is \n" 66 "selected, then all the stacks are extended and made aligned with the \n" 67 "axis of the reference system. Otherwise, the work store of the current\n" 68 "stack is replaced with the projection of the other stack onto the\n" 69 "extended canvas, keeping the resolution of the current stack.\n";
75 return QStringList() <<
"Extend the non-active stacks canvas as well";
87 return QIcon(
":/images/AlignCanvas.png");
91 bool projectOnStack(
Stack* target,
const Stack* to_project);
114 return setErrorMessage(
"Error, one store is labeled and the other is not.");
121 return "Multi-stack";
124 return "Combine Stacks";
127 return "Combine the values of the main and work store onto the work store.";
150 return QIcon(
":/images/CombineStacks.png");
176 return setErrorMessage(
"Error, the current stack must have its main store active.");
178 return setErrorMessage(
"Error, one stack is labeled and the other is not.");
179 bool result =
operator()(current, other, parms[0]);
188 return "Multi-stack";
191 return "Merge Stacks";
195 return "Merge the main store of the current stack with the current store of the other one.\n" 196 "The current stack will be aligned with the other before the stores being combines.\n" 197 "The method argument is simply passed to the Combine_Stacks process.";
218 return QIcon(
":/images/MergeStacks.png");
void show()
Ask the user interface to show this store.
Definition: Store.hpp:177
QStringList parmNames() const
List of named parameters.
Definition: MergeStacks.hpp:199
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MergeStacks.hpp:80
QString description() const
Returns a description of the process for the GUI.
Definition: MergeStacks.hpp:126
Stack * currentStack()
Returns the current stack (i.e.
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MergeStacks.hpp:39
QString folder() const
Folder in which to place the process.
Definition: MergeStacks.hpp:120
int id() const
Id of a stack.
Definition: Stack.hpp:59
QStringList parmDefaults() const
List of default parms.
Definition: MergeStacks.hpp:205
QString name() const
Returns the name of the process.
Definition: MergeStacks.hpp:59
const Store * currentStore() const
Returns the current store.
Definition: Stack.hpp:122
QStringList parmNames() const
List of named parameters.
Definition: MergeStacks.hpp:129
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MergeStacks.hpp:169
QString description() const
Returns a description of the process for the GUI.
Definition: MergeStacks.hpp:62
QStringList parmDefaults() const
List of default parms.
Definition: MergeStacks.hpp:135
Process()
Default constructor.
QStringList parmDescs() const
List of parameters descriptions.
Definition: MergeStacks.hpp:74
QStringList parmDefaults() const
List of default parms.
Definition: MergeStacks.hpp:77
Align two stacks' canvas.
Definition: MergeStacks.hpp:31
QStringList parmNames() const
List of named parameters.
Definition: MergeStacks.hpp:71
CheckState checkState()
Call this function and convert the result to a boolean.
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MergeStacks.hpp:138
Visible store.
Definition: Process.hpp:654
Merge the main store of the current stack with the current store of the other one.
Definition: MergeStacks.hpp:161
Stack * stack(int i)
Returns the ith stack, or 0 if there is no such stack.
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MergeStacks.hpp:149
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
QString folder() const
Folder in which to place the process.
Definition: MergeStacks.hpp:187
bool setErrorMessage(const QString &str)
Set an error message that will be displayed if the process returns false.
Non-Empty store.
Definition: Process.hpp:653
QString name() const
Returns the name of the process.
Definition: MergeStacks.hpp:190
bool labels() const
Returns true if the data is to be interpreted as labels rather than intensities.
Definition: Store.hpp:73
File containing the definition of a Process.
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MergeStacks.hpp:208
The Stack class represent the dimensions of the 3D data, and the frames transformations.
Definition: Stack.hpp:35
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MergeStacks.hpp:107
QStringList parmDescs() const
List of parameters descriptions.
Definition: MergeStacks.hpp:132
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MergeStacks.hpp:86
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
Main store.
Definition: Process.hpp:666
This namespace contains all the classes needed to define processes.
const Store * work() const
Access the work store.
Definition: Stack.hpp:103
QString name() const
Returns the name of the process.
Definition: MergeStacks.hpp:123
Combine the values of the main and work store onto the work store.
Definition: MergeStacks.hpp:99
const Store * main() const
Access the main store.
Definition: Stack.hpp:84
QString description() const
Returns a description of the process for the GUI.
Definition: MergeStacks.hpp:193
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MergeStacks.hpp:217
Stack processes have non-mutable access to meshes and mutable access to stacks.
Definition: Process.hpp:829
QStringList booleanChoice() const
Helper function that provides a list of choices for a boolean argument.
Definition: Process.hpp:609
QString folder() const
Folder in which to place the process.
Definition: MergeStacks.hpp:56
QStringList parmDescs() const
List of parameters descriptions.
Definition: MergeStacks.hpp:202
Work store.
Definition: Process.hpp:665