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

From KitwarePublic
Jump to navigationJump to search
(Created page with '= Desired Format Support = * PolyData from .vtk legacy files * BYU files * XML PolyData * (STL files) = Class Diagrams = <graphviz> digraph G { vtkAlgorithm [URL="http://www.…')
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Desired Format Support =
= Desired Format Support =


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


= Class Diagrams =
= Class Diagrams =


<graphviz>
<graphviz>
digraph G {
digraph G {
vtkAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html"];
itkProcessObject [URL="http://www.itk.org/Doxygen316/html/classitk_1_1ProcessObject.html"];
vtkDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkDataReader.html"];
itkMeshSource [URL="http://www.itk.org/Doxygen316/html/classitk_1_1MeshSource.html"];
vtkPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataReader.html"];
itkVTKPolyDataReader[URL="http://www.itk.org/Doxygen316/html/classitk_1_1VTKPolyDataReader.html"];
vtkPolyDataAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataAlgorithm.html"];
itkBYUReader
vtkSTLReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkSTLReader.html"];
itkXMLReader
vtkBYUReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkBYUReader.html"];
itkProcessObject -> itkMeshSource
vtkXMLReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLReader.html"];
itkMeshSource -> itkVTKPolyDataReader
vtkXMLDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLDataReader.html"];
itkMeshSource -> itkBYUReader
vtkXMLPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkXMLPolyDataReader.html"];
itkMeshSource -> itkXMLReader
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 36: 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 52: 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.