<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi David,<br>
<br>
+1 for the vtkVariantArray which is good to know.<br>
<br>
As you suggested, i implemented a "\t" tab delimiter approach which
works fine. however, it kind of kills the idea of using a standard
to represent data...<br>
<br>
thanks for your help<br>
simon<br>
<br>
<br>
<div class="moz-cite-prefix">On 04.11.2014 17:39, David Gobbi wrote:<br>
</div>
<blockquote
cite="mid:CANwS1=FyFbey_ShLDBYBaOCCGe1c+LRLgvW6gxx5NUVe7xeAew@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi Simon,</div>
<div><br>
</div>
<div>You can do this with a vtkVariantArray, because a
vtkVariantArray is</div>
<div>an array of "anything" so it allows you to store a
vtkStringArray for</div>
<div>each of your points. It wouldn't be very efficient,
however.</div>
<div><br>
</div>
<div>My recommendation would be to just use a vtkStringArray and
then</div>
<div>use some kind of string delimiter like ";" or ",", for
example if the string</div>
<div>is "one;two" you would write your own code to interpret
that as multiple</div>
<div>values.</div>
<div><br>
</div>
<div> - David </div>
<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Nov 4, 2014 at 9:12 AM,
Tanaka Simon <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:tanakas@gmx.ch" target="_blank">tanakas@gmx.ch</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear VTK
users,<br>
<br>
I want to have a vtkStringArray, but the number of
components shall NOT be the same for all points.<br>
<br>
Example (a sample code is attached):<br>
-> for point 1, the string attribute should be "one"<br>
-> for point2, the string attributes should be "one"
and "two"<br>
-> etc.<br>
<br>
That is like std::vector< std::vector<...> >
where the inner vectors may have different length.<br>
<br>
<br>
What would be the approach:<br>
-> heterogeneous number of components?<br>
-> heterogeneous number of tuples?<br>
-> not vtkStringArray, but some other vtkXXXArray
containing another container with variable length?<br>
<br>
<br>
Thanks for any suggestions<span class="HOEnZb"><font
color="#888888"><br>
Simon<br>
</font></span></blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>