[Paraview] Turn vtk Data Object into DataObjectProxy

Biddiscombe, John A. biddisco at cscs.ch
Mon Sep 13 12:37:18 EDT 2010


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:andy.bauer at kitware.com]
Sent: 13 September 2010 02:22
To: Biddiscombe, John A.
Cc: paraview at paraview.org
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. <biddisco at cscs.ch<mailto:biddisco at cscs.ch>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100913/eef9c7ab/attachment.htm>


More information about the ParaView mailing list