MorphoGraphX  2.0-1-227
DynamXProcessCellTissue.hpp
Go to the documentation of this file.
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2016 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 DYNAMX_PROCESS_CELL_TISSUE_HPP
12 #define DYNAMX_PROCESS_CELL_TISSUE_HPP
13 
20 #include <Process.hpp>
21 
22 namespace mgx
23 {
24 
25  // Class to hold Cell Tissue parameters
26  class mgxBase_EXPORT CellTissueParms : public Process
27  {
28  public:
29  CellTissueParms(const Process &process) : Process(process) {}
30 
31  // Don't do anything, process is only for parms
32  bool run(const QStringList &) { return true; }
33 
34  // Functions for Gui
35  QString description() const { return "Parameters for FEM simulation for MGXM meshes"; }
36 
37  QStringList parmNames() const
38  {
39  QVector <QString> vec(CellTissueMgx2d::pNumParms);
40 
41  vec[CellTissueMgx2d::pCellUpdGeomMode] = "CellUpdGeomMode";
42  vec[CellTissueMgx2d::pCellWallWidth] = "CellWallWidth";
43  vec[CellTissueMgx2d::pCellWallCorner] = "CellWallCorner";
44  vec[CellTissueMgx2d::pCellColorBegin] = "CellColorBegin";
45  vec[CellTissueMgx2d::pCellColorEnd] = "CellColorEnd";
46  vec[CellTissueMgx2d::pCellColorCenter] = "CellColorCenter";
47  vec[CellTissueMgx2d::pCellBorderColor] = "CellBorderColor";
48  vec[CellTissueMgx2d::pCellPolWidth] = "CellPolWidth";
49  vec[CellTissueMgx2d::pCellPolCorner] = "CellPolCorner";
50  vec[CellTissueMgx2d::pCellPolColorBegin] = "CellPolColorBegin";
51  vec[CellTissueMgx2d::pCellPolColorEnd] = "CellPolColorEnd";
52  vec[CellTissueMgx2d::pCellNormalColor] = "CellNormalColor";
53  vec[CellTissueMgx2d::pCellGraphColor] = "CellGraphColor";
54  vec[CellTissueMgx2d::pCellLineColor] = "CellLineColor";
55  vec[CellTissueMgx2d::pCellLineWidth] = "CellLineWidth";
56 
57  return vec.toList();
58  }
59  QStringList parmDescs() const
60  {
61  QVector <QString> vec(CellTissueMgx2d::pNumParms);
62 
63  vec[CellTissueMgx2d::pCellUpdGeomMode] = "1-Area, 2-Length, 4-Center, 8-Normals";
64  vec[CellTissueMgx2d::pCellWallWidth] = "Width to draw cell walls";
65  vec[CellTissueMgx2d::pCellWallCorner] = "Width of cell wall corners";
66  vec[CellTissueMgx2d::pCellColorBegin] = "Start of cell color ramp";
67  vec[CellTissueMgx2d::pCellColorEnd] = "End of cell color ramp";
68  vec[CellTissueMgx2d::pCellColorCenter] = "Difference in color between center and edges";
69  vec[CellTissueMgx2d::pCellBorderColor] = "Color of cell borders";
70  vec[CellTissueMgx2d::pCellPolWidth] = "Width to draw cell polarity";
71  vec[CellTissueMgx2d::pCellPolCorner] = "Size of cell polarity corner triangles";
72  vec[CellTissueMgx2d::pCellPolColorBegin] = "Start of polarity color ramp";
73  vec[CellTissueMgx2d::pCellPolColorEnd] = "End of polarity color ramp";
74  vec[CellTissueMgx2d::pCellNormalColor] = "Color to draw normals";
75  vec[CellTissueMgx2d::pCellGraphColor] = "Color to draw cell graph";
76  vec[CellTissueMgx2d::pCellLineColor] = "Color to draw lines of graph";
77  vec[CellTissueMgx2d::pCellLineWidth] = "Cell line width";
78 
79  return vec.toList();
80  }
81  QStringList parmDefaults() const
82  {
83  QVector <QString> vec(CellTissueMgx2d::pNumParms);
84 
86  vec[CellTissueMgx2d::pCellWallWidth] = "0.025";
92  vec[CellTissueMgx2d::pCellPolWidth] = "0.0";
100 
101  return vec.toList();
102  }
103  // Icon file
104  QIcon icon() const { return QIcon(":/images/Parameters.png"); }
105  };
106 }
107 
108 #endif
mgx::CellTissueMgx2d::pCellPolCorner
@ pCellPolCorner
Definition: CellTissue.hpp:37
Process.hpp
mgx::CellTissueParms::icon
QIcon icon() const
Definition: DynamXProcessCellTissue.hpp:104
mgx::CellTissueParms::parmDefaults
QStringList parmDefaults() const
Definition: DynamXProcessCellTissue.hpp:81
mgx::CellTissueMgx2d::pCellWallWidth
@ pCellWallWidth
Definition: CellTissue.hpp:36
mgx::CellTissueMgx2d::pCellPolColorEnd
@ pCellPolColorEnd
Definition: CellTissue.hpp:37
mgx::CellTissueMgx2d::pCellColorBegin
@ pCellColorBegin
Definition: CellTissue.hpp:36
mgx::CellTissueMgx2d::pCellLineWidth
@ pCellLineWidth
Definition: CellTissue.hpp:38
mgx::CellTissueMgx2d::pCellNormalColor
@ pCellNormalColor
Definition: CellTissue.hpp:37
mgx::CellTissueParms::run
bool run(const QStringList &)
Definition: DynamXProcessCellTissue.hpp:32
mgx::CellTissueMgx2d::pCellWallCorner
@ pCellWallCorner
Definition: CellTissue.hpp:36
mgx::CellTissueMgx2d::pCellPolColorBegin
@ pCellPolColorBegin
Definition: CellTissue.hpp:37
mgx::CellTissueMgx2d::pCellLineColor
@ pCellLineColor
Definition: CellTissue.hpp:38
mgx
Distributed matrix library.
Definition: Assert.hpp:26
mgx::CellTissueMgx2d::pCellColorCenter
@ pCellColorCenter
Definition: CellTissue.hpp:36
mgx::CellTissueMgx2d::pCellBorderColor
@ pCellBorderColor
Definition: CellTissue.hpp:36
mgx::CellTissueMgx2d::pCellGraphColor
@ pCellGraphColor
Definition: CellTissue.hpp:37
mgx::Process
Definition: Process.hpp:219
mgx::CellTissueMgx2d::pCellUpdGeomMode
@ pCellUpdGeomMode
Definition: CellTissue.hpp:35
mgx::CellTissueParms::parmNames
QStringList parmNames() const
Definition: DynamXProcessCellTissue.hpp:37
mgx::CellTissueParms::description
QString description() const
Definition: DynamXProcessCellTissue.hpp:35
mgx::CellTissueMgx2d::pNumParms
@ pNumParms
Definition: CellTissue.hpp:38
mgx::CellTissueMgx2d::pCellPolWidth
@ pCellPolWidth
Definition: CellTissue.hpp:37
mgx::CellTissueMgx2d::pCellColorEnd
@ pCellColorEnd
Definition: CellTissue.hpp:36
mgx::CellTissueParms::CellTissueParms
CellTissueParms(const Process &process)
Definition: DynamXProcessCellTissue.hpp:29
mgx::CellTissueParms::parmDescs
QStringList parmDescs() const
Definition: DynamXProcessCellTissue.hpp:59
mgx::CellTissueParms
Definition: DynamXProcessCellTissue.hpp:26