MorphoGraphX
MeshProcessStructure.hpp
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4 //
5 // If you use MorphoGraphX in your work, please cite:
6 // http://dx.doi.org/10.7554/eLife.05864
7 //
8 // MorphoGraphX is free software, and is licensed under under the terms of the
9 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10 //
11 #ifndef MESH_PROCESS_STRUCTURE_HPP
12 #define MESH_PROCESS_STRUCTURE_HPP
13 
14 #include <Process.hpp>
15 
16 #include <Misc.hpp>
17 
18 namespace mgx {
19 namespace process {
32 mgxBase_EXPORT bool subdivideBisect(vvgraph& S, const vertex& v1, const vertex& v2, const vertex& v3, bool selected,
33  std::vector<vertex>* vs = 0);
44 mgxBase_EXPORT void markMargin(vvgraph& M, vvgraph& S, bool remborders);
45 
48 
54 class mgxBase_EXPORT TransformMesh : public MeshProcess {
55 public:
57  : Process(process)
58  , MeshProcess(process)
59  {
60  }
61 
62  bool operator()(const QStringList& parms)
63  {
64  if(!checkState().mesh(MESH_NON_EMPTY))
65  return false;
66  Point3f trans, rot;
67  {
68  QString txt = parms[0];
69  QTextStream ts(&txt);
70  ts >> trans;
71  }
72  {
73  QString txt = parms[1];
74  QTextStream ts(&txt);
75  ts >> rot;
76  }
77  bool ok;
78  float angle = parms[2].toFloat(&ok) * M_PI / 180.f;
79  if(!ok)
80  return setErrorMessage("Error, the 'angle' parameter must be a number");
81  float scale = parms[3].toFloat(&ok);
82  if(!ok)
83  return setErrorMessage("Error, the 'scale' parameter must be a number");
84  return (*this)(currentMesh(), trans, rot, angle, scale);
85  }
86 
87  bool operator()(Mesh* mesh, Point3f translation, Point3f rotation_axis, float rotation, float scale);
88 
89  QString folder() const {
90  return "Structure";
91  }
92  QString name() const {
93  return "Transform Mesh";
94  }
95  QString description() const {
96  return "Apply an affine transformation to all vertices of a mesh";
97  }
99  {
100  return QStringList() << QString("translation (%1)").arg(UM) << "rotation axis"
101  << "angle (degree)"
102  << "scale";
103  }
104  QStringList parmDesc() const
105  {
106  return QStringList() << "Translation in micrometers. Enter x y z separated by spaces"
107  << "Vector representing the axis of rotation. Enter x y z separated by spaces"
108  << "Angle of rotation in degrees"
109  << "Global scaling factor";
110  }
112  {
113  return QStringList() << "0.0 0.0 0.0"
114  << "0.0 0.0 1.0"
115  << "0.0"
116  << "1.0";
117  }
118  QIcon icon() const {
119  return QIcon(":/images/Resize.png");
120  }
121 };
122 
128 class mgxBase_EXPORT ReverseMesh : public MeshProcess {
129 public:
131  : Process(process)
132  , MeshProcess(process)
133  {
134  }
135 
136  bool operator()(const QStringList& )
137  {
138  if(!checkState().mesh(MESH_NON_EMPTY))
139  return false;
140  return (*this)(currentMesh());
141  }
142  bool operator()(Mesh* mesh);
143 
144  QString folder() const {
145  return "Structure";
146  }
147  QString name() const {
148  return "Reverse Mesh";
149  }
151  return "Reverse orientation of the mesh";
152  }
154  return QStringList();
155  }
157  return QStringList();
158  }
160  return QStringList();
161  }
162  QIcon icon() const {
163  return QIcon(":/images/Invert.png");
164  }
165 };
166 
172 class mgxBase_EXPORT SmoothMesh : public MeshProcess {
173 public:
175  : Process(process)
176  , MeshProcess(process)
177  {
178  }
179 
180  bool operator()(const QStringList& parms)
181  {
182  if(!checkState().mesh(MESH_NON_EMPTY))
183  return false;
184  return (*this)(currentMesh(), parms[0].toUInt());
185  }
186 
187  bool operator()(Mesh* mesh, uint passes);
188 
189  QString folder() const {
190  return "Structure";
191  }
192  QString name() const {
193  return "Smooth Mesh";
194  }
196  return "Average each vertex position based on its neighbors.";
197  }
199  return QStringList() << "Passes";
200  }
202  return QStringList() << "Passes";
203  }
205  return QStringList() << "1";
206  }
207  QIcon icon() const {
208  return QIcon(":/images/SmoothMesh.png");
209  }
210 };
211 
217 class mgxBase_EXPORT ShrinkMesh : public MeshProcess {
218 public:
220  : Process(process)
221  , MeshProcess(process)
222  {
223  }
224 
225  bool operator()(const QStringList& parms)
226  {
227  if(!checkState().mesh(MESH_NON_EMPTY))
228  return false;
229  return (*this)(currentMesh(), parms[0].toFloat());
230  }
231 
232  bool operator()(Mesh* mesh, float distance);
233 
234  QString folder() const {
235  return "Structure";
236  }
237  QString name() const {
238  return "Shrink Mesh";
239  }
241  {
242  return "Displace each vertex towards the mesh center, perpendicular to the surface.";
243  }
245  return QStringList() << QString("Distance(%1)").arg(UM);
246  }
248  return QStringList() << "Vertex displacement. If negtive, the mesh will expand.";
249  }
251  return QStringList() << "1.0";
252  }
253  QIcon icon() const {
254  return QIcon(":/images/ShrinkMesh.png");
255  }
256 };
257 
263 class mgxBase_EXPORT LoopSubdivisionMesh : public MeshProcess {
264 public:
266  : Process(process)
267  , MeshProcess(process)
268  {
269  }
270 
271  bool operator()(const QStringList& )
272  {
273  if(!checkState().mesh(MESH_NON_EMPTY))
274  return false;
275  return (*this)(currentMesh());
276  }
277 
278  bool operator()(Mesh* mesh);
279 
280  QString folder() const {
281  return "Structure";
282  }
283  QString name() const {
284  return "Loop Subdivision";
285  }
287  return "Subdivide the mesh uniformly using Loop subdivision.";
288  }
290  return QStringList();
291  }
293  return QStringList();
294  }
295  QIcon icon() const {
296  return QIcon(":/images/SubdivideTri.png");
297  }
298 };
299 
305 class mgxBase_EXPORT SubdivideMesh : public MeshProcess {
306 public:
308  : Process(process)
309  , MeshProcess(process)
310  {
311  }
312 
313  bool operator()(const QStringList& )
314  {
315  if(!checkState().mesh(MESH_NON_EMPTY))
316  return false;
317  return (*this)(currentMesh());
318  }
319 
320  bool operator()(Mesh* mesh);
321 
322  QString folder() const {
323  return "Structure";
324  }
325  QString name() const {
326  return "Subdivide";
327  }
329  return "Subdivide the mesh unifromly";
330  }
332  return QStringList();
333  }
335  return QStringList();
336  }
337  QIcon icon() const {
338  return QIcon(":/images/SubdivideTri.png");
339  }
340 };
341 
347 class mgxBase_EXPORT AdaptiveSubdivideBorderMesh : public MeshProcess {
348 public:
350  : Process(process)
351  , MeshProcess(process)
352  {
353  }
354 
355  bool operator()(const QStringList& parms)
356  {
357  if(!checkState().mesh(MESH_NON_EMPTY))
358  return false;
359  return (*this)(currentMesh(), parms[0].toFloat(), parms[1].toFloat());
360  }
361 
362  bool operator()(Mesh* mesh, float cellMaxArea, float borderDist);
363 
364  QString folder() const {
365  return "Structure";
366  }
367  QString name() const {
368  return "Subdivide Adaptive Near Borders";
369  }
371  return "Subdivide triangles around cell borders";
372  }
374  {
375  return QStringList() << QString("Max Area(%1)").arg(UM2) << QString("Border Dist(%1)").arg(UM);
376  }
378  {
379  return QStringList()
380  << "Area threshold (in square microns) for subdivision, triangles smaller than this won't be subdivided"
381  << "Distance (in microns) from cell borders that triangles will be subdivided";
382  }
384  {
385  return QStringList() << "0.1"
386  << "1.0";
387  }
388  QIcon icon() const {
389  return QIcon(":/images/SubdivideTriAdapt.png");
390  }
391 };
392 
400 class mgxBase_EXPORT AdaptiveSubdivideSignalMesh : public MeshProcess {
401 public:
403  : Process(process)
404  , MeshProcess(process)
405  {
406  }
407 
408  bool operator()(const QStringList& parms)
409  {
410  if(!checkState().mesh(MESH_NON_EMPTY))
411  return false;
412  return (*this)(currentMesh(), parms[0].toFloat(), parms[1].toFloat());
413  }
414 
415  bool operator()(Mesh* mesh, float cellMaxAreaLow, float cellMaxAreaHigh);
416 
417  QString folder() const {
418  return "Structure";
419  }
420  QString name() const {
421  return "Subdivide Adaptive by Signal";
422  }
424  {
425  return "Subdivide triangles depending on mesh signal. Triangle size\n"
426  "is determined by a high and low area, which is interpolated\n"
427  "based on the minimum and maximum signals";
428  }
430  {
431  return QStringList() << QString("Low Max Area(%1)").arg(UM2) << QString("High Max Area(%1)").arg(UM2);
432  }
434  {
435  return QStringList() << "Maximum area (square microns) for low instentity voxels"
436  << "Maximum area (square microns) for high instentity voxels";
437  }
439  {
440  return QStringList() << "1.0"
441  << "0.1";
442  }
443  QIcon icon() const {
444  return QIcon(":/images/SubdivideTriAdapt.png");
445  }
446 };
447 
453 class mgxBase_EXPORT SubdivideBisectMesh : public MeshProcess {
454 public:
456  : Process(process)
457  , MeshProcess(process)
458  {
459  }
460 
461  bool operator()(const QStringList& parms)
462  {
463  if(!checkState().mesh(MESH_NON_EMPTY))
464  return false;
465  return (*this)(currentMesh(), parms[0].toFloat());
466  }
467 
468  bool operator()(Mesh* mesh, float cellMaxArea);
469 
470  QString folder() const {
471  return "Structure";
472  }
473  QString name() const {
474  return "Subdivide with Bisection";
475  }
477  return "Subdivide triangles area with bisection";
478  }
480  return QStringList() << QString("Max Area(%1)").arg(UM2);
481  }
483  return QStringList() << QString("Max Area(%1)").arg(UM2);
484  }
486  return QStringList() << "1.0";
487  }
488  QIcon icon() const {
489  return QIcon(":/images/SubdivideTriAdapt.png");
490  }
491 };
492 
498 class mgxBase_EXPORT ScaleMesh : public MeshProcess {
499 public:
501  : Process(process)
502  , MeshProcess(process)
503  {
504  }
505 
506  bool operator()(const QStringList& parms)
507  {
508  if(!checkState().mesh(MESH_NON_EMPTY))
509  return false;
510  return (*this)(currentMesh(), parms[0].toFloat(), parms[1].toFloat(), parms[2].toFloat());
511  }
512 
513  bool operator()(Mesh* mesh, float scaleX, float scaleY, float scaleZ);
514 
515  QString folder() const {
516  return "Structure";
517  }
518  QString name() const {
519  return "Scale Mesh";
520  }
522  {
523  return "Scale Mesh, or a selected part of it.\n"
524  "It is possible to specify a negative number, in which case the dimension will be mirrored.\n"
525  "If either 1 or 3 axis are mirrored, then the whole mesh needs to be scaled, "
526  "as these triangles will change orientation";
527  }
529  {
530  return QStringList() << "X Scale"
531  << "Y Scale"
532  << "Z Scale";
533  }
535  {
536  return QStringList() << "X Scale"
537  << "Y Scale"
538  << "Z Scale";
539  }
541  {
542  return QStringList() << "1.0"
543  << "1.0"
544  << "1.0";
545  }
546  QIcon icon() const {
547  return QIcon(":/images/Scale.png");
548  }
549 };
550 
556 class mgxBase_EXPORT MeshDeleteValence : public MeshProcess {
557 public:
559  : Process(process)
560  , MeshProcess(process)
561  {
562  }
563 
564  bool operator()(const QStringList& parms)
565  {
566  if(!checkState().mesh(MESH_NON_EMPTY))
567  return false;
568  return (*this)(currentMesh(), parms[0].toInt(), parms[1].toInt());
569  }
570 
571  bool operator()(Mesh* mesh, int startValence, int endValence);
572 
573  QString folder() const {
574  return "Structure";
575  }
576  QString name() const {
577  return "Delete Mesh Vertices by Valence";
578  }
580  return "Delete mesh vertices that have valence within the specified range";
581  }
583  {
584  return QStringList() << "Start Valence"
585  << "End Valence";
586  }
588  {
589  return QStringList() << "Start Valence"
590  << "End Valence";
591  }
593  {
594  return QStringList() << "0"
595  << "2";
596  }
597  QIcon icon() const {
598  return QIcon(":/images/DeleteValence");
599  }
600 };
601 
607 class MergeVertices : public MeshProcess {
608 public:
610  : Process(process)
611  , MeshProcess(process)
612  {
613  }
614 
615  bool operator()(const QStringList& )
616  {
617  if(!checkState().mesh(MESH_NON_EMPTY))
618  return false;
619  return operator()(currentMesh());
620  }
621 
622  bool operator()(Mesh* mesh);
623 
624  QString folder() const {
625  return "Structure";
626  }
627  QString name() const {
628  return "Merge Vertices";
629  }
631  return "Merge selected vertices into one.";
632  }
634  return QStringList();
635  }
637  return QStringList();
638  }
640  return QStringList();
641  }
642  QIcon icon() const {
643  return QIcon(":/images/MergeVertices");
644  }
645 };
646 
652 class DeleteEdge : public MeshProcess {
653 public:
655  : Process(process)
656  , MeshProcess(process)
657  {
658  }
659 
660  bool operator()(const QStringList& )
661  {
662  if(!checkState().mesh(MESH_NON_EMPTY))
663  return false;
664  return operator()(currentMesh());
665  }
666 
667  bool operator()(Mesh* mesh);
668 
669  QString folder() const {
670  return "Structure";
671  }
672  QString name() const {
673  return "Delete Edge";
674  }
676  return "Delete edge between 2 selected vertices.";
677  }
679  return QStringList();
680  }
682  return QStringList();
683  }
685  return QStringList();
686  }
687  QIcon icon() const {
688  return QIcon(":/images/DeleteLabel.png");
689  }
690 };
691 
697 class mgxBase_EXPORT MeshDeleteSelection : public MeshProcess {
698 public:
700  : Process(process)
701  , MeshProcess(process)
702  {
703  }
704 
705  bool operator()(const QStringList& )
706  {
707  if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
708  return false;
709  return (*this)(currentMesh());
710  }
711 
712  bool operator()(Mesh* m);
713 
714  QString folder() const {
715  return "Structure";
716  }
717  QString name() const {
718  return "Delete Selection";
719  }
721  return "Delete vertices selected in the current mesh, preserving cells.";
722  }
724  return QStringList();
725  }
727  return QStringList();
728  }
729  QIcon icon() const {
730  return QIcon(":/images/DeleteLabel.png");
731  }
732 };
733 
739 class mgxBase_EXPORT MeshKeepVertices : public MeshProcess {
740 public:
742  : Process(process)
743  , MeshProcess(process)
744  {
745  }
746 
747  bool operator()(const QStringList& parms)
748  {
749  if(!checkState().mesh(MESH_NON_EMPTY | MESH_SHOW_MESH))
750  return false;
751  bool keep = stringToBool(parms[0]);
752  return (*this)(currentMesh(), keep);
753  }
754 
755  bool operator()(Mesh* m, bool keep);
756 
757  QString folder() const {
758  return "Structure";
759  }
760  QString name() const {
761  return "Keep Vertices";
762  }
764  {
765  return "Mark vertices so that they can survive as lines and points. Also prevents labels changing.";
766  }
768  return QStringList() << "Keep";
769  }
771  return QStringList() << "Keep";
772  }
774  return QStringList() << "No";
775  }
777  {
778  ParmChoiceMap map;
779  map[0] = booleanChoice();
780  return map;
781  }
782  QIcon icon() const {
783  return QIcon(":/images/KeepVertices.png");
784  }
785 };
787 } // namespace process
788 } // namespace mgx
789 #endif
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:773
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:383
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:573
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:705
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:757
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:98
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:89
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:429
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:367
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:506
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:244
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessStructure.hpp:776
Delete the edge between 2 selected vertices.
Definition: MeshProcessStructure.hpp:652
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:485
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:331
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:355
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:420
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:240
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:675
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:204
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:247
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:337
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:201
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:147
arg(const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char( ' ')
Subdivide triangles area with bisection.
Definition: MeshProcessStructure.hpp:453
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:479
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:95
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:253
Misc.
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:328
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:195
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:720
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:373
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:433
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:642
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:488
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:678
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:271
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:423
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:286
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:156
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:534
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:364
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:717
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:443
Scale the mesh.
Definition: MeshProcessStructure.hpp:498
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:62
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:624
Subdivide triangles around cell borders.
Definition: MeshProcessStructure.hpp:347
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:723
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:250
Mark vertices so that they can survive as lines and points.
Definition: MeshProcessStructure.hpp:739
Merge selected vertices into one.
Definition: MeshProcessStructure.hpp:607
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:476
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:144
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:767
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:377
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:687
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:747
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:564
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:636
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:207
Subdivide triangles depending on mesh signal.
Definition: MeshProcessStructure.hpp:400
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:576
Displace each vertex towards the mesh center, perpendicular to the surface.
Definition: MeshProcessStructure.hpp:217
Subdivide the mesh uniformely, without displacing existing vertices.
Definition: MeshProcessStructure.hpp:305
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:177
graph::VVGraph< VertexData, EdgeData > vvgraph
Type of the VV graph holding the actual mesh.
Definition: Mesh.hpp:46
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:615
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:159
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:417
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:237
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:162
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:546
vvgraph::vertex_t vertex
Type of a vertex.
Definition: Mesh.hpp:49
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:521
Subdivide the mesh uniformly using Loop subdivision.
Definition: MeshProcessStructure.hpp:263
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:582
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:763
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:438
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:597
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:388
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:714
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:325
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:192
Apply an affine transformation to the vertices of a mesh (all of them or just the selected ones)...
Definition: MeshProcessStructure.hpp:54
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:370
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:111
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:292
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:660
mgxBase_EXPORT bool subdivideBisect(vvgraph &S, const vertex &v1, const vertex &v2, const vertex &v3, bool selected, std::vector< vertex > *vs=0)
Subdivide triangle by bi-sections.
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:684
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:180
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:461
File containing the definition of a Process.
mgxBase_EXPORT void markMargin(vvgraph &M, vvgraph &S, bool remborders)
Mark the cells and tissue margin vertices.
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:283
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:92
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:136
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:470
Average each vertex position based on its neighbors.
Definition: MeshProcessStructure.hpp:172
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:639
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:579
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:189
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:627
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:118
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:760
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:295
This namespace contains all the classes needed to define processes.
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:518
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:153
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:150
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:408
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:234
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:770
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:782
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:225
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:289
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessStructure.hpp:313
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:482
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:726
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:681
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:672
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:322
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:540
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:280
Delete vertices selected in the current mesh, preserving cells.
Definition: MeshProcessStructure.hpp:697
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:633
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:515
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessStructure.hpp:630
Delete vertices whose valence is wihin a given range.
Definition: MeshProcessStructure.hpp:556
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:334
Reverse the orientation of the mesh.
Definition: MeshProcessStructure.hpp:128
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessStructure.hpp:729
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:198
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessStructure.hpp:528
QString name() const
Returns the name of the process.
Definition: MeshProcessStructure.hpp:473
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:865
QString folder() const
Folder in which to place the process.
Definition: MeshProcessStructure.hpp:669
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessStructure.hpp:587
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessStructure.hpp:592