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

itkDefaultDynamicMeshTraits.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDefaultDynamicMeshTraits.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:57:12 $
00007   Version:   $Revision: 1.22 $
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 __itkDefaultDynamicMeshTraits_h
00018 #define __itkDefaultDynamicMeshTraits_h
00019 
00020 #include "itkCellInterface.h"
00021 #include "itkMapContainer.h"
00022 #include "itkPoint.h"
00023 #include <set>
00024 
00025 namespace itk
00026 {
00027 
00057 template <
00058   typename TPixelType,
00059   unsigned int VPointDimension = 3,
00060   unsigned int VMaxTopologicalDimension = VPointDimension,
00061   typename TCoordRep = float,
00062   typename TInterpolationWeight = float,
00063   typename TCellPixelType = TPixelType
00064   >
00065 class DefaultDynamicMeshTraits
00066 {
00067 public:
00069   typedef DefaultDynamicMeshTraits  Self;
00070   
00072   typedef TPixelType      PixelType;
00073   typedef TCellPixelType  CellPixelType;
00074   typedef TCoordRep  CoordRepType;
00075   typedef TInterpolationWeight  InterpolationWeightType;
00076     
00078   itkStaticConstMacro(PointDimension, unsigned int, VPointDimension);
00079   itkStaticConstMacro(MaxTopologicalDimension, unsigned int,
00080                       VMaxTopologicalDimension);  
00081   
00084   typedef unsigned long  PointIdentifier;
00085 
00088   typedef unsigned long  CellIdentifier;
00089 
00092   typedef unsigned long  BoundaryIdentifier;
00093 
00097   typedef unsigned long  CellFeatureIdentifier;
00098   
00101   typedef Point< CoordRepType, VPointDimension >  PointType;
00102 
00105   typedef MapContainer< PointIdentifier , PointType >  PointsContainer;
00106 
00109   typedef std::set< CellIdentifier >            UsingCellsContainer;
00110   
00113   typedef itkMakeCellTraitsMacro                           CellTraits;
00114   
00117   typedef CellInterface< CellPixelType , CellTraits >  CellType;
00118   typedef typename CellType::CellAutoPointer           CellAutoPointer;
00119   
00122   typedef MapContainer< CellIdentifier , CellType * >
00123         CellsContainer;
00124   
00127   typedef std::set< CellIdentifier >
00128         PointCellLinksContainer;
00129 
00132   typedef MapContainer< PointIdentifier , PointCellLinksContainer >
00133         CellLinksContainer;
00134 
00137   typedef MapContainer< PointIdentifier , PixelType >
00138         PointDataContainer;
00139 
00142   typedef MapContainer< CellIdentifier , CellPixelType >
00143         CellDataContainer;
00144 
00147   typedef MapContainer< BoundaryIdentifier , CellType * >
00148         BoundariesContainer;
00149 
00152   typedef MapContainer< BoundaryIdentifier , CellPixelType >
00153         BoundaryDataContainer;
00154 };
00155 
00156 } // end namespace itk
00157 
00158 #endif

Generated at Fri May 21 01:14:37 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000