[vtkusers] Newbie:get attributes out of vtkpoydata
alex. gouaillard
Alexandre.Gouaillard at Sun.COM
Tue Jul 18 06:06:41 EDT 2006
you might want to balance your SETs and GETs.
use a SETsomething for your data, and GETthe_same_thing then to read it.
example with vectors:
pdata.GetPointData().SetVectors(MyVectorArray);
ReadVectorArray = pdata.GetPointData().GetVectors();
if you only associate one Vector array to your polydata, that should be
enough. Otherwise, use names to differentiate them.
cheers,
alex.
On Tue, 2006-07-18 at 17:45, Fritz Mielert wrote:
> Hi!
> I need to construct a menu where the user can select a attribute to be i.e. used as scalar for color mapping.
> Because I have more than one scalar I have stored the scalar data like this pdata.GetPointData().AddArray(vtkScalar) and wrote it to a file.
> Now I've got to read all attributes of PointData, check wether they've got the right type and get the names of the arrtibutes.
>
> How can I do this?
>
> Is there anything similar to:
> pdata.GetPointData().GetVectors().GetName() ?
>
> thanks alot
>
> fritz
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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