Skip to content
Snippets Groups Projects
Commit 24e46416 authored by Charly Bollinger's avatar Charly Bollinger
Browse files

vtkSpatioTemporalHarmonicsSource: Distributed support

Support for distributed image data using sub extent
parent 17d77892
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,7 @@ int vtkSpatioTemporalHarmonicsSource::RequestInformation(vtkInformation* vtkNotU
outInfo->Set(vtkDataObject::SPACING(), 1.0, 1.0, 1.0);
outInfo->Set(vtkDataObject::ORIGIN(), 0.0, 0.0, 0.0);
outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), this->WholeExtent, 6);
outInfo->Set(CAN_PRODUCE_SUB_EXTENT(), 1);
if (this->Internals->TimeStepValues.empty())
{
......@@ -176,7 +177,7 @@ int vtkSpatioTemporalHarmonicsSource::RequestData(vtkInformation* vtkNotUsed(req
double timeValue = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
vtkImageData* output = vtkImageData::GetData(outInfo);
output->SetExtent(outInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()));
output->SetExtent(outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT()));
this->Internals->HarmonicsFilter->SetInputData(output);
this->Internals->HarmonicsFilter->UpdateTimeStep(timeValue);
......
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