[vtkusers] How to select a specific cell/point attribute from a vtkDataSet? (Next)
Eric E. Monson
emonson at cs.duke.edu
Mon May 23 08:59:19 EDT 2011
Hello Romain,
If I understand your question correctly, the standard way of accessing attributes in a vtkDataSet is something like:
imageData->GetPointData()->GetArray("array_name");
polyData->GetCellData()->GetArray("array2_name");
(with some other variations available). Both vtkCellData and vtkPointData inherit from vtkDataSetAttributes, so many of the methods you'll need are listed there or in it's superclass, vtkFieldData:
http://www.vtk.org/doc/nightly/html/classvtkDataSetAttributes.html
http://www.vtk.org/doc/nightly/html/classvtkFieldData.html
Hope this helps,
-Eric
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
Eric E Monson
Duke Visualization Technology Group
On May 23, 2011, at 3:22 AM, Leguay Romain wrote:
> Hello everyone!
> I found how to select a cell (or point) attribute with a vtkDataSetReader's method: SetScalarsName(const char*).
> I try to do the same thing with a vtkDataSet.
>
> Has anyone got any leads?
>
> Thanks,
> Romain LEGUAY
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list