Do you really need to define another enum? Can't we use vtkDataObject::FIELD_ASSOCIATION_POINTS etc.?<br><br>Utkarsh<br><br><div class="gmail_quote">On Wed, Jun 24, 2009 at 12:45 PM, Jeff Baumes <span dir="ltr"><<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Any input on the following patch before I commit it? I know Tim Shead has given this issue some thought in the past.</div>
<div><br></div><div><div>ENH: Adding support for retrieving attribute types.</div><div><br></div>
<div>There are a number of places that specify attribute types</div><div>(point, cell, vertex, edge, row, field) and create an enumeration</div><div>for this (vtkDataObjectToTable, vtkSelectionNode, ...). A new</div><div>
method GetAttributes(int) in vtkDataObject uses an enum for the</div><div>possible attribute types and subclasses retrieve the appropriate</div><div>attributes. GetAttributesAsFieldData(int) performs the same function</div>
<div>but returns a vtkFieldData instance instead of vtkDataSetAttributes.</div><div>GetAttributeTypeForArray is another convenience method that returns</div><div>the attribute type that an array is contained in.</div></div>
<div><br></div><a href="http://github.com/jeffbaumes/ParaView/commit/cb697c9c25dcd05490648c77bdb725b2fa7a76b1" target="_blank">http://github.com/jeffbaumes/ParaView/commit/cb697c9c25dcd05490648c77bdb725b2fa7a76b1</a><br>
<font color="#888888">
<div><br></div><div>Jeff</div>
</font><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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br>