ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkBioCell.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkBioCell_h
19 #define itkBioCell_h
20 
21 #include "itkBioCellBase.h"
23 
24 namespace itk
25 {
26 namespace bio
27 {
38 template< unsigned int NSpaceDimension = 3 >
39 class ITK_TEMPLATE_EXPORT Cell:public CellBase
40 {
41 public:
43 
46 
47  friend class CellularAggregateBase; // need to give access to the constructor.
48 
49 public:
50  virtual ~Cell() ITK_OVERRIDE;
51  virtual void ClearForce();
52 
53  virtual void AddForce(const VectorType & force);
54 
55  virtual void AdvanceTimeStep();
56 
57  virtual void Mitosis();
58 
59  virtual void Apoptosis(void) ITK_OVERRIDE;
60 
61  virtual void ReceptorsReading();
62 
63  virtual void SetCellularAggregate(CellularAggregateBase *);
64 
65  virtual CellularAggregateBase * GetCellularAggregate();
66 
67  virtual const CellularAggregateBase * GetCellularAggregate() const;
68 
69  static const char * GetSpeciesName(void)
70  {
71  return "Primitive Cell";
72  }
73 
74  virtual bool CheckPointApoptosis() ITK_OVERRIDE
75  { return CellBase::CheckPointApoptosis(); }
76 
77  static Cell * CreateEgg();
78 
79  static unsigned int GetDimension()
80  {
81  return NSpaceDimension;
82  }
83 
84 protected:
85  Cell(); // Users should create a cell with the CreateEgg() method
86 
87 public:
88 
89  virtual const VectorType & GetForce() const;
90 
91 protected:
93 
95 };
96 } // end namespace bio
97 } // end namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkBioCell.hxx"
101 #endif
102 
103 #endif
CellBase Superclass
Definition: itkBioCell.h:42
This class implements the minimal behavior of a biological cell.
Definition: itkBioCell.h:39
CellularAggregateBase * m_Aggregate
Definition: itkBioCell.h:94
Base class for the CellularAggregates.
itk::Point< double, NSpaceDimension > PointType
Definition: itkBioCell.h:45
virtual bool CheckPointApoptosis() override
Definition: itkBioCell.h:74
static unsigned int GetDimension()
Definition: itkBioCell.h:79
virtual bool CheckPointApoptosis()
Non-templated Base class from which the templated Cell classes will be derived.
itk::Vector< double, NSpaceDimension > VectorType
Definition: itkBioCell.h:44
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:52
VectorType m_Force
Definition: itkBioCell.h:92