18 #ifndef __itkCellInterface_h
19 #define __itkCellInterface_h
30 #define itkCellVisitMacro(TopologyId) \
31 static int GetTopologyId() \
35 virtual void Accept(CellIdentifier cellid, typename CellInterface< PixelType, \
36 CellTraits >::MultiVisitor * mv) \
38 typename CellInterfaceVisitor< PixelType, CellTraits >::Pointer v = \
39 mv->GetVisitor(TopologyId); \
42 v->VisitFromCell(cellid, this); \
48 #define itkCellCommonTypedefs(celltype) \
49 typedef celltype Self; \
50 typedef AutoPointer< const Self > ConstSelfAutoPointer; \
51 typedef AutoPointer< Self > SelfAutoPointer; \
52 typedef Self * RawPointer; \
53 typedef const Self *ConstRawPointer
57 #define itkCellInheritedTypedefs(superclassArg) \
58 typedef superclassArg Superclass; \
59 typedef typename Superclass::PixelType PixelType; \
60 typedef typename Superclass::CellType CellType; \
61 typedef typename Superclass::CellAutoPointer CellAutoPointer; \
62 typedef typename Superclass::CellConstAutoPointer CellConstAutoPointer; \
63 typedef typename Superclass::CellRawPointer CellRawPointer; \
64 typedef typename Superclass::CellConstRawPointer CellConstRawPointer; \
65 typedef typename Superclass::CellTraits CellTraits; \
66 typedef typename Superclass::CoordRepType CoordRepType; \
67 typedef typename Superclass::InterpolationWeightType \
68 InterpolationWeightType; \
69 typedef typename Superclass::PointIdentifier PointIdentifier; \
70 typedef typename Superclass::PointIdIterator PointIdIterator; \
71 typedef typename Superclass::PointIdConstIterator PointIdConstIterator; \
72 typedef typename Superclass::CellIdentifier CellIdentifier; \
73 typedef typename Superclass::CellFeatureIdentifier CellFeatureIdentifier; \
74 typedef typename Superclass::CellFeatureIdentifier CellFeatureCount; \
75 typedef typename Superclass::PointType PointType; \
76 typedef typename Superclass::VectorType VectorType; \
77 typedef typename Superclass::PointsContainer PointsContainer; \
78 typedef typename Superclass::UsingCellsContainer UsingCellsContainer; \
79 typedef typename Superclass::CellGeometry CellGeometry; \
80 typedef typename Superclass::ParametricCoordArrayType \
81 ParametricCoordArrayType; \
82 typedef typename Superclass::ShapeFunctionsArrayType \
83 ShapeFunctionsArrayType; \
84 itkStaticConstMacro(PointDimension, unsigned int, Superclass::PointDimension)
189 typedef typename std::map< int, VisitorPointer >::value_type
201 typename std::map< int, typename VisitorType::Pointer >::iterator
205 return ( *pos ).second;
421 #if !defined( CABLE_CONFIGURATION )
472 template<
int VPointDimension,
typename TCoordRep,
473 typename TInterpolationWeight,
typename TPointIdentifier,
474 typename TCellIdentifier,
typename TCellFeatureIdentifier,
475 typename TPoint,
typename TPointsContainer,
476 typename TUsingCellsContainer >
494 #define itkMakeCellTraitsMacro \
495 CellTraitsInfo < itkGetStaticConstMacro(PointDimension), CoordRepType, \
496 InterpolationWeightType, \
497 PointIdentifier, CellIdentifier, CellFeatureIdentifier, \
498 PointType, PointsContainer, UsingCellsContainer >
501 #if !defined( CABLE_CONFIGURATION )
502 #ifndef ITK_MANUAL_INSTANTIATION
503 #include "itkCellInterface.hxx"