Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkCellBoundary.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkCellBoundary.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/06/20 02:35:20 $
00007   Version:   $Revision: 1.21 $
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 __itkCellBoundary_h
00018 #define __itkCellBoundary_h
00019 
00020 #include "itkCellInterface.h"
00021 
00022 namespace itk
00023 {
00024   
00043 template <
00044   typename TCell
00045   >
00046 class CellBoundary: public TCell
00047 {
00048 public:
00050   typedef CellBoundary  Self;
00051   typedef TCell  Superclass;
00052     
00054   itkTypeMacro(CellBoundary, Cell);
00055   
00058   typedef TCell  CellType;
00059   
00061   typedef typename CellType::UsingCellsContainer      UsingCellsContainer;
00062   
00064   typedef typename UsingCellsContainer::iterator  UsingCellsContainerIterator;
00065   
00068   typedef typename CellType::CellIdentifier           CellIdentifier;
00069   
00071   virtual bool IsBoundary(void);
00072   virtual void AddUsingCell(CellIdentifier cellId);
00073   virtual void RemoveUsingCell(CellIdentifier cellId);
00074   virtual bool IsUsingCell(CellIdentifier cellId);
00075   virtual unsigned int GetNumberOfUsingCells(void);
00076   virtual UsingCellsContainerIterator UsingCellsBegin(void);
00077   virtual UsingCellsContainerIterator UsingCellsEnd(void);
00078     
00080   CellBoundary() {};
00081   ~CellBoundary() {};
00082 
00083 
00084 protected:
00086   UsingCellsContainer m_UsingCells;
00087 
00088  
00089 private:
00090   CellBoundary(const Self&); //purposely not implemented
00091   void operator=(const Self&); //purposely not implemented  
00092 };
00093 
00094 } // end namespace itk
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkCellBoundary.txx"
00098 #endif
00099 
00100 #endif

Generated at Wed Mar 12 01:12:49 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000