<br><font size=2 face="sans-serif">Hi Berk,</font>
<br>
<br><font size=2 face="sans-serif">For your information, I found out what
was necessary to copy keys downstream: </font>
<br><font size=2 face="sans-serif">In the reader, add the call as you suggested
:</font>
<br>
<br><font size=3>int XXX:RequestInformation(vtkInformation* request, ....)<br>
{<br>
request->AppendUnique(vtkExecutive::KEYS_TO_COPY(), yourkey);<br>
...<br>
}<br>
</font>
<br><font size=2 face="sans-serif">but you also have to add something in
the algorithm that wants to use the key : </font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3>int YYY:ModifyRequest(vtkInformation* request, ....)<br>
{<br>
request->Set(vtkDemandDrivenPipeline::REQUEST_REGENERATE_INFORMATION(),
1);<br>
return this->Superclass::ModifyRequest(...);<br>
}</font>
<br><font size=3>or the key will not be copied downstream.</font>
<br>
<br><font size=3>Best,</font>
<br><font size=3>Stephane</font>
<br>
<br><font size=3>CCing to the mailing list as this can help others<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>berk.geveci@kitware.com</b>
</font>
<p><font size=1 face="sans-serif">20/02/2010 19:33</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">stephane.ploix@edf.fr</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: KEYS_TO_COPY usage?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Hi Stephane,<br>
<br>
Did you try setting it (during RequestInformation) on the request object?
Something like:<br>
<br>
int XXX:RequestInformation(vtkInformation* request, ....)<br>
{<br>
request->Append(vtkExecutive::KEYS_TO_COPY(), yourkey);<br>
...<br>
}<br>
<br>
If this doesn't work, let me know (send me the code too) and I can look
into it further.<br>
<br>
I hope you are having a good weekend. <br>
Cheers,<br>
-berk<br>
</font>
<br><font size=3>2010/2/19 Stephane PLOIX <</font><a href=mailto:stephane.ploix@edf.fr><font size=3 color=blue><u>stephane.ploix@edf.fr</u></font></a><font size=3>></font>
<br><font size=2 face="sans-serif"><br>
Hi Berk,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I have to send a key from the reader to another filter.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
That works well if the two are immediately after one another, but I can't
find how to propagate this key on the pipeline.</font><font size=3> </font><font size=2 face="sans-serif"><br>
I found the KEYS_TO_COPY informationkey, but I tried to set it in the ProcessRequest
of both the reader and the filter needing this key with no success, could
you give some hints on how to use it?</font><font size=3> </font><font size=3 color=#8f8f8f><br>
</font><font size=2 color=#8f8f8f face="sans-serif"><br>
Stephane</font><font size=3><br>
<br>
<br>
<br>
<br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis
à l'intention exclusive des destinataires et les informations qui y figurent
sont strictement confidentielles. Toute utilisation de ce Message non conforme
à sa destination, toute diffusion ou toute publication totale ou partielle,
est interdite sauf autorisation expresse.<br>
<br>
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit
de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout
ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer
de votre système, ainsi que toutes ses copies, et de n'en garder aucune
trace sur quelque support que ce soit. Nous vous remercions également d'en
avertir immédiatement l'expéditeur par retour du message.<br>
<br>
Il est impossible de garantir que les communications par messagerie électronique
arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou
virus.<br>
____________________________________________________<br>
<br>
This message and any attachments (the 'Message') are intended solely for
the addressees. The information contained in this Message is confidential.
Any use of information contained in this Message not in accord with its
purpose, any dissemination or disclosure, either whole or partial, is prohibited
except formal approval.<br>
<br>
If you are not the addressee, you may not copy, forward, disclose or use
any part of it. If you have received this message in error, please delete
it and all copies from your system and notify the sender immediately by
return message.<br>
<br>
E-mail communication cannot be guaranteed to be timely secure, error or
virus-free.<br>
</font>
<br>
<br><pre>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
</pre>