00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBioCell.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006-02-05 20:57:45 $ 00007 Version: $Revision: 1.6 $ 00008 00009 Copyright (c) 2002 Insight 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 00028 00029 00030 00039 template<unsigned int NSpaceDimension=3> 00040 class Cell : public CellBase 00041 { 00042 public: 00043 typedef CellBase Superclass; 00044 00045 typedef itk::Vector<double,NSpaceDimension> VectorType; 00046 typedef itk::Point<double,NSpaceDimension> PointType; 00047 00048 friend class CellularAggregateBase; // need to give access to the constructor. 00049 00050 public: 00051 virtual ~Cell(); 00052 virtual void ClearForce(void); 00053 virtual void AddForce(const VectorType & force); 00054 virtual void AdvanceTimeStep(void); 00055 00056 virtual void Mitosis(void); 00057 virtual void Apoptosis(void); 00058 virtual void ReceptorsReading(void); 00059 00060 virtual void SetCellularAggregate( CellularAggregateBase * ); 00061 00062 virtual CellularAggregateBase * GetCellularAggregate( void ); 00063 virtual const CellularAggregateBase * GetCellularAggregate( void ) const; 00064 static const char * GetSpeciesName(void) 00065 { return "Primitive Cell"; } 00066 static Cell * CreateEgg(void); 00067 00068 static unsigned int GetDimension() 00069 { return NSpaceDimension; } 00070 00071 protected: 00072 Cell(); // Users should create cell with the CreateEgg() method 00073 00074 public: 00075 00076 virtual const VectorType & GetForce(void) const; 00077 00078 00079 protected: 00080 VectorType m_Force; 00081 00082 CellularAggregateBase * m_Aggregate; 00083 00084 }; 00085 00086 00087 } // end namespace bio 00088 00089 } // end namespace itk 00090 00091 #ifndef ITK_MANUAL_INSTANTIATION 00092 #include "itkBioCell.txx" 00093 #endif 00094 00095 00096 #endif 00097