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

Reply via email to