[Paraview-developers] Trouble with 'Session'

Sebastien Jourdain sebastien.jourdain at kitware.com
Thu Mar 22 07:47:37 EDT 2012


Hi John,

the server session is a vtkPVSessionServer class not a SM one.
Moreover, why do you need the ProxyDefinition manager on the server side ?

Seb



On Thu, Mar 22, 2012 at 7:08 AM, Biddiscombe, John A. <biddisco at cscs.ch> wrote:
> In my plugin, I need to access the
>
> vtkSMProxyDefinitionManager* pxdm =
>
>   serverSession->GetSessionProxyManager()->GetProxyDefinitionManager();
>
>
>
> but the session is always NULL on the server side.
>
>
>
> Trying this
>
> vtkSMSession* serverSession =
>
>   vtkSMSession::SafeDownCast(pm->GetSession());
>
>
>
> gives null.
>
>
>
> What do I need to do to ensure the “session” is correctly initialized. Or is
> there a way to access the proxy definition manager without it. I am
> registering custom proxies, so I need the manager.
>
>
>
> Thanks
>
>
>
> JB
>
>
>
>
>
>
>
> --
>
> John Biddiscombe,                        email:biddisco @.at.@ cscs.ch
>
> http://www.cscs.ch/
>
> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
>
> Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82
>
>
>
>
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>


More information about the Paraview-developers mailing list