00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkBioCellularAggregateBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006-02-05 20:57:45 $ 00007 Version: $Revision: 1.2 $ 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 __itkBioCellularAggregateBase_h 00018 #define __itkBioCellularAggregateBase_h 00019 00020 00021 #include "itkObject.h" 00022 #include "itkObjectFactory.h" 00023 00024 namespace itk { 00025 00026 namespace bio { 00027 00028 class CellBase; 00029 00034 class CellularAggregateBase : public itk::Object 00035 { 00036 public: 00038 typedef CellularAggregateBase Self; 00039 typedef itk::Object Superclass; 00040 typedef itk::SmartPointer<Self> Pointer; 00041 typedef itk::SmartPointer<const Self> ConstPointer; 00042 00043 /*** Run-time type information (and related methods). */ 00044 itkTypeMacro(CellularAggregateBase, itk::Object); 00045 00047 itkNewMacro(Self); 00048 00050 typedef float ImagePixelType; 00051 typedef ImagePixelType SubstrateValueType; 00052 00053 public: 00054 virtual void Add( CellBase * cellA, CellBase * cellB, double perturbationLength ); 00055 virtual void Remove( CellBase * cell ); 00056 00057 virtual SubstrateValueType GetSubstrateValue( unsigned long int cellId, 00058 unsigned int substrateId ) const; 00059 00060 protected: 00061 CellularAggregateBase(); 00062 virtual ~CellularAggregateBase(); 00063 CellularAggregateBase( const Self & ); 00064 void PrintSelf(std::ostream& os, itk::Indent indent) const; 00065 00066 00067 }; 00068 00069 } // end namespace bio 00070 00071 } // end namespace itk 00072 00073 00074 #endif 00075 00076