[Paraview] Paraview state loading
nbilal at mirarco.org
Thu Nov 27 11:15:41 EST 2008
I just want to know if using vtkSMStateLoader with
keep_proxy set to 1 may ,for some reason, cause a problem
somewhere in Paraview ?
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
> Nehme Bilal wrote:
>> paraview load state use :
>> void vtkSMProxyManager::LoadState(vtkPVXMLElement*
>> 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"
>> <Proxy group="sources" type="CubeSource" id="92"
>> 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
>>> 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
>>> SelfIDs in the state file.
>>> On Sun, Nov 23, 2008 at 11:51 AM, Nehme Bilal
>>><nbilal at mirarco.org> wrote:
>>>> After loading Paraview state, paraview regenerate
>>>>proxies selfID, how
>>>> can I
>>>> restore the same selfID's ?
>>>> ParaView mailing list
>>>> ParaView at paraview.org
>> ParaView mailing list
>> ParaView at paraview.org
More information about the ParaView