Hi Yves, You need to make sure that you are setting the right keys on the right information objects. We use quite a few different information objects so this is confusing at times.
You need to set KEYS_TO_COPY() on the request (first argument to RequestData). You need to set the key/value you want copied on the output information (outInfo) and read it from input information. The data object's information object is not used for pipeline purposes so you can't do: *inInfo = inputDataSet->GetInformation()* * * You should do: inInfo = inputVector[0]->GetInformationObject(0); Best, -berk On Tue, Oct 30, 2012 at 11:28 AM, Yves Rogez <[email protected] > wrote: > Hi, > > I'm trying to implement a self-made plugin in Paraview, using a working > VTK filter. > This filter sets a key into the information of my output data set > > *outInfo = output->GetInformation()* > > > I have to retrieve this key into the RequestData() pass of the connected > filter. It works well in a pure VTK pipeline, but in Paraview, it seems > that an intermediate filter vtkPVPostFilter drops this information key. > So I found in this mailing list that keys could be copied, by appending > the key to KEYS_TO_COPY() key of the information. > What I do by > > *outInfo->AppendUnique(vtkExecutive::KEYS_TO_COPY(), > cnsVTK_ResultReader_HDF5::DATA_POINTER());* > > The output information PrintSelf() : > > *Debug: Off* > *Modified Time: 235702* > *Reference Count: 1* > *Registered Events: (none)* > *DATA_POINTER: 1757632496* > *DATA_NUMBER_OF_PIECES: 0* > *KEYS_TO_COPY: DATA_POINTER* > *DATA_EXTENT_TYPE: 0* > *DATA_PIECE_NUMBER: -1* > *DATA_NUMBER_OF_GHOST_LEVELS: 0* > *End of result reader Request Data* > > But the key is not copied, or at least, I can't read it into the consumer > RequestData() pass : > > *inInfo = inputDataSet->GetInformation()* > > The *inInfo* PrintSelf() : > > *Debug: Off* > *Modified Time: 234317* > *Reference Count: 1* > *Registered Events: (none)* > *DATA_NUMBER_OF_PIECES: 1* > *DATA_EXTENT_TYPE: 0* > *DATA_PIECE_NUMBER: 0* > *DATA_NUMBER_OF_GHOST_LEVELS: 0* > > So, all specific information keys have been deleted... > > Thank you in advance for your help, > > Yves > > -- > Yves Rogez > > *IPAG CNRS/UJF* > *Institut de Planétologie et d'Astrophysique de Grenoble* > Bat D de Physique - BP. 53 - 38041 Grenoble - FRANCE > > *tel : +33 (0)4 76 63 52 80* > lab : +33 (0)4 76 63 52 89 > > _______________________________________________ > 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 ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > >
_______________________________________________ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
