I am using a the vtkXMLImageDataReader to load in my existing vti files that have cell data. I can load in the data just fine and display the first cell data scalar available in the file. What I am having trouble with is changing how the data is colored to any of the other available cell data arrays.
The basic pipeline is vtkXMLImageDataReader -> vtkGeometryFilter -> vtkDataSetMapper-> vtkActor
I would have expected to change the displayed color with something like the following, but the color does not change.
auto mapper = vtkSmartPointer::New();
mapper->ColorByArrayComponent(“Volume Fraction (-)”, 0);