Re: pipeline question
Mohamed Amine Mzoughi <[email protected]> Wed, 30 Jan 2019 14:41:57 +0100
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Gerald, I also noticed that in Catalyst (look at my last message here : https://discourse.paraview.org/t/is-it-possible-to-add-new-connections-to-a-fitler-port-via-the-pipeline-browser/1149/7) : I have a vtk HDF writer in which I tested adding a second connection in Port 0, but with 2 connections, vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP doesn't contain an epoch anymore but incremental reals in both connections (2 filters output). So, if someone can give us an explanation and a fix that would be great ? I wish there's a good resource explaining and demystifying VTK pipeline architecture. Regards. Le 30/01/2019 à 14:26, Lodron, Gerald a écrit : > > ah, ok, great. i already found that FROM_OUTPUT_PORT after parsing > many examples. But did not check for -1. Thanks… > > I also noticed a starnge behaviour in time: > > When I use TIME_STEPS in RequestInformation with a double array of > descrete (e.g.1,2,3,4) values, shouldn’t I get only those requests > from paraview (so that i do not need to recompute e.g. requests of 1.1 > and 1.2 which will be both 1 from TIME_STEPS)? > > I still get continues values from UPDATE_TIME_STEP, e.g. 1.1 and 1.2. > Is that behaviour a bug or a feature? > > best regards > > Gerald > > *Von:*David Gobbi <[email protected]> > *Gesendet:* Mittwoch, 30. Januar 2019 14:20 > *An:* Lodron, Gerald <[email protected]> > *Cc:* ([email protected]) <[email protected]> > *Betreff:* Re: [vtkusers] pipeline question > > On Wed, Jan 30, 2019 at 12:58 AM Lodron, Gerald > <[email protected] <mailto:[email protected]>> wrote: > > I made a vtk source with 5 outputs and time data. I am getting the > requested time from output 0. I included the source into paraview. > The problem is that the request Data function gets called 5 times > (because of 5 outputs). Is there a way to get the output port > index of the requested data function call? > > int outputPort = > request->Get(vtkDemandDrivenPipeline::FROM_OUTPUT_PORT()); > > if outputPort has the special value -1, then all outputs should be > generated. > > David > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers