An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 45580a35 authored by Berk Geveci's avatar Berk Geveci
Browse files

ENH: All multi-group readers should generate COMPOSITE_DATA_INFORMATION

parent f68b4af2
......@@ -23,6 +23,7 @@
#include "vtkInformation.h"
#include "vtkInformationVector.h"
#include "vtkIntArray.h"
#include "vtkMultiGroupDataInformation.h"
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
#include "vtkStreamingDemandDrivenPipeline.h"
......@@ -32,7 +33,7 @@
#include "vtkSmartPointer.h"
#include <vtkstd/vector>
vtkCxxRevisionMacro(vtkMultiBlockPLOT3DReader, "1.6");
vtkCxxRevisionMacro(vtkMultiBlockPLOT3DReader, "1.7");
vtkStandardNewMacro(vtkMultiBlockPLOT3DReader);
#define VTK_RHOINF 1.0
......@@ -745,6 +746,17 @@ int vtkMultiBlockPLOT3DReader::RequestInformation(
info->Set(
vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(), 1);
int numBlocks = this->Internal->Blocks.size();
vtkMultiGroupDataInformation *compInfo =
vtkMultiGroupDataInformation::New();
info->Set(vtkCompositeDataPipeline::COMPOSITE_DATA_INFORMATION(),compInfo);
compInfo->SetNumberOfGroups(numBlocks);
for (int i=0; i<numBlocks; i++)
{
compInfo->SetNumberOfDataSets(i, 1);
}
compInfo->Delete();
return 1;
}
......
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