00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBioCell.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-10-20 21:28:20 $ 00007 Version: $Revision: 1.7 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkBioCell_h 00018 #define __itkBioCell_h 00019 00020 #include "itkBioCellBase.h" 00021 #include "itkBioCellularAggregateBase.h" 00022 00023 00024 namespace itk { 00025 00026 namespace bio { 00027 00036 template<unsigned int NSpaceDimension=3> 00037 class Cell : public CellBase 00038 { 00039 public: 00040 typedef CellBase Superclass; 00041 00042 typedef itk::Vector<double,NSpaceDimension> VectorType; 00043 typedef itk::Point<double,NSpaceDimension> PointType; 00044 00045 friend class CellularAggregateBase; // need to give access to the constructor. 00046 00047 public: 00048 virtual ~Cell(); 00049 virtual void ClearForce(void); 00050 virtual void AddForce(const VectorType & force); 00051 virtual void AdvanceTimeStep(void); 00052 00053 virtual void Mitosis(void); 00054 virtual void Apoptosis(void); 00055 virtual void ReceptorsReading(void); 00056 00057 virtual void SetCellularAggregate( CellularAggregateBase * ); 00058 00059 virtual CellularAggregateBase * GetCellularAggregate( void ); 00060 virtual const CellularAggregateBase * GetCellularAggregate( void ) const; 00061 static const char * GetSpeciesName(void) 00062 { return "Primitive Cell"; } 00063 static Cell * CreateEgg(void); 00064 00065 static unsigned int GetDimension() 00066 { return NSpaceDimension; } 00067 00068 protected: 00069 Cell(); // Users should create cell with the CreateEgg() method 00070 00071 public: 00072 00073 virtual const VectorType & GetForce(void) const; 00074 00075 00076 protected: 00077 VectorType m_Force; 00078 00079 CellularAggregateBase * m_Aggregate; 00080 00081 }; 00082 00083 00084 } // end namespace bio 00085 00086 } // end namespace itk 00087 00088 #ifndef ITK_MANUAL_INSTANTIATION 00089 #include "itkBioCell.txx" 00090 #endif 00091 00092 00093 #endif 00094