[Paraview] Paraview state loading

Nehme Bilal nbilal at mirarco.org
Thu Nov 27 11:15:41 EST 2008



Hello,

I just want to know if using vtkSMStateLoader with 
keep_proxy set to 1 may ,for some reason, cause a problem 
somewhere in Paraview ?

Thanks


On Mon, 24 Nov 2008 13:41:20 -0500
  Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
> "id" is never preserved no matter what you do with 
>keep_proxies. keep_proxies is only a means to access the 
>newly created using the same old ids from the state 
>loader.
> 
> Utkarsh
> 
> Nehme Bilal wrote:
>> 
>> paraview load state use :
>> void vtkSMProxyManager::LoadState(vtkPVXMLElement* 
>>rootElement, 
>> vtkIdType id,
>>   vtkSMStateLoader* loader/*=NULL*/)
>> 
>> so to test if keep_proxies works, I just added 1 to:
>> spLoader->LoadState(rootElement, 1);
>> 
>> after loading the state and saving again:
>> <Proxy group="sources" type="CubeSource" id="86" 
>>servers="1">
>> became:
>> <Proxy group="sources" type="CubeSource" id="92" 
>>servers="1">
>> 
>> that mean keep_proxies is not working ?
>> 
>> 
>> On Sun, 23 Nov 2008 22:29:26 -0500
>>  "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
>>> You cannot. It;s risky to try to reuse the same IDs 
>>>since they might
>>> have been used by some other object/proxy. You can make 
>>>the state
>>> loader not clear the proxies it created while loading 
>>>the state (call
>>> vtkSMStateLoader::LoadState() with keep_proxies=1) then 
>>>you can use
>>> NewProxy(int) to obtain the proxies created associated 
>>>with the
>>> SelfIDs in the state file.
>>>
>>> Utkarsh
>>>
>>> On Sun, Nov 23, 2008 at 11:51 AM, Nehme Bilal 
>>><nbilal at mirarco.org> wrote:
>>>> Hello,
>>>>
>>>> After loading Paraview state, paraview regenerate 
>>>>proxies selfID, how 
>>>> can I
>>>> restore the same selfID's ?
>>>>
>>>> Thanks
>>>> _______________________________________________
>>>> ParaView mailing list
>>>> ParaView at paraview.org
>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>
>> 
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>> 



More information about the ParaView mailing list