KWScene/Documentation/Supported Generators/VTK/PolyData: Difference between revisions
From KitwarePublic
< KWScene | Documentation | Supported Generators | VTK
Jump to navigationJump to search
(13 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) | ||
* BYU files (.byu) | |||
* BYU files | * XML PolyData (.vtp) | ||
* XML PolyData | * (STL files) (.stl) | ||
= Class Diagrams = | = Class Diagrams = | ||
Line 13: | Line 13: | ||
vtkAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html"]; | vtkAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkAlgorithm.html"]; | ||
vtkDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkDataReader.html"]; | vtkDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkDataReader.html"]; | ||
vtkPolyDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataReader.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"]; | vtkPolyDataAlgorithm [URL="http://www.vtk.org/doc/nightly/html/classvtkPolyDataAlgorithm.html"]; | ||
vtkSTLReader [URL="http://www.vtk.org/doc/nightly/html/classvtkSTLReader.html"]; | vtkSTLReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkSTLReader.html"]; | ||
vtkBYUReader [URL="http://www.vtk.org/doc/nightly/html/classvtkBYUReader.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"]; | vtkXMLReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLReader.html"]; | ||
vtkXMLDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLDataReader.html"]; | vtkXMLDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLDataReader.html"]; | ||
vtkXMLPolyDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLPolyDataReader.html"]; | vtkXMLPolyDataReader [shape=box,URL="http://www.vtk.org/doc/nightly/html/classvtkXMLPolyDataReader.html"]; | ||
vtkXMLUnstructureDataReader [URL="http://www.vtk.org/doc/nightly/html/ | vtkXMLUnstructureDataReader [URL="http://www.vtk.org/doc/nightly/html/classvtkXMLUnstructuredDataReader.html"]; | ||
vtkAlgorithm -> vtkDataReader | vtkAlgorithm -> vtkDataReader | ||
vtkAlgorithm -> vtkPolyDataAlgorithm | vtkAlgorithm -> vtkPolyDataAlgorithm | ||
Line 30: | Line 30: | ||
vtkXMLReader -> vtkXMLDataReader | vtkXMLReader -> vtkXMLDataReader | ||
vtkAlgorithm -> vtkXMLReader | 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
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