[Paraview] Accessing VTK data from a Paraview plugin

David E DeMarle dave.demarle at kitware.com
Wed Feb 20 10:21:06 EST 2008


>  vtkSMClientDeliveryRepresentationProxy*
>  rep=vtkSMClientDeliveryRepresentationProxy::New(); //Thats probably not
>  right yet

You are correct. Instead of creating the representation manually, ask
the proxy manager to create it representation for you. That way the
things managed by the proxy will be created where they need to be and
initialized properly.

vtkSMProxyManager *pm = vtkSMObject::GetProxyManager();

vtkSMClientDeliveryRepresentationProxy *rep =
vtkSMClientDeliveryRepresentationProxy::SafeDownCast(pm->NewProxy("representations","ClientDeliveryRepresentation"));

Or something close to that.


More information about the ParaView mailing list