ITK  4.4.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_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();
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);
60 
61  virtual void ReceptorsReading(void);
62 
63  virtual void SetCellularAggregate(CellularAggregateBase *);
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
101