[Paraview-developers] components in vtkStringArray

Cornelis Bockemühl cornelis.bockemuehl at gmail.com
Fri Dec 16 10:16:11 EST 2016


Hello all,

This is about the vtkStringArray class.

With vtkDoubleArray it is possible to store a set of 3d coordinates as 3
"components" within one and the same array; no need to create 3 "parallel
arrays" for this purpose.

Trying to do the same thing with vtkStringArray I am hitting the walls!

1) It is obviously possible to call SetNumberOfComponents() on a
vtkStringArray. Conclusion: components seem to be supported.

2) There are no functions like SetTuple3 or the like, but there is some
SetTuple function. But the strange thing is that it allows me only to copy
a tuple from another vtkStringArray with the same structure. Which only
pushes the problem back to that second array...

The problem being: How can I set and read the components in a
vtkStringArray - either one by one or as a tuple?

Looks like I missed something basic here...

Regards and thanks for helpful hints!
Cornelis

-- 
Cornelis Bockemühl
Basel, Schweiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161216/b21b7036/attachment.html>


More information about the Paraview-developers mailing list