Querying other vector and scalar information in VTP files ?

Hi,

I have been able to reading VTP files to query their point position and their topology/connectivity in C++. I am calling GetPoint(index) to get the position, I am able to write them out as geometry file and loading them successfully.

Now I wish to get access to additional scalar and vector data in the VTP files e.g. velocity, pressure etc.

What class/function should I read up on that provide access to those information

        <DataArray type="Float32" Name="k" format="appended" RangeMin="0.0028205080889"      RangeMax="12.535236359"         offset="270680"              >
        </DataArray>
        <DataArray type="Float32" Name="nut" format="appended" RangeMin="2.0385788957e-05"     RangeMax="0.34273838997"        offset="360892"              >
        </DataArray>
        <DataArray type="Float32" Name="omega" format="appended" RangeMin="2.5694108009"         RangeMax="2925.4777832"         offset="451104"              >
        </DataArray>
        <DataArray type="Float32" Name="p" format="appended" RangeMin="-73.023971558"        RangeMax="87.371086121"         offset="541316"              >
        </DataArray>
        <DataArray type="Float64" Name="IntegrationTime" format="appended" RangeMin="-0.60359581028"       RangeMax="15.315415797"         offset="631528"              >
        </DataArray>
        <DataArray type="Float64" Name="Vorticity" NumberOfComponents="3" format="appended" RangeMin="8.0318925256e-05"     RangeMax="5365.0840883"         offset="811944"              >

Cheers

Figured it out. I am able to query them via

polyData->GetCellData();

polyData->GetPointData();

Cheers