[vtkusers] Storing Metadata with VTK objects
david.gobbi at gmail.com
Tue Jun 27 18:39:11 EDT 2017
Yes, you can store any kind of array in the FieldData, and you can give
each array any name that you want.
On Tue, Jun 27, 2017 at 2:49 PM, Donny Zimmerman <zmanvortex at gmail.com>
> Thanks David! That was exactly what I was looking for. Can I store a
> string array into FieldData?
> On Tue, Jun 27, 2017 at 3:17 PM, David Gobbi <david.gobbi at gmail.com>
>> Hi Donny,
>> The usual way of doing this is by adding FieldData arrays to the VTK data
>> The field data can be retrieved from the data object during a pick.
>> - David
>> On Tue, Jun 27, 2017 at 1:56 PM, Donny Zimmerman <zmanvortex at gmail.com>
>>> I have tried asking this question before without response so i am going
>>> to try to explain one of my use cases in hopes of clarifying the question.
>>> I have vtkactors that are polyline and/or polygon objects that I am
>>> rendering. These polyline/polygons represent National Weather Service watch
>>> and warning areas. I would like to allow the user to pick a polygon and I
>>> will pop up a window with the watch/warning information text. I need a way
>>> to store some kind of ID with the actor so that when it is picked I am able
>>> to look up the correct informative text from my database. I am struggling
>>> with finding a way to store some kind of metadata with the vtkactor that
>>> can be referenced when picked. Any help would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers