[Paraview-developers] How to get active session from a plugin ?
houssen
houssen at ipgp.fr
Thu Aug 6 17:08:53 EDT 2015
Unfortunately, the code crashes when I call
vtkSMProxyManager::GetProxyManager ().
Is there another way ?
Franck
Le 2015-08-06 16:32, Sebastien Jourdain a écrit :
> Try that:
>
> vtkSMProxyManager::GetProxyManager()->GetActiveSession()
>
> On Thu, Aug 6, 2015 at 2:50 AM, houssen <houssen at ipgp.fr [5]> wrote:
>
>> Hello,
>>
>> In ParaView, from an exporter plugin, how can I get the active
>> session ? (= session associated to the plugin in order later on to
>> scan over vtkSMProxy)
>>
>> Following some code samples found in
>> /ParaViewCore/ClientServerCore/Rendering, I tried to do :
>> vtkProcessModule * pProcMgr = vtkProcessModule::GetProcessModule
>> ();
>> vtkSMSession * pSession = ( pProcMgr ) ?
>> vtkSMSession::SafeDownCast ( pProcMgr -> GetActiveSession () ) :
>> NULL;
>> I get pProcMgr != NULL but pSession = NULL
>>
>> Franck
>>
>> PS : I run Ubuntu-14.04 and use ParaView-4.3.1 (built from
>> source).
>>
>> _______________________________________________
>> Powered by www.kitware.com [1]
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html [2]
>>
>> Search the list archives at:
>> http://markmail.org/search/?q=Paraview-developers [3]
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview-developers [4]
>
>
>
> Links:
> ------
> [1] http://www.kitware.com
> [2] http://www.kitware.com/opensource/opensource.html
> [3] http://markmail.org/search/?q=Paraview-developers
> [4] http://public.kitware.com/mailman/listinfo/paraview-developers
> [5] mailto:houssen at ipgp.fr
More information about the Paraview-developers
mailing list