11 #ifndef TISSUECURVATURE_HPP 12 #define TISSUECURVATURE_HPP 16 #include <MeshProcessCellMesh.hpp> 41 float neighborhood = parms[0].toFloat(&ok);
50 return "Cell Axis/Curvature";
53 return "Compute Tissue Curvature";
57 return "Compute curvature based on simplified mesh (from Make Cells) for a neighborhood of given radius.";
77 return QIcon(
":/images/Curvature.png");
101 float heatmapPercentile = parms[2].toFloat(&ok);
103 return setErrorMessage(
"Error, argument 'Heatmap percentile' must be a number");
104 float axisLineWidth = parms[6].toFloat(&ok);
106 return setErrorMessage(
"Error, argument 'Line Width' must be a number");
107 float axisLineScale = parms[7].toFloat(&ok);
109 return setErrorMessage(
"Error, argument 'Line Scale' must be a number");
110 float axisOffset = parms[8].toFloat(&ok);
112 return setErrorMessage(
"Error, argument 'Line Offset' must be a number");
113 float threshold = parms[9].toFloat(&ok);
115 return setErrorMessage(
"Error, argument 'Threshold' must be a number");
118 QColor(parms[5]), axisLineWidth, axisLineScale, axisOffset, threshold);
122 const QColor& ColorExpansion,
const QColor& ColorShrinkage,
float AxisLineWidth,
123 float AxisLineScale,
float AxisOffset,
float CurvThreshold);
126 return "Cell Axis/Curvature";
129 return "Display Tissue Curvature";
132 return "Display curvature based on cellular mesh";
138 <<
"Heatmap percentile" 150 return QStringList() <<
"Display curvature values in max or min direction as a color map.\n" 151 "Average: (CurvMax + CurvMin)/2, SignedAverageAbs: sign(CurvMax or CurvMin) x " 152 "(abs(CurvMax) + abs(CurvMin))/2, \n" 153 "Gaussian:(CurvMax x CurvMin), RootSumSquare: sqrt(CurvMax^2 + CurvMin^2), Anisotropy: " 154 "(CurvMax / CurvMin)." 155 <<
"Center the color map on zero, if negtive values exist." 156 <<
"Percentile of values used for color map upper-lower bounds." 157 <<
"Draw main curvature directions as vectors, scaled by 1/(curvature radius)." 158 <<
"Color used for convex (curvature > 0)" 159 <<
"Color used for concave (curvature < 0)" 161 <<
"Length of the vectors = Scale * 1/(curvature radius)." 162 <<
"Draw the vector ends a bit tilted up for proper display on surfaces." 163 <<
"Minimal value of curvature required for drawing the directions.";
185 <<
"SignedAverageAbs" 199 return QIcon(
":/images/Curvature.png");
QString folder() const
Folder in which to place the process.
Definition: MeshProcessCurv.hpp:49
QString name() const
Returns the name of the process.
Definition: MeshProcessCurv.hpp:52
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessCurv.hpp:70
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessCurv.hpp:36
Once the curvature tensor has been computed, this process allows to change how it is displayed...
Definition: MeshProcessCurv.hpp:87
arg(const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char( ' ')
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessCurv.hpp:148
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessCurv.hpp:55
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessCurv.hpp:76
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessCurv.hpp:65
Process()
Default constructor.
QString name() const
Returns the name of the process.
Definition: MeshProcessCurv.hpp:128
CheckState checkState()
Call this function and convert the result to a boolean.
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:177
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessCurv.hpp:134
QString folder() const
Folder in which to place the process.
Definition: MeshProcessCurv.hpp:125
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessCurv.hpp:178
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessCurv.hpp:62
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
bool setErrorMessage(const QString &str)
Set an error message that will be displayed if the process returns false.
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessCurv.hpp:95
File containing the definition of a Process.
Mesh * mesh(int i)
Returns the ith mesh.
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessCurv.hpp:59
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessCurv.hpp:198
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.
Non-empty mesh.
Definition: Process.hpp:674
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 description() const
Returns a description of the process for the GUI.
Definition: MeshProcessCurv.hpp:131
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:865
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessCurv.hpp:165
Compute the curvature tensor for each cell of a cell mesh.
Definition: MeshProcessCurv.hpp:28