11 #ifndef MESH_PROCESSS_PDG_HPP 12 #define MESH_PROCESSS_PDG_HPP 16 #include <MeshProcessCellMesh.hpp> 51 bool operator()(
Mesh* mesh1,
Mesh* mesh2,
bool eraseMarginCells,
bool ShowVVCorrespondance);
54 return "Cell Axis/PDG";
57 return "Check Correspondence";
61 return "Find matching cell junctions between 2 meshes based on parent labeling.\n" 62 "Both meshes are simplified with Make Cells to keep only the cell junctions and centers.\n" 63 "SAVE your meshes before running!";
68 <<
"Show correspondence";
72 return QStringList() <<
"Take away the cells touching the mesh outer edge while converting to a cellular mesh." 73 <<
"Draw connecting lines between corresponding junctions.";
87 return QIcon(
":/images/CorrespondanceJunctions.png");
116 bool res = (*this)(mesh1, mesh2);
123 return "Cell Axis/PDG";
126 return "Compute Growth Directions";
130 return "Compute PDGs based on correspondence between junctions.\n" 131 "Adapted from Goodall and Green, 'Quantitative Analysis of Surface Growth.'" 132 "Botanical Gazette (1986) \n" 133 "and Dumais and Kwiatkowska, 'Analysis of surface growth in shoot apices.'" 134 "Plant Journal (2002)";
143 return QIcon(
":/images/PDG.png");
164 parms[5].toFloat(), parms[6].toFloat(), parms[7].toFloat());
168 const QColor& ColorShrinkage,
float AxisLineWidth,
float ScaleAxisLength,
float AxisOffset,
169 float AnisotropyThreshold);
172 return "Cell Axis/PDG";
175 return "Display Growth Directions";
178 return "Display the principle growth directions";
193 return QStringList() <<
"Display stretch ratio values in max or min direction as a color map.\n" 194 "stretch ratio = (length after/length before). No deformation means stretch ratio = 1." 195 <<
"Draw directions as vectors, scaled by strain.\n" 196 "strain = (stretch ratio - 1). No deformation means strain = 0. " 197 <<
"Color used for expansion (strain > 0)" 198 <<
"Color used for shrinkage (strain < 0)" 200 <<
"Length of the vectors = Scale * Strain." 201 <<
"Draw the vector ends a bit tilted up for proper display on surfaces." 202 <<
"Minimal value of anisotropy (= stretchMax/StretchMin) required for drawing PDGs.\n" 203 "Use a value above 1.";
223 <<
"Aniso=StretchMax/StretchMin" 224 <<
"StretchMinXStretchMax";
234 return QIcon(
":/images/PDG.png");
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessPDG.hpp:65
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessPDG.hpp:86
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessPDG.hpp:136
Definition: MeshProcessPDG.hpp:94
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: MeshProcessPDG.hpp:101
Process()
Default constructor.
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessPDG.hpp:75
QString folder() const
Folder in which to place the process.
Definition: MeshProcessPDG.hpp:171
QString folder() const
Folder in which to place the process.
Definition: MeshProcessPDG.hpp:122
QString name() const
Returns the name of the process.
Definition: MeshProcessPDG.hpp:125
CheckState checkState()
Call this function and convert the result to a boolean.
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessPDG.hpp:177
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:177
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessPDG.hpp:158
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessPDG.hpp:142
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Definition: MeshProcessPDG.hpp:150
File containing the definition of a Process.
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessPDG.hpp:217
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessPDG.hpp:180
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessPDG.hpp:128
Mesh * mesh(int i)
Returns the ith mesh.
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessPDG.hpp:59
Definition: MeshProcessPDG.hpp:25
mgx_EXPORT bool stringToBool(const QString &string)
Helper function converting a string into a boolean.
This namespace contains all the classes needed to define processes.
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessPDG.hpp:233
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessPDG.hpp:80
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessPDG.hpp:206
Non-empty mesh.
Definition: Process.hpp:674
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessPDG.hpp:139
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessPDG.hpp:70
QStringList booleanChoice() const
Helper function that provides a list of choices for a boolean argument.
Definition: Process.hpp:609
Mesh * currentMesh()
Returns the current mesh (i.e.
QString name() const
Returns the name of the process.
Definition: MeshProcessPDG.hpp:56
QString folder() const
Folder in which to place the process.
Definition: MeshProcessPDG.hpp:53
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:865
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessPDG.hpp:191
QString name() const
Returns the name of the process.
Definition: MeshProcessPDG.hpp:174
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessPDG.hpp:33