ITK  4.2.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 public:
49  virtual ~Cell();
50  virtual void ClearForce(void);
51 
52  virtual void AddForce(const VectorType & force);
53 
54  virtual void AdvanceTimeStep(void);
55 
56  virtual void Mitosis(void);
57 
58  virtual void Apoptosis(void);
59 
60  virtual void ReceptorsReading(void);
61 
62  virtual void SetCellularAggregate(CellularAggregateBase *);
63 
64  virtual CellularAggregateBase * GetCellularAggregate(void);
65 
66  virtual const CellularAggregateBase * GetCellularAggregate(void) const;
67 
68  static const char * GetSpeciesName(void)
69  {
70  return "Primitive Cell";
71  }
72 
73  static Cell * CreateEgg(void);
74 
75  static unsigned int GetDimension()
76  {
77  return NSpaceDimension;
78  }
79 protected:
80  Cell(); // Users should create a cell with the CreateEgg() method
81 public:
82 
83  virtual const VectorType & GetForce(void) const;
84 
85 protected:
87 
89 };
90 } // end namespace bio
91 } // end namespace itk
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkBioCell.hxx"
95 #endif
96 
97 #endif
98