<div dir="ltr"><div>Typically you attach global values as field data on vtk objects.  vtkFieldData can contain data arrays of any length, so you would just create a data array with one tuple.<br><br></div><div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 11:19 AM, Hanqi Guo <span dir="ltr"><<a href="mailto:guohanqi@gmail.com" target="_blank">guohanqi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I've written a paraview reader plugin, and I need to further attach several global attributes (e.g. several simulation parameters) to vtkImageData. What is the best way to do this? Thanks. </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br><div><div dir="ltr"><font face="arial, helvetica, sans-serif">Hanqi Guo</font></div></div>
</div></font></span></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>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>