18 #ifndef __itkVoronoiDiagram2DGenerator_h
19 #define __itkVoronoiDiagram2DGenerator_h
50 template<
typename TCoordType >
52 public MeshSource< VoronoiDiagram2D< TCoordType > >
78 itkGetConstMacro(NumberOfSeeds,
unsigned int);
96 void UpdateDiagram(
void);
99 void SetBoundary(PointType vorsize);
101 void SetOrigin(PointType vorsize);
104 void SetRandomSeeds(
int num);
107 PointType GetSeed(
int SeedID);
112 virtual void PrintSelf(std::ostream & os,
Indent indent)
const;
115 void GenerateData(
void);
119 void operator=(
const Self &);
159 FortuneEdge():m_A(0.0), m_B(0.0), m_C(0.0) { m_Ep[0] = m_Ep[1] = m_Reg[0] = m_Reg[1] = 0; }
173 FortuneHalfEdge():m_Left(0), m_Right(0), m_Edge(0), m_RorL(false), m_Vert(0), m_Ystar(0.0), m_Next(0) {}
175 m_Right(edge.m_Right),
179 m_Ystar(edge.m_Ystar),
180 m_Next(edge.m_Next) {}
212 unsigned char Pointonbnd(
int VertID);
214 void GenerateVDFortune(
void);
216 void ConstructDiagram(
void);
256 #ifndef ITK_MANUAL_INSTANTIATION
257 #include "itkVoronoiDiagram2DGenerator.hxx"