Commit 299d983c authored by bonnell's avatar bonnell
Browse files

Fix vtk reader to handle VTK_IMAGE_DATA returned from vtkXMLImageDataReader (file type .vti)

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@3366 18c085ea-50e0-402c-830e-de6fd14e8384
parent c9147828
...@@ -191,6 +191,10 @@ avtVTKFileFormat::~avtVTKFileFormat() ...@@ -191,6 +191,10 @@ avtVTKFileFormat::~avtVTKFileFormat()
// Hank Childs, Mon Jun 11 21:27:04 PDT 2007 // Hank Childs, Mon Jun 11 21:27:04 PDT 2007
// Add support for files with no extensions. // Add support for files with no extensions.
// //
// Kathleen Bonnell, Fri Feb 29 09:02:44 PST 2008
// Support VTK_IMAGE_DATA (returned from vtkXMLImageDataReader), convert it
// to rectilinear, as we do with StructuredPoints data.
//
// **************************************************************************** // ****************************************************************************
void void
...@@ -298,7 +302,8 @@ avtVTKFileFormat::ReadInDataset(void) ...@@ -298,7 +302,8 @@ avtVTKFileFormat::ReadInDataset(void)
vtk_time = dataset->GetFieldData()->GetArray("TIME")->GetTuple1(0); vtk_time = dataset->GetFieldData()->GetArray("TIME")->GetTuple1(0);
} }
if (dataset->GetDataObjectType() == VTK_STRUCTURED_POINTS) if (dataset->GetDataObjectType() == VTK_STRUCTURED_POINTS ||
dataset->GetDataObjectType() == VTK_IMAGE_DATA)
{ {
// //
// The old dataset passed in will be deleted, a new one will be // The old dataset passed in will be deleted, a new one will be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment