KWScene/Documentation/Supported Generators/ITK/PolyData: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 11: Line 11:
digraph G {
digraph G {
itkProcessObject [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ProcessObject.html"];
itkProcessObject [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ProcessObject.html"];
itkImageSource [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ImageSource.html"];
itkMeshSource [URL="http://www.itk.org/Doxygen316/html/classitk_1_1MeshSource.html"];
itkImageSeriesReader [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ImageSeriesReader.html"];
itkVTKPolyDataReader[URL="http://www.itk.org/Doxygen316/html/classitk_1_1VTKPolyDataReader.html"];
itkImageFileReader [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ImageFileReader.html"];
itkBYUReader
itkImageIOBase [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ImageIOBase.html"];
itkXMLReader
itkVTKImageIO[URL="http://www.itk.org/Doxygen316/html/classitk_1_1VTKImageIO.html"];
itkProcessObject -> itkMeshSource
itkGDCMImageIO[URL="http://www.itk.org/Doxygen316/html/classitk_1_1GDCMImageIO.html"];
itkMeshSource -> itkVTKPolyDataReader
itkAnalyzeImageIO[URL="http://www.itk.org/Doxygen316/html/classitk_1_1AnalyzeImageIO.html"];
itkMeshSource -> itkBYUReader
itkMetaImageIO[URL="http://www.itk.org/Doxygen316/html/classitk_1_1MetaImageIO.html"];
itkMeshSource -> itkXMLReader
itkProcessObject -> itkImageSource
itkImageSource -> itkImageSeriesReader
itkImageSource -> itkImageFileReader
itkImageIOBase -> itkGDCMImageIO
itkImageIOBase -> itkAnalyzeImageIO
itkImageIOBase -> itkVTKImageIO
itkImageIOBase -> itkMetaImageIO
}
</graphviz>
 
<graphviz>
digraph G {
vtkAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html"];
vtkDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkDataReader.html"];
vtkPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataReader.html"];
vtkPolyDataAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataAlgorithm.html"];
vtkSTLReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkSTLReader.html"];
vtkBYUReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkBYUReader.html"];
vtkXMLReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLReader.html"];
vtkXMLDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLDataReader.html"];
vtkXMLPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkXMLPolyDataReader.html"];
vtkXMLUnstructureDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLUnstructuredDataReader.html"];
vtkAlgorithm -> vtkDataReader
vtkAlgorithm -> vtkPolyDataAlgorithm
vtkDataReader -> vtkPolyDataReader
vtkPolyDataAlgorithm -> vtkSTLReader
vtkPolyDataAlgorithm -> vtkBYUReader
vtkXMLUnstructureDataReader -> vtkXMLPolyDataReader
vtkXMLDataReader -> vtkXMLUnstructureDataReader
vtkXMLReader -> vtkXMLDataReader
vtkAlgorithm -> vtkXMLReader
}
}
</graphviz>
</graphviz>
Line 56: Line 25:


== Option A ==
== Option A ==


* Create a KWScene hierarchy where every class is dedicated to a specific file format.
* Create a KWScene hierarchy where every class is dedicated to a specific file format.
* Will have classes
* Will have classes
** STL-KWSGenerator
** BYUSurface-KWSGenerator
** BYU-KWSGenerator
** XMLSurface-KWSGenerator
** XML-PolyData-KWSGenerator
** VTKSurface-KWSGenerator
** PolyData-KWSGenerator
** (STLSurface-KWSGenerator)
* Classes deriving from kwSurfaceNodeGenerator will implement a virtual method
** SurfaceNodeGenerator is the base class here, to be consistent with nomenclature in VTK generators.
** bool CanReadFile() const
** and will be pure virtual in the kwsSurfaceNodeGenerator


=== Proposed Hierarchy ===
=== Proposed Hierarchy ===
Line 72: Line 38:
<graphviz>
<graphviz>
digraph G {
digraph G {
kwsVTKGenerator
kwsITKGenerator
kwsVTKNodeGenerator
kwsITKNodeGenerator
kwsVTKSurfaceNodeGenerator
kwsITKSurfaceNodeGenerator
kwsVTKSTLSurfaceNodeGenerator
kwsITKVTKPolyDataSurfaceNodeGenerator
kwsVTKBYUSurfaceNodeGenerator
kwsITKBYUSurfaceNodeGenerator
kwsVTKPolyDataSurfaceNodeGenerator
kwsITKXMLSurfaceNodeGenerator
kwsVTKXMLPolyDataSurfaceNodeGenerator
kwsITKSTLSurfaceNodeGenerator
kwsVTKGenerator -> kwsVTKNodeGenerator
kwsITKGenerator -> kwsITKNodeGenerator
kwsVTKNodeGenerator -> kwsVTKSurfaceNodeGenerator
kwsITKNodeGenerator -> kwsITKSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKSTLSurfaceNodeGenerator
kwsITKSurfaceNodeGenerator -> kwsITKVTKPolyDataSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKBYUSurfaceNodeGenerator
kwsITKSurfaceNodeGenerator -> kwsITKBYUSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKPolyDataSurfaceNodeGenerator
kwsITKSurfaceNodeGenerator -> kwsITKXMLSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKXMLPolyDataSurfaceNodeGenerator
kwsITKSurfaceNodeGenerator -> kwsITKSTLSurfaceNodeGenerator
}
}
</graphviz>
</graphviz>

Latest revision as of 20:08, 25 April 2010

Desired Format Support

  • PolyData from .vtk legacy files (.vtk)
  • BYU files (.byu)
  • XML PolyData (.vtp)
  • (STL files) (.stl)

Class Diagrams

This is a graph with borders and nodes. Maybe there is an Imagemap used so the nodes may be linking to some Pages.

Options

Option A

  • Create a KWScene hierarchy where every class is dedicated to a specific file format.
  • Will have classes
    • BYUSurface-KWSGenerator
    • XMLSurface-KWSGenerator
    • VTKSurface-KWSGenerator
    • (STLSurface-KWSGenerator)
    • SurfaceNodeGenerator is the base class here, to be consistent with nomenclature in VTK generators.

Proposed Hierarchy

This is a graph with borders and nodes. Maybe there is an Imagemap used so the nodes may be linking to some Pages.