[Paraview-developers] Update request data

Sebastien Jourdain sebastien.jourdain at kitware.com
Sat Dec 27 11:40:21 EST 2014


Hi Maxim,

I'm not sure to follow what you are trying to do and what worked and did not work. 

Seb

Sent from my iPad

> On Dec 26, 2014, at 23:52, Maxim Glibin <maxim.glibin at gmail.com> wrote:
> 
> Dear Utkarsh,Sebastien,
> 
> In order to update data on server I need to invoke Modified command of data object algorithm.
> I have already used a several ways:
> first:
>   > sourceProxy->MarkAllPropertiesAsModified();
>   > sourceProxy->UpdateSelfAndAllInputs();
> 
> and second:
>   I have created a new method in SMProxy class and implemented the following:
>     > this->MarkModified(this);
>     > vtkClientServerStream stream;
>     > stream << vtkClientServerStream::Invoke
>     >           << VTKOBJECT(this)
>     >           << "Modified"
>     >           << vtkClientServerStream::End;
>     > this->ExecuteStream(stream);
> 
> But both cases it doesn't work for readers with .vtp, .e, .pvd extensions as an example.
> Is there way to get an access to vtkObject of reader class from client side?
> 
> I appreciate any your help.
> Thanks.
> 
> Best regards,
> Maxim
> 
> 2014-12-27 9:52 GMT+03:00 Maxim Glibin <maxim.glibin at gmail.com>:
>> Dear Utkarsh,Sebastien,
>> 
>> In order to update data on server I need to invoke Modified command of data object algorithm.
>> I have already used a several ways:
>> first:
>>   > sourceProxy->MarkAllPropertiesAsModified();
>>   > sourceProxy->UpdateSelfAndAllInputs();
>> 
>> and second:
>>   I have created a new method in SMProxy class and implemented the following:
>>     > this->MarkModified(this);
>>     > vtkClientServerStream stream;
>>     > stream << vtkClientServerStream::Invoke
>>     >           << VTKOBJECT(this)
>>     >           << "Modified"
>>     >           << vtkClientServerStream::End;
>>     > this->ExecuteStream(stream);
>> 
>> But both cases it doesn't work for readers with .vtp, .e, .pvd extensions as an example.
>> Is there way to get an access to vtkObject of reader class from client side?
>> 
>> I appreciate any your help.
>> Thanks.
>> 
>> Best regards,
>> Maxim
>> 
>> 
>> 2014-12-22 14:41 GMT+03:00 Maxim Glibin <maxim.glibin at gmail.com>:
>>> Sorry, I had to add a 'Modify' property in reader of source group.
>>> It works fine. I also have added the argument panel_visibility='never'.
>>> But the question still remains, how should I add property Modify for all readers without copy-paste?
>>> It may be there is another way of property's registering.
>>> It would be nice to invoke "Modified()" command on level of pqPropertiesPanel class for new button like 'Refresh' as example.
>>> 
>>> Thanks a lot for helping.
>>> 
>>> 2014-12-22 11:43 GMT+03:00 Maxim Glibin <maxim.glibin at gmail.com>:
>>>> Dear Sebastien,
>>>> 
>>>> Are there any examples how to get an access to view proxy and its vtkObjects?
>>>> 
>>>> Thanks.
>>>> 
>>>> 2014-12-19 20:52 GMT+03:00 Sebastien Jourdain <sebastien.jourdain at kitware.com>:
>>>>> It depends where the vtkObject is. Remote or Local. 
>>>>> If it is remote that will always return NULL. 
>>>>> 
>>>>> A view proxy will hold vtkObjects on both ends.
>>>>> 
>>>>> On Fri, Dec 19, 2014 at 10:40 AM, Maxim Glibin <maxim.glibin at gmail.com> wrote:
>>>>>> 
>>>>>> 
>>>>>> The method sourceProxy.GetClientSideObject() returns None in case if you are connected to server.
>>>>>> Connect("<host_name>")
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 2014-12-19 19:34 GMT+03:00 Sebastien Jourdain <sebastien.jourdain at kitware.com>:
>>>>>>> 
>>>>>>> Just call Modified() on the proxy itself should work.
>>>>>>> 
>>>>>>> You can read that http://markmail.org/thread/3rrgsuirivxa7nys 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>> On Fri, Dec 19, 2014 at 9:30 AM, Andy Bauer <andy.bauer at kitware.com> wrote:
>>>>>>>> I believe that sourceProxy.GetClientSideObject() will only return something other than None when you're using the built-in client.
>>>>>>>> 
>>>>>>>>> On Fri, Dec 19, 2014 at 11:13 AM, Maxim Glibin <maxim.glibin at gmail.com> wrote:
>>>>>>>>> Small remark: Update(sourceProxy=None) function of paraview.simple module doesn't work because sourceProxy.GetClientSideObject() returns None.
>>>>>>>>> 
>>>>>>>>> 2014-12-19 16:34 GMT+03:00 Maxim Glibin <maxim.glibin at gmail.com>:
>>>>>>>>>> 
>>>>>>>>>> Dear all,
>>>>>>>>>> 
>>>>>>>>>> I am interested in updating of data if the file of reader has changed.
>>>>>>>>>> That is to say, I need call RequestData for vtkAlgorithm in python script or properties panel widget.
>>>>>>>>>> Is it possible?
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> -- 
>>>>>>>>>> Yours Sincerely,
>>>>>>>>>> GLIBIN Maxim O. - Developer
>>>>>>>>>> Phone : +7 (987) 533 00 55
>>>>>>>>>> Email: maxim.glibin at gmail.com
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -- 
>>>>>>>>> Yours Sincerely,
>>>>>>>>> GLIBIN Maxim O. - Developer
>>>>>>>>> Phone : +7 (987) 533 00 55
>>>>>>>>> Email: maxim.glibin at gmail.com
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> Paraview-developers mailing list
>>>>>>>>> Paraview-developers at paraview.org
>>>>>>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> Paraview-developers mailing list
>>>>>>>> Paraview-developers at paraview.org
>>>>>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Yours Sincerely,
>>>>>> GLIBIN Maxim O. - Developer
>>>>>> Phone : +7 (987) 533 00 55
>>>>>> Email: maxim.glibin at gmail.com
>>>>>> 
>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> Yours Sincerely,
>>>> GLIBIN Maxim O. - Developer
>>>> Phone : +7 (987) 533 00 55
>>>> Email: maxim.glibin at gmail.com
>>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> Yours Sincerely,
>>> GLIBIN Maxim O. - Developer
>>> Phone : +7 (987) 533 00 55
>>> Email: maxim.glibin at gmail.com
>>> 
>> 
>> 
>> 
>> -- 
>> Yours Sincerely,
>> GLIBIN Maxim O. - Developer
>> Phone : +7 (987) 533 00 55
>> Email: maxim.glibin at gmail.com
>> 
> 
> 
> 
> -- 
> Yours Sincerely,
> GLIBIN Maxim O. - Developer
> Phone : +7 (987) 533 00 55
> Email: maxim.glibin at gmail.com
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20141227/a513353c/attachment-0001.html>


More information about the Paraview-developers mailing list