[vtkusers] Problem with vtkTable and vtkVariantArray

Jeff Baumes jeff.baumes at kitware.com
Wed Apr 1 07:46:35 EDT 2009


I've submitted a bug for this:

http://public.kitware.com/Bug/view.php?id=8829

so that it will be on the radar screen.

Jeff

On Tue, Mar 31, 2009 at 11:54 PM, Roger Blum <rogerblum at hawaii.rr.com> wrote:
> Hi Jeff,
>
> Thanks a lot for your explanations which led to a working solution.
>
> Do you have any idea if and when the situation with vtkVariant will be
> solved? The ability to use GetValue on a vtkVariantArray (or vtkTable)
> would provide a much cleaner and simpler solution.
>
> Cheers,
> Roger
>
>
> Jeff Baumes wrote:
>> On Tue, Mar 31, 2009 at 5:08 AM, Roger Blum <rogerblum at hawaii.rr.com> wrote:
>>> My questions:
>>> - Is there an easier way to extract the data from the vtkRowQuery
>>>  object?
>>
>> Your way is the easy way to do it in C++, but it is not currently
>> available in wrapped languages. The problem is vtkVariant, which is a
>> lightweight, stack-based object that does not subclass from vtkObject.
>> No methods that take or return a variant are wrapped.
>>
>>> - Why is method GetValue with 2 params invalid when the online doc
>>>  tells me this method exists? Maybe a wrapping problem?
>>
>> Yes, it is a wrapping issue.
>>
>>> - How else can I read the values of vtkTable and/or vtkVarianArray
>>
>> vtkTable's data is internally stored as a collection of arrays that
>> are uniformly-typed, just like attributes of other data objects in
>> VTK. You can access the columns through table->GetColumn(i) or
>> table->GetColumnByName(name), which are wrapped. The column array
>> types should match the types in the database. vtkVariantArray is
>> currently essentially unaccessable through wrappers, since you cannot
>> set or retrieve values.
>>
>>> - Are there any examples available for the newer Vtk classes?
>>
>> Some of the newer data objects (table, graph, tree) were made
>> primarily for the infovis effort in VTK. See Examples/Infovis and the
>> tests in Infovis/Testing/Cxx and Views/Testing/Cxx. Some rudimentary
>> documentation is available for Titan (i.e. infovis in VTK) at
>> http://www.sandia.gov/Titan and http://www.kitware.com/InfovisWiki.
>> There are plenty of other new classes; search for tests or examples
>> that use them in the VTK repository.
>>
>> Jeff
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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
>



-- 
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com



More information about the vtkusers mailing list