Andy

You got me looking in the right direction and I found this is what I wanted

this->TrivialProducer = pxm->NewProxy("sources", "TrivialProducer");
vtkTrivialProducer::SafeDownCast(this->TrivialProducer->GetClientSideObject())->SetOutput(ds);

thanks

JB

From: Andy Bauer [mailto:[email protected]]
Sent: 13 September 2010 02:22
To: Biddiscombe, John A.
Cc: [email protected]
Subject: Re: [Paraview] Turn vtk Data Object into DataObjectProxy

I'm not sure if it will work but maybe using vtkTrivialProducer might do it for 
you with SetOutput().

Andy
On Sun, Sep 12, 2010 at 4:40 PM, Biddiscombe, John A. 
<[email protected]<mailto:[email protected]>> wrote:

I'm experimenting with calling functions in the ServerManager directly from a 
parallel application



On each node, I have a vtkDataset (piece of),



I need to set the dataset as input to a pipeline - for example


  vtkSMProxyManager* pxm = vtkSMProxyManager::GetProxyManager();
  vtkSMProxy *contour = pxm->NewProxy("filters", "Contour");
  //
  vtkSMInputProperty *input = vtkSMInputProperty::SafeDownCast(
    contour->GetProperty("Input"));


How can I manually set the vtkDataSet as the input to the contour filter 
(through the inputproxy). I presume I need a data object proxy, which has its 
pointer set directly. But I can't seem to find that right combination of calls.



Thanks



JB

_______________________________________________
Powered by www.kitware.com<http://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

Reply via email to