Changeset 2640


Ignore:
Timestamp:
Oct 20, 2011, 12:55:42 PM (13 years ago)
Author:
ldelgass
Message:

Add new inline methods to check if named field exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RpVtkDataSet.h

    r2612 r2640  
    7474    DataAttributeType getActiveVectorsType() const;
    7575
     76    bool hasField(const char *fieldName) const
     77    {
     78        return getFieldInfo(fieldName, NULL, NULL);
     79    }
     80
     81    bool hasField(const char *fieldName, DataAttributeType type) const
     82    {
     83        return getFieldInfo(fieldName, type, NULL);
     84    }
     85
    7686    bool getFieldInfo(const char *fieldName, DataAttributeType *type, int *numComponents) const;
    7787
Note: See TracChangeset for help on using the changeset viewer.