The short answer is you can't. However if you don't care about this code working in client-server mode, then you can do something like follows: vtkPVDataRepresentation* rep = repProxy->GetClientSideObject(); vtkDataObject* dobj = rep->GetRenderedDataObject(0);
Utkarsh On Sun, Apr 3, 2011 at 2:46 PM, Alexis Chan <alex...@cs.unc.edu> wrote: > Hi > > How do I get the vtkPolyData from a ParaView representation that is created > by pqObjectBuilder? > > > For example if I click on the "Create Source" button, in ParaView, I can > modify the position property of that source in my plugin using the following > code: > > pqDataRepresentation *data > =pqApplicationCore::instance()->getServerManagerModel()->getItemAtIndex<pqDataRepresentation*>(0); > vtkSMRepresentationProxy *repProxy = > vtkSMRepresentationProxy::SafeDownCast(data->getProxy()); > vtkSMPropertyHelper(repProxy,"Position").Set(newPosition,3); > > > I would like to be able to get the vtkPolyData if possible because I'm > trying to use Goodwin Lawlor's vtkCollisionDetectionFilter.h > > Thanks. > > > -- > Regards, > Alexis > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview