[Paraview] RequestData Being Called Multiple Times [PV3.1.0]
Mike Jackson
imikejackson at gmail.com
Tue Jul 17 16:24:31 EDT 2007
Well, I worked it down to the following lines that appear in the
RequestInformation() method:
#if 0
outInfo->Set( vtkDataObject::ORIGIN(), DataOrigin, 3 );
outInfo->Set( vtkDataObject::SPACING(), DataSpacing, 3 );
this->DataExtent[0] = this->DataExtent[2] = this->DataExtent[4] = 0;
this->DataExtent[1] = xDim;
this->DataExtent[3] = yDim;
this->DataExtent[5] = zDim;
outInfo->Set( vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),
DataExtent, 6 );
vtkDataObject::SetPointDataActiveScalarInfo(outInfo,
VTK_TYPE_FLOAT32,1);
#endif
If I leave it so that code is compiled, then my RequestData is called
multiple times. I looked at some other readers (ImageReader2) and it
seems to be setting this ok, but I think that reader is based off the
older pipeline..
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Jul 17, 2007, at 3:02 PM, Kent Eschenberg wrote:
> Mike Jackson wrote:
>> RequestInformation is only being called once.... which I forgot to
>> mention.. But I will check just to make sure.. .. Checking......
>> Yep only once where the ModifiedTime is different from the top of
>> the method to the bottom of the method.
>
> Hmmm ... maybe that is not the problem. But maybe I wasn't clear.
> I'll try again.
>
> I suspect that the executive records the modified time before it
> calls RequestInformation. Then, if RequestInformation calls those
> macros you mentioned, and they in turn change the modified time,
> then the modified time will be changed by the end of
> RequestInformation and thus the end of RequestData. Hence the
> subsequent re-call.
>
> Kent
More information about the ParaView
mailing list