Skip to content
Snippets Groups Projects
Commit 3517e2a0 authored by Berk Geveci's avatar Berk Geveci Committed by George Zagaris
Browse files

Fixed issues in the group filter.

The group filter was not dealing with extents properly. It
needed to properly ask for the whole extent from inputs (which
was done using an extent translator in the past) and it needed
to remove whole extent from the output (the default is to copy
from 1st input).

Change-Id: Ib44282f7f48aa60c7fad9fa6a5cceeb50e9b2e54
parent a4944a46
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,37 @@ vtkMultiBlockDataGroupFilter::~vtkMultiBlockDataGroupFilter()
{
}
//-----------------------------------------------------------------------------
int vtkMultiBlockDataGroupFilter::RequestInformation(
vtkInformation *vtkNotUsed(request),
vtkInformationVector **vtkNotUsed(inputVector),
vtkInformationVector *outputVector)
{
vtkInformation* info = outputVector->GetInformationObject(0);
info->Remove(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT());
return 1;
}
//-----------------------------------------------------------------------------
int vtkMultiBlockDataGroupFilter::RequestUpdateExtent(
vtkInformation *vtkNotUsed(request),
vtkInformationVector **inputVector,
vtkInformationVector *vtkNotUsed(outputVector))
{
int numInputs = inputVector[0]->GetNumberOfInformationObjects();
for (int i=0; i<numInputs; i++)
{
vtkInformation* inInfo = inputVector[0]->GetInformationObject(i);
if (inInfo->Has(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()))
{
inInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),
inInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()),
6);
}
}
return 1;
}
//-----------------------------------------------------------------------------
int vtkMultiBlockDataGroupFilter::RequestData(
vtkInformation *vtkNotUsed(request),
......
......@@ -48,6 +48,12 @@ protected:
vtkMultiBlockDataGroupFilter();
~vtkMultiBlockDataGroupFilter();
virtual int RequestInformation(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *);
virtual int RequestUpdateExtent(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *);
virtual int RequestData(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment