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

itkDefaultStaticMeshTraits.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDefaultStaticMeshTraits.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:57:12 $
00007   Version:   $Revision: 1.35 $
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 __itkDefaultStaticMeshTraits_h
00018 #define __itkDefaultStaticMeshTraits_h
00019 
00020 #include "itkCellInterface.h"
00021 #include "itkVectorContainer.h"
00022 #include "itkPoint.h"
00023 #include <set>
00024 
00025 namespace itk
00026 {
00027 
00053 template <
00054   typename TPixelType,
00055   unsigned int VPointDimension = 3,
00056   unsigned int VMaxTopologicalDimension = VPointDimension,
00057   typename TCoordRep = float,
00058   typename TInterpolationWeight = float,
00059   typename TCellPixelType = TPixelType
00060   >
00061 class DefaultStaticMeshTraits
00062 {
00063 public:
00065   typedef DefaultStaticMeshTraits  Self;
00066   
00068   typedef TPixelType      PixelType;
00069   typedef TCellPixelType  CellPixelType;
00070   typedef TCoordRep  CoordRepType;
00071   typedef TInterpolationWeight  InterpolationWeightType;
00072     
00074   itkStaticConstMacro(PointDimension, unsigned int, VPointDimension);
00075   itkStaticConstMacro(MaxTopologicalDimension, unsigned int,
00076                       VMaxTopologicalDimension);  
00077   
00080   typedef unsigned long  PointIdentifier;
00081 
00084   typedef unsigned long  CellIdentifier;
00085 
00088   typedef unsigned long  BoundaryIdentifier;
00089 
00093   typedef unsigned long  CellFeatureIdentifier;
00094   
00097   typedef Point< CoordRepType, VPointDimension >  PointType;
00098 
00101   typedef VectorContainer< PointIdentifier , PointType >  PointsContainer;
00102 
00105   typedef std::set< CellIdentifier >            UsingCellsContainer;
00106   
00109   typedef itkMakeCellTraitsMacro                     CellTraits;
00110   
00113   typedef CellInterface< CellPixelType , CellTraits >  CellType;
00114   typedef typename CellType::CellRawPointer                CellRawPointer;
00115   typedef typename CellType::CellAutoPointer               CellAutoPointer;
00116     
00119   typedef VectorContainer< CellIdentifier , CellType *  >
00120         CellsContainer;
00121   
00124   typedef std::set< CellIdentifier >     PointCellLinksContainer;
00125 
00128   typedef VectorContainer< PointIdentifier , PointCellLinksContainer >
00129         CellLinksContainer;
00130 
00133   typedef VectorContainer< PointIdentifier , PixelType >
00134         PointDataContainer;
00135 
00138   typedef VectorContainer< CellIdentifier , CellPixelType >
00139         CellDataContainer;
00140 
00143   typedef VectorContainer< BoundaryIdentifier , CellType * >
00144         BoundariesContainer;
00145 
00148   typedef VectorContainer< BoundaryIdentifier , CellPixelType >
00149         BoundaryDataContainer;
00150 };
00151 
00152 } // end namespace itk
00153 
00154 #endif

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