ITK  4.8.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 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();
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 
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  static Cell * CreateEgg();
75 
76  static unsigned int GetDimension()
77  {
78  return NSpaceDimension;
79  }
80 
81 protected:
82  Cell(); // Users should create a cell with the CreateEgg() method
83 
84 public:
85 
86  virtual const VectorType & GetForce() const;
87 
88 protected:
90 
92 };
93 } // end namespace bio
94 } // end namespace itk
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 #include "itkBioCell.hxx"
98 #endif
99 
100 #endif
virtual void Mitosis()
CellBase Superclass
Definition: itkBioCell.h:42
virtual void ClearForce()
This class implements the minimal behavior of a biological cell.
Definition: itkBioCell.h:39
virtual void AdvanceTimeStep()
CellularAggregateBase * m_Aggregate
Definition: itkBioCell.h:91
virtual const VectorType & GetForce() const
Base class for the CellularAggregates.
virtual void SetCellularAggregate(CellularAggregateBase *)
itk::Point< double, NSpaceDimension > PointType
Definition: itkBioCell.h:45
virtual CellularAggregateBase * GetCellularAggregate()
virtual void AddForce(const VectorType &force)
static unsigned int GetDimension()
Definition: itkBioCell.h:76
Non-templated Base class from which the templated Cell classes will be derived.
virtual ~Cell()
itk::Vector< double, NSpaceDimension > VectorType
Definition: itkBioCell.h:44
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:51
VectorType m_Force
Definition: itkBioCell.h:89
virtual void ReceptorsReading()
static Cell * CreateEgg()
static const char * GetSpeciesName(void)
Definition: itkBioCell.h:69
virtual void Apoptosis(void) override