[Paraview] Paraview state loading
Nehme Bilal
nbilal at mirarco.org
Mon Nov 24 12:38:59 EST 2008
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
>>
More information about the ParaView
mailing list