[Paraview] Retrieving Data (Client-Server)

David E DeMarle dave.demarle at kitware.com
Fri Jul 13 15:22:41 EDT 2012


Fetch gives you a VTK data set. Getpoints you the geometry.
On Jul 13, 2012 2:56 PM, "Dennis McWherter" <dmcwhe2 at illinois.edu> wrote:

> Thank you for your suggestion; do you know if there is a method to extract
> coordinate data from this abstraction? If not, it seems like I may need to
> delve into the python layer code a little bit. Thank you again for your
> help.
>
> Regards,
> Dennis McWherter
>
> On Fri, Jul 13, 2012 at 11:50 AM, David E DeMarle <
> dave.demarle at kitware.com> wrote:
>
>> Get the vtkPVDataInformation for the object. That will give you
>> lightweight information about the object (the same thing shown in the
>> Information tab)
>>
>> If you need a local copy of the object, see how servermanager.Fetch
>> does it in the python layer.
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909
>>
>>
>> On Fri, Jul 13, 2012 at 12:35 PM, Dennis McWherter <dmcwhe2 at illinois.edu>
>> wrote:
>> > Hello,
>> >
>> > I have created a GUI panel which I would like to populate with some
>> > information about a given object. I can find the object through the
>> > pqServerManagerModel without any issues. However, once I already have
>> this
>> > object in the form of pqDataRepresentation* or vtkSMProxy* (or some
>> slight
>> > variation thereof), is there a way in which I can easily retrieve basic
>> data
>> > on the object? For instance, I would specifically like to know the point
>> > coordinates for this object (objects are expected to be standard vtk
>> data
>> > types). If possible, I do not want to attempt to "reconstruct" the
>> original
>> > data object locally. I have also read "GetClientSideObject()"
>> solutions, but
>> > these break the client-server model which is something I would like to
>> > avoid, if possible. Is there any current way of doing this?
>> >
>> > Regards,
>> > Dennis McWherter
>> >
>> > _______________________________________________
>> > 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 ParaView Wiki at:
>> > http://paraview.org/Wiki/ParaView
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.paraview.org/mailman/listinfo/paraview
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120713/14e5e928/attachment-0001.htm>


More information about the ParaView mailing list