I would put it in FieldData instead of the Information vectors.<br><br>The information vectors are best used internally to the pipeline and are not terribly easy to work with.<br><br>FieldData (as opposed to CellData or PointData) is easy to work with (it&#39;s just an arbitrary collection of arbitrarily named, typed and sized arrays) and is meant to be the place where arbitrary, whole data set associated, information is kept.<br>

<br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Tue, Dec 7, 2010 at 9:35 AM, R M <span dir="ltr">&lt;<a href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,<br><br>Like the title says, I would like to add extra informations associated to a vtkPolyData (or vtkMultiBlockDataSet). I would like to add a simulationType (in the information associated to the vtkpolydata) that is a type of simulation (we have several ones) and a vtk filter will select the good process depending of the simulationType of the input.<br>

<br>For example, in a RequestData I do:<br><br>int myclass::RequestData( vtkInformation *vtkNotUsed(request), <br>                                    vtkInformationVector **vtkNotUsed(inputVector),<br>                   
                 vtkInformationVector *outputVector)<br>{<br>    ...<br>    vtkInformation* outInfo = outputVector-&gt;GetInformationObject(0);<br>    if( ! outInfo-&gt;Has(vtkDataObject::DATA_EXTENT_TYPE()))<br>    {<br>

        vtkInformationIntegerKey* DATA_EXTENT_TYPE = vtkDataObject::DATA_EXTENT_TYPE();<br>        outInfo-&gt;Set(DATA_EXTENT_TYPE, simulationType); // simulationType is a type of simulation and we have many type of simulation that will be used a filter to select the good process<br>

     }<br>     if( outInfo-&gt;Has(vtkDataObject::DATA_EXTENT_TYPE()))<br>     {<br>         vtkOutputWindow::GetInstance()-&gt;DisplayText(&quot;---&quot;);<br>      
 }<br>    ...<br>}<br><br>But, I am not sure that DATA_EXTENT_TYPE is the good one. There are severals like (DATA_TYPE_NAME, FIELD_NAME,...). So which one should I use to add extra informations associated to a vtkPolyData? <br>

<br>Thank you.<br><br></div>
</div><br>




      </div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>