[vtk-developers] Adding support for retrieving attribute types.

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jun 24 13:35:21 EDT 2009


Do you really need to define another enum? Can't we use
vtkDataObject::FIELD_ASSOCIATION_POINTS etc.?

Utkarsh

On Wed, Jun 24, 2009 at 12:45 PM, Jeff Baumes <jeff.baumes at kitware.com>wrote:

> Any input on the following patch before I commit it? I know Tim Shead has
> given this issue some thought in the past.
>
> ENH: Adding support for retrieving attribute types.
>
> There are a number of places that specify attribute types
> (point, cell, vertex, edge, row, field) and create an enumeration
> for this (vtkDataObjectToTable, vtkSelectionNode, ...). A new
> method GetAttributes(int) in vtkDataObject uses an enum for the
> possible attribute types and subclasses retrieve the appropriate
> attributes. GetAttributesAsFieldData(int) performs the same function
> but returns a vtkFieldData instance instead of vtkDataSetAttributes.
> GetAttributeTypeForArray is another convenience method that returns
> the attribute type that an array is contained in.
>
>
> http://github.com/jeffbaumes/ParaView/commit/cb697c9c25dcd05490648c77bdb725b2fa7a76b1
>
> Jeff
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20090624/45c11dc6/attachment.html>


More information about the vtk-developers mailing list