[Paraview-developers] Animation: spreadsheet view not synchronized with table
Cornelis Bockemühl
cornelis.bockemuehl at gmail.com
Mon Jan 22 10:49:18 EST 2018
...and this was it indeed: changing the RequestInformation function in
my strip-down example to the following solves the problem:
int vtkTestTTSource::RequestInformation(vtkInformation* request,
vtkInformationVector** inputVec
tor,
vtkInformationVector* outputVec
tor)
{
if(!Superclass::RequestInformation(request, inputVector, outputVect
or))
return 0;
// tell the caller that we can provide time varying data and specify the range
double tRange[] = {0., 1.};
// generate a vector with the steps - from 0 to numSteps
Steps.resize(NumSteps + 1);
for(int s = 0; s <= NumSteps; ++s)
Steps[s] = (double)s / (double)NumSteps;
// tell it to the information objects...
for(int n = 0; n < 2; ++n)
{
vtkInformation* info = outputVector->GetInformationObject(n);
info->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(), tRange, 2);
info->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(), Steps.data(), Steps.size());
info->Set(CAN_HANDLE_PIECE_REQUEST(), 1);
}
return 1;
}
Sorry for all who wasted time for a problem that I have finally solved
by my own!
But still thanks for serving me as a "mirror" for the problem...
With kind regards,
Cornelis
Am Montag, den 22.01.2018, 16:19 +0100 schrieb Mathieu Westphal:
> Hello Cornelis
>
> > I've tested quickly the supports of table and time steps and it seems
to works great.
> Here is how i tested it :
>
> - Download attached .csv files
> > - open table..csv (colapsed time series of files), show in a
spreasheet view
> - click play
>
> Let me know if this works on your end.
>
> Best,
>
> Mathieu Westphal
>
>
>
>
> > On Mon, Jan 22, 2018 at 4:08 PM, Cornelis Bockemühl <cornelis.bockemu
ehl at gmail.com> wrote:
> > Hello,
> > > > > > To me it looks like this could be either some omission from my side
or a bug in ParaView, but in any case I would be interested in a
solution first of all!
> >
> > > > > > > > > > I have written a filter that takes some input ports and produces 5
output ports - the first being an "unstructured grid" and the
others are tables. In the server manager XML I used hints to make
sure that the tables are not automatically opened at once (<View
type="None" port="..." />). This works nicely so far.
> >
> > > > > > Now the filter is producing a time series, step by step modifying
the "unstructured grid", and some data written to the tables per
period.
> >
> > > > > > > > What I see now is that the "unstructured grid" is doing what I
expect: I can go up and down along the time axis and it always
shows the proper graphical output. I can also capture the data in a
spreadsheet, and this is also properly updated.
> >
> > > > Not so the additional tables! In this case they are updated ONCE
and never again, so I can have different scenarios:
> >
> > > > > > > > > > - I add the filter and press apply. This would bring me to step 0 -
with empty tables. If I open now a spreadsheet view and look at any
of them this correct. But if I now press "play" and go from step to
step, only the "unstructured grid" gets updated, not the
spreadsheet view.
> >
> > > > > > > > > > - I can also add the filter, press apply and immediately also
"play". With that I am at the last step, and opening a spreadsheet
view for the tables gives me the full tables - again correct. But
again: if I go back in time, the tables stay as they were initially
(i.e. full).
> >
> > > > > > > > > > > > Now I prepared a demo case for this. It has just two tables, one
being shown immediately and the second only "on demand". Indeed I
could almost reproduce the behaviour: the first table does what is
expected, but the second not. Only difference with my full case:
the second table NEVER shows anything, no matter if I press the
"play" button earlier or later!
> >
> > > > > > It is interesting to note that the "Information" panel shows the
tables correctly, like: X rows, Y columns - even if the spreadsheet
view is completely empty. Or showing much more!
> >
> > > > > > > > > > My question from the beginning is now: Is there something that I
would have to do to trigger a spreadsheet view update or is this a
bug that needs to be fixed? (Actually I hope for the first because
then I can quickly apply the fix in my own software and I am
fine!...)
> >
> > > > > > > > I am attaching a package with source code (h, cxx and xml files)
plus a screenshot that illustrates the case where the second table
shows some content only in the properties panel (left), but not in
the spreadsheet view (right).
> >
> > With many thanks for any helpful hints - and kind regards,
> > Cornelis
> >
> >
> > _______________________________________________
> >
> > Powered by www.kitware.com
> >
> >
> >
> > > > Visit other Kitware open-source projects at http://www.kitware.com/
opensource/opensource.html
> >
> >
> >
> > > > Search the list archives at: http://markmail.org/search/?q=Paraview
-developers
> >
> >
> >
> > Follow this link to subscribe/unsubscribe:
> >
> > https://paraview.org/mailman/listinfo/paraview-developers
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://paraview.org/pipermail/paraview-developers/attachments/20180122/8e6250ba/attachment-0001.html>
More information about the Paraview-developers
mailing list