<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Change SYSTEM "https://itk.org/migrationv4/ITKMigration.dtd">

<!--**
**
** WriteVoronoiDiagram2DUsingVTKPolyDataWriter.xml
**
** >>>>>>>>>>>>>>>>>>>>>>>>>>>>
** THIS FILE HAS BEEN AUTOMATICALLY GENERATED. EDIT IT BEFORE COMMITING
** <<<<<<<<<<<<<<<<<<<<<<<<<<<
**
** Please, make sure this file validates the following w3c test before committing it: http://validator.w3.org
**-->
<Change>
    <!--**
    ** Title for the online migration page
    **-->
    <Title>
      Write VoronoiDiagram2D Using VTKPolyDataWriter
    </Title>

    <!--**
    ** The author of the change
    **-->
    <Author>
      Wanlin Zhu
    </Author>

    <!--**
    ** Date of creation for the XML document
    **-->
    <Date>
      2011-07-01
    </Date>

    <!--**
    ** Plain text description of the change
    ** Extracted from git commit messages
    **-->
    <Description>
      <![CDATA[
      VoronoiDiagram2D is derived from Mesh, however it could not be used by VTKPolyDataWriter.
      We made the following changes:
      1. Changing typedef VoronoiDiagram2D::CellType from PolygonCell< CellInterfaceType > to Superclass::CellType
      2. Changing typedef VertexIterator from std::vector< PointType >::iterator to PointsContainerIterator
      3. Removal of typedef CellInterfaceType, which is the same as CellType
      4. Adding new typedef PolygonCellType as PolygonCell< CellType >
      Now we are able to write VoronoiDiagram2D as mesh using VTKPolyDataWriter.

      ]]>
    </Description>

    <!--**
    ** Sample code snippets
    ** Extracted from git diff of changed files in Examples and Testing
    **-->
    <SampleCode>
      <Old>
        <![CDATA[
        for(allVerts=testVor->VertexBegin();allVerts!=testVor->VertexEnd();++allVerts)
        {
          std::cout<<": At ("<<(*allVerts)[0]<<","<<(*allVerts)[1]<<")"<<std::endl;
        }
        ]]>
      </Old>

      <New>
        <![CDATA[
        for(allVerts=testVor->VertexBegin();allVerts!=testVor->VertexEnd();++allVerts)
        {
          std::cout<<": At ("<<(allVerts.Value())[0]<<","<<(allVerts.Value())[1]<<")"<<std::endl;
        }
        ]]>
      </New>

    </SampleCode>

    <!--**
    ** The change-ids for all commits in the topic branch
    **-->
    <Gerrit-ChangeId>
      Ie6fa45dab69cb6b3df26896546d3962af172b035
    </Gerrit-ChangeId>

    <!--**
    ** List of all changed files from the topic branch
    **-->
    <FileList>
      Documentation/Migration/WriteVoronoiDiagram2DUsingVTKPolyDataWriter.xml
      Modules/Segmentation/Voronoi/include/itkVoronoiDiagram2D.h
      Modules/Segmentation/Voronoi/include/itkVoronoiDiagram2D.txx
      Modules/Segmentation/Voronoi/test/CMakeLists.txt
      Modules/Segmentation/Voronoi/test/itkVoronoiDiagram2DTest.cxx
    </FileList>

    <!--**
    ** If the migration can be accomplished by a simple string
    ** substitution, then use the following construct to define
    ** the substitution rule.
    **
    ** <MigrationFix-Automatic>
    **   <Old>
    **     <![CDATA[MipsleledName]]>
    **   </Old>
    **   <New>
    **     <![CDATA[MisspelledName]]>
    **   </New>
    ** </MigrationFix-Automatic>
    **-->

    <!--**
    ** If the migration can NOT be accomplished by a simple string
    ** substitution, but potential problem spots can be identified,
    ** use the following construct to define a migration flag rule.
    **
    ** <MigrationFix-Manual>
    **   OldFunctionName
    ** </MigrationFix-Manual>
    **-->

</Change>
