1 #ifndef MergeStacks_HPP
2 #define MergeStacks_HPP
36 return setErrorMessage(
"Error, one stack is labeled and the other is not.");
38 bool result =
operator()(current, other, change_both);
39 if(not change_both and result)
50 return "Align Canvas";
54 return "Align two stacks' canvas. Expand the canvas of the first stack so the\n"
55 "second one can be drawn onto it. If the 'change both stack' option is \n"
56 "selected, then all the stacks are extended and made aligned with the \n"
57 "axis of the reference system. Otherwise, the work store of the current\n"
58 "stack is replaced with the projection of the other stack onto the\n"
59 "extended canvas, keeping the resolution of the current stack.\n";
65 return QStringList() <<
"Extend the non-active stacks canvas as well";
77 return QIcon(
":/images/AlignCanvas.png");
81 bool projectOnStack(
Stack* target,
const Stack* to_project);
104 return setErrorMessage(
"Error, one store is labeled and the other is not.");
111 return "Multi-stack";
114 return "Combine Stacks";
117 return "Combine the values of the main and work store onto the work store.";
140 return QIcon(
":/images/CombineStacks.png");
166 return setErrorMessage(
"Error, the current stack must have its main store active.");
168 return setErrorMessage(
"Error, one stack is labeled and the other is not.");
169 bool result =
operator()(current, other, parms[0]);
178 return "Multi-stack";
181 return "Merge Stacks";
185 return "Merge the main store of the current stack with the current store of the other one.\n"
186 "The current stack will be aligned with the other before the stores being combines.\n"
187 "The method argument is simply passed to the Combine_Stacks process.";
208 return QIcon(
":/images/MergeStacks.png");
void show()
Ask the user interface to show this store.
Definition: Store.hpp:167
QStringList parmNames() const
List of named parameters.
Definition: MergeStacks.hpp:189
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MergeStacks.hpp:70
QString description() const
Returns a description of the process for the GUI.
Definition: MergeStacks.hpp:116
Stack * currentStack()
Returns the current stack (i.e.
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MergeStacks.hpp:29
QString folder() const
Folder in which to place the process.
Definition: MergeStacks.hpp:110
int id() const
Id of a stack.
Definition: Stack.hpp:49
QStringList parmDefaults() const
List of default parms.
Definition: MergeStacks.hpp:195
QString name() const
Returns the name of the process.
Definition: MergeStacks.hpp:49
const Store * currentStore() const
Returns the current store.
Definition: Stack.hpp:112
QStringList parmNames() const
List of named parameters.
Definition: MergeStacks.hpp:119
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MergeStacks.hpp:159
QString description() const
Returns a description of the process for the GUI.
Definition: MergeStacks.hpp:52
QStringList parmDefaults() const
List of default parms.
Definition: MergeStacks.hpp:125
Process()
Default constructor.
QStringList parmDescs() const
List of parameters descriptions.
Definition: MergeStacks.hpp:64
QStringList parmDefaults() const
List of default parms.
Definition: MergeStacks.hpp:67
Align two stacks' canvas.
Definition: MergeStacks.hpp:21
QStringList parmNames() const
List of named parameters.
Definition: MergeStacks.hpp:61
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:128
Visible store.
Definition: Process.hpp:644
Merge the main store of the current stack with the current store of the other one.
Definition: MergeStacks.hpp:151
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:139
QString folder() const
Folder in which to place the process.
Definition: MergeStacks.hpp:177
bool setErrorMessage(const QString &str)
Set an error message that will be displayed if the process returns false.
Non-Empty store.
Definition: Process.hpp:643
QString name() const
Returns the name of the process.
Definition: MergeStacks.hpp:180
bool labels() const
Returns true if the data is to be interpreted as labels rather than intensities.
Definition: Store.hpp:63
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:198
The Stack class represent the dimensions of the 3D data, and the frames transformations.
Definition: Stack.hpp:25
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MergeStacks.hpp:97
QStringList parmDescs() const
List of parameters descriptions.
Definition: MergeStacks.hpp:122
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MergeStacks.hpp:76
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
Main store.
Definition: Process.hpp:656
const Store * work() const
Access the work store.
Definition: Stack.hpp:93
QString name() const
Returns the name of the process.
Definition: MergeStacks.hpp:113
Combine the values of the main and work store onto the work store.
Definition: MergeStacks.hpp:89
const Store * main() const
Access the main store.
Definition: Stack.hpp:74
QString description() const
Returns a description of the process for the GUI.
Definition: MergeStacks.hpp:183
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MergeStacks.hpp:207
Stack processes have non-mutable access to meshes and mutable access to stacks.
Definition: Process.hpp:819
QStringList booleanChoice() const
Helper function that provides a list of choices for a boolean argument.
Definition: Process.hpp:599
QString folder() const
Folder in which to place the process.
Definition: MergeStacks.hpp:46
QStringList parmDescs() const
List of parameters descriptions.
Definition: MergeStacks.hpp:192
Work store.
Definition: Process.hpp:655