11 #ifndef MESH_PROCESS_SELECTION_HPP 12 #define MESH_PROCESS_SELECTION_HPP 35 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
37 return (*
this)(currentMesh());
40 bool operator()(
Mesh* m);
49 return "Select all vertices of the current mesh";
77 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
79 return (*
this)(currentMesh());
82 bool operator()(
Mesh* m);
88 return "Select Bad Normals";
92 return "Select all vertices of the current mesh with bad normals (i.e. normals is not opf size 1)";
120 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
122 return (*
this)(currentMesh());
125 bool operator()(
Mesh* m);
134 return "Unselect the vertices of the current mesh";
162 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
164 return (*
this)(currentMesh());
167 bool operator()(
Mesh* m);
173 return "Invert Selection";
176 return "Invert the selection of the current mesh.";
205 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
208 return (*
this)(currentMesh(), replace);
211 bool operator()(
Mesh* m,
bool replace);
217 return "Select Unlabeled";
220 return "Add to or replace the selection with the unlabeled vertices.";
234 map[0] = booleanChoice();
257 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
260 return (*
this)(currentMesh(), replace);
263 bool operator()(
Mesh* m,
bool replace);
269 return "Select Labeled";
272 return "Add to or replace the selection with the labeled vertices.";
286 map[0] = booleanChoice();
307 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
310 return (*
this)(currentMesh(), replace, parms[1].toInt());
313 bool operator()(
Mesh* m,
bool replace,
int label);
319 return "Select Label";
323 return "Add to or replace the selection with the vertices of a given label (0 for current label).";
328 <<
"Label (0 for current)";
338 map[0] = booleanChoice();
361 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
363 return (*
this)(currentMesh(), parms[0].toInt());
366 bool operator()(
Mesh* m,
int label);
372 return "Unselect Label";
376 return "Remove the vertices of a given label (0 for current label) from the selection.";
407 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
409 return (*
this)(currentMesh());
412 bool operator()(
Mesh* m);
418 return "Select Clip Region";
421 return "Add vertices in clip region to selection.";
450 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
452 return (*
this)(currentMesh());
455 bool operator()(
Mesh* m);
461 return "Extend to Whole Cells";
464 return "Extend Selection to Whole Cells";
492 if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
494 return (*
this)(currentMesh());
497 bool operator()(
Mesh* m);
503 return "Select Duplicate Cells";
506 return "Select cells with duplicate labels.";
535 if(!checkState().mesh(MESH_NON_EMPTY))
537 return operator()(currentMesh());
540 bool operator()(
Mesh* m);
546 return "Extend by Connectivity";
549 return "Extend the selection to connected regions";
558 return QIcon(
":/images/SelectConnected.png");
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:118
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:463
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:466
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:94
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:274
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:378
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:448
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:33
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessSelection.hpp:384
Select all vertices within the clipped region.
Definition: MeshProcessSelection.hpp:397
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:417
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:100
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:490
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:203
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessSelection.hpp:283
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:268
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:368
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:172
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:184
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:315
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:305
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:325
Select all the vertices with invalid normals in the current mesh.
Definition: MeshProcessSelection.hpp:67
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:42
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:75
Ensure no vertex is selected in the current mesh.
Definition: MeshProcessSelection.hpp:110
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:255
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessSelection.hpp:231
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:178
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:374
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:460
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:554
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:265
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:160
Invert the selection status of all the vertices in the current mesh.
Definition: MeshProcessSelection.hpp:152
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:423
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:237
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:51
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:429
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:472
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:90
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:271
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessSelection.hpp:330
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:502
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:177
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:542
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:420
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:499
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:222
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:469
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:371
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessSelection.hpp:280
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:341
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Unselect all the vertices having a given label.
Definition: MeshProcessSelection.hpp:351
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:127
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:318
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:289
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:48
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:225
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:551
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:175
File containing the definition of a Process.
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:426
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:87
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:457
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:277
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:545
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:133
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:381
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:321
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:216
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:84
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:142
Select all labeled vertices in the current mesh.
Definition: MeshProcessSelection.hpp:247
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
Select all the unlabel vertices of the current mesh.
Definition: MeshProcessSelection.hpp:195
This namespace contains all the classes needed to define processes.
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:511
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:181
Select vertices if the region with their label is not contiguous (e.g.
Definition: MeshProcessSelection.hpp:482
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:45
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:57
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:514
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:508
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:557
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:219
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:54
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:97
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:505
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:359
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessSelection.hpp:335
Select all the vertices in the current mesh.
Definition: MeshProcessSelection.hpp:25
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:213
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:414
Definition: MeshProcessSelection.hpp:297
Extend the current selection to all vertices that are connected to a currently selected vertex...
Definition: MeshProcessSelection.hpp:525
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessSelection.hpp:136
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessSelection.hpp:387
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:533
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessSelection.hpp:139
QString folder() const
Folder in which to place the process.
Definition: MeshProcessSelection.hpp:169
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessSelection.hpp:228
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:865
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessSelection.hpp:405
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessSelection.hpp:548
QString name() const
Returns the name of the process.
Definition: MeshProcessSelection.hpp:130
Extent the current selection so each label having at least one vertex selected will be fully selected...
Definition: MeshProcessSelection.hpp:440