17 #ifndef __itkVoronoiDiagram2D_h
18 #define __itkVoronoiDiagram2D_h
21 #pragma warning ( disable : 4786 )
53 template <
typename TCoordType>
55 public Mesh <TCoordType, 2,
56 DefaultDynamicMeshTraits<TCoordType, 2, 2, TCoordType> >
61 typedef Mesh <TCoordType, 2,
77 itkStaticConstMacro(PointDimension,
unsigned int,
78 MeshTraits::PointDimension);
79 itkStaticConstMacro(MaxTopologicalDimension,
unsigned int,
80 MeshTraits::MaxTopologicalDimension);
143 itkGetConstMacro(NumberOfSeeds,
unsigned int);
168 void GetPoint(
int pId,
PointType *answer);
197 m_CellNeighborsID[x[0]].push_back(x[1]);
198 m_CellNeighborsID[x[1]].push_back(x[0]);
200 void ClearRegion(
int i)
201 { m_VoronoiRegions[i]->ClearPoints();}
202 void VoronoiRegionAddPointId(
int id,
int x)
203 { m_VoronoiRegions[id]->AddPointId(x);}
204 void BuildEdge(
int id)
205 { m_VoronoiRegions[id]->BuildEdges();}
222 x[0]=m_EdgeList[id].m_LeftID;
223 x[1]=m_EdgeList[id].m_RightID;
231 virtual void PrintSelf(std::ostream& os,
Indent indent)
const;
236 void operator=(
const Self&);
253 #ifndef ITK_MANUAL_INSTANTIATION