00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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);
00082
00085 typedef unsigned long PointIdentifier;
00086
00089 typedef unsigned long CellIdentifier;
00090
00094 typedef unsigned long CellFeatureIdentifier;
00095
00098 typedef Point< CoordRepType, VPointDimension > PointType;
00099
00102 typedef MapContainer< PointIdentifier , PointType > PointsContainer;
00103
00106 typedef std::set< CellIdentifier > UsingCellsContainer;
00107
00110 typedef itkMakeCellTraitsMacro CellTraits;
00111
00114 typedef CellInterface< CellPixelType , CellTraits > CellType;
00115 typedef typename CellType::CellAutoPointer CellAutoPointer;
00116
00119 typedef MapContainer< CellIdentifier , CellType * >
00120 CellsContainer;
00121
00124 typedef std::set< CellIdentifier >
00125 PointCellLinksContainer;
00126
00129 typedef MapContainer< PointIdentifier , PointCellLinksContainer >
00130 CellLinksContainer;
00131
00134 typedef MapContainer< PointIdentifier , PixelType >
00135 PointDataContainer;
00136
00139 typedef MapContainer< CellIdentifier , CellPixelType >
00140 CellDataContainer;
00141
00142 };
00143
00144 }
00145
00146 #endif
00147