ITK  4.6.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(void);
52 
53  virtual void AddForce(const VectorType & force);
54 
55  virtual void AdvanceTimeStep(void);
56 
57  virtual void Mitosis(void);
58 
59  virtual void Apoptosis(void) ITK_OVERRIDE;
60 
61  virtual void ReceptorsReading(void);
62 
64 
65  virtual CellularAggregateBase * GetCellularAggregate(void);
66 
67  virtual const CellularAggregateBase * GetCellularAggregate(void) const;
68 
69  static const char * GetSpeciesName(void)
70  {
71  return "Primitive Cell";
72  }
73 
74  static Cell * CreateEgg(void);
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(void) 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 Apoptosis(void) ITK_OVERRIDE
CellBase Superclass
Definition: itkBioCell.h:42
virtual CellularAggregateBase * GetCellularAggregate(void)
This class implements the minimal behavior of a biological cell.
Definition: itkBioCell.h:39
virtual void AdvanceTimeStep(void)
virtual const VectorType & GetForce(void) const
CellularAggregateBase * m_Aggregate
Definition: itkBioCell.h:91
Base class for the CellularAggregates.
virtual void SetCellularAggregate(CellularAggregateBase *)
virtual void ClearForce(void)
itk::Point< double, NSpaceDimension > PointType
Definition: itkBioCell.h:45
virtual void Mitosis(void)
virtual void ReceptorsReading(void)
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
static Cell * CreateEgg(void)
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:51
VectorType m_Force
Definition: itkBioCell.h:89
static const char * GetSpeciesName(void)
Definition: itkBioCell.h:69