[Paraview-developers] How to get active session from a plugin ?
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu Aug 6 17:12:54 EDT 2015
Something else must be wrong. No matter what you should be able to get the
ProxyManager.
What does the debugger tell you about the cause of the crash?
Seb
On Thu, Aug 6, 2015 at 3:08 PM, houssen <houssen at ipgp.fr> wrote:
> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150806/58143217/attachment.html>
More information about the Paraview-developers
mailing list