Commit 444257e5 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

BUG #2379. Passing flags correctly to internal writers.

Fix for bUG #2379 added new ivars. Ensuring that vtkXMLDataSetWriter and
vtkXMLPDataSetWriter pass these to the internal writers correctly.

Change-Id: I916b7c3e2e703b309ef1b02dc25e16409c5a3b29
parent 4cf7ab0c
......@@ -127,6 +127,8 @@ int vtkXMLDataSetWriter::WriteInternal()
writer->SetBlockSize(this->GetBlockSize());
writer->SetDataMode(this->GetDataMode());
writer->SetEncodeAppendedData(this->GetEncodeAppendedData());
writer->SetHeaderType(this->GetHeaderType());
writer->SetIdType(this->GetIdType());
writer->AddObserver(vtkCommand::ProgressEvent, this->ProgressObserver);
// Try to write.
......
......@@ -62,6 +62,7 @@ int vtkXMLPDataSetWriter::WriteInternal()
// Create a writer based on the data set type.
switch (this->GetInput()->GetDataObjectType())
{
case VTK_UNIFORM_GRID:
case VTK_IMAGE_DATA:
case VTK_STRUCTURED_POINTS:
{
......@@ -111,6 +112,8 @@ int vtkXMLPDataSetWriter::WriteInternal()
writer->SetBlockSize(this->GetBlockSize());
writer->SetDataMode(this->GetDataMode());
writer->SetEncodeAppendedData(this->GetEncodeAppendedData());
writer->SetHeaderType(this->GetHeaderType());
writer->SetIdType(this->GetIdType());
writer->SetNumberOfPieces(this->GetNumberOfPieces());
writer->SetGhostLevel(this->GetGhostLevel());
writer->SetStartPiece(this->GetStartPiece());
......
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