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