13 #ifndef DYNAMX_PROCESS_UNIFORM_GROWTH_HPP
14 #define DYNAMX_PROCESS_UNIFORM_GROWTH_HPP
26 bool initialize(QStringList &parms, QWidget *parent);
29 bool step(
const QStringList &parms);
32 bool rewind(QStringList &parms, QWidget *parent);
38 enum ParmNames { pDt, pDrawSteps, pXGrowth, pYGrowth,
pZGrowth, pTissueParmsProc, pNumParms };
42 QVector <QString> vec(pNumParms);
45 vec[pDrawSteps] =
"DrawSteps";
46 vec[pXGrowth] =
"X Growth";
47 vec[pYGrowth] =
"Y Growth";
48 vec[pZGrowth] =
"Z Growth";
49 vec[pTissueParmsProc] =
"Tissue Parms Process";
56 QVector <QString> vec(pNumParms);
58 vec[pDt] =
"Growth timestep";
59 vec[pDrawSteps] =
"Steps between drawn frames";
60 vec[pXGrowth] =
"Growth in X direction";
61 vec[pYGrowth] =
"Growth in Y direction";
62 vec[pZGrowth] =
"Growth in Z direction";
63 vec[pTissueParmsProc] =
"Process to hold tissue parameters";
70 QVector <QString> vec(pNumParms);
73 vec[pDrawSteps] =
"1";
74 vec[pXGrowth] =
"2.0";
75 vec[pYGrowth] =
"1.0";
76 vec[pZGrowth] =
"0.0";
77 vec[pTissueParmsProc] =
"TissueParms";
89 QIcon
icon()
const {
return QIcon(
":/images/Closing.png"); }
93 void processParms(
const QStringList &parms);
107 return mesh->
attributes().
attrMap<QString,
double>(
"UniformGrowth Time")[
"Time"];
124 bool run(
const QStringList &parms)
126 Mesh *mesh = currentMesh();
128 throw(QString(
"No current mesh"));
129 return run(mesh, parms[0].toDouble(), parms[1].toInt());
131 bool run(
Mesh* mesh,
double size,
int walls);
135 QStringList
parmNames()
const {
return QStringList() <<
"Size" <<
"Walls"; }
137 <<
"Size of the cell" <<
"Number of walls"; }
138 QStringList
parmDefaults()
const {
return QStringList() <<
"5.0" <<
"7"; }
141 QIcon
icon()
const {
return QIcon(
":/images/InitialCell.png"); }