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

From KitwarePublic
Jump to navigationJump to search
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Desired Format Support =
= Desired Format Support =


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


= Class Diagrams =
= Class Diagrams =
Line 11: Line 11:
<graphviz>
<graphviz>
digraph G {
digraph G {
LightProcessObject [URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1LightProcessObject.html"];
vtkAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html"];
ProcessObject [URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1ProcessObject.html"];
vtkDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkDataReader.html"];
ClassifierBase [URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1ClassifierBase.html"];
vtkPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataReader.html"];
ImageClassifierBase [URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1ImageClassifierBase.html"];
vtkPolyDataAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataAlgorithm.html"];
MRFImageFilter [URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1MRFImageFilter.html"];
vtkSTLReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkSTLReader.html"];
RGBPriorsFilter [URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1RGBPriorsFilter.html"];
vtkBYUReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkBYUReader.html"];
SampleClassifier [shape=box,URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1Statistics_1_1SampleClassifier.html"];
vtkXMLReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLReader.html"];
SampleClassifierWithMask [shape=box,URL="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1Statistics_1_1SampleClassifierWithMask.html"];
vtkXMLDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLDataReader.html"];
LightProcessObject -> ClassifierBase
vtkXMLPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkXMLPolyDataReader.html"];
LightProcessObject -> ProcessObject
vtkXMLUnstructureDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLUnstructuredDataReader.html"];
ClassifierBase -> SampleClassifier
vtkAlgorithm -> vtkDataReader
ClassifierBase -> SampleClassifierWithMask
vtkAlgorithm -> vtkPolyDataAlgorithm
ClassifierBase -> ImageClassifierBase
vtkDataReader -> vtkPolyDataReader
ImageClassifierBase -> MRFImageFilter
vtkPolyDataAlgorithm -> vtkSTLReader
ImageClassifierBase -> RGBPriorsFilter
vtkPolyDataAlgorithm -> vtkBYUReader
vtkXMLUnstructureDataReader -> vtkXMLPolyDataReader
vtkXMLDataReader -> vtkXMLUnstructureDataReader
vtkXMLReader -> vtkXMLDataReader
vtkAlgorithm -> vtkXMLReader
}
</graphviz>
 
= Options =
 
== Option A ==
 
 
* Create a KWScene hierarchy where every class is dedicated to a specific file format.
* Will have classes
** STL-KWSGenerator
** BYU-KWSGenerator
** XML-PolyData-KWSGenerator
** PolyData-KWSGenerator
* Classes deriving from kwSurfaceNodeGenerator will implement a virtual method
** bool CanReadFile() const
** and will be pure virtual in the kwsSurfaceNodeGenerator
 
=== Proposed Hierarchy ===
 
<graphviz>
digraph G {
kwsVTKGenerator
kwsVTKNodeGenerator
kwsVTKSurfaceNodeGenerator
kwsVTKSTLSurfaceNodeGenerator
kwsVTKBYUSurfaceNodeGenerator
kwsVTKPolyDataSurfaceNodeGenerator
kwsVTKXMLPolyDataSurfaceNodeGenerator
kwsVTKGenerator -> kwsVTKNodeGenerator
kwsVTKNodeGenerator -> kwsVTKSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKSTLSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKBYUSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKPolyDataSurfaceNodeGenerator
kwsVTKSurfaceNodeGenerator -> kwsVTKXMLPolyDataSurfaceNodeGenerator
}
}
</graphviz>
</graphviz>

Latest revision as of 19:02, 22 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
    • STL-KWSGenerator
    • BYU-KWSGenerator
    • XML-PolyData-KWSGenerator
    • PolyData-KWSGenerator
  • Classes deriving from kwSurfaceNodeGenerator will implement a virtual method
    • bool CanReadFile() const
    • and will be pure virtual in the kwsSurfaceNodeGenerator

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.