[Paraview-developers] vtkSMSourceProxy to vtkSMProxyProperty expecting a vtkDataSet.

Berk Geveci berk.geveci at gmail.com
Wed Jul 27 12:43:07 EDT 2005


Hmm. Tricky. I did not think parts would be used this way. They were
designed to connect pipeline objects and I added support for both ways
of connecting sources (SetInput() and SetInputConnection()). Give a me
a few hours to look into this.

-Berk

On 7/27/05, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> The source vtkSMSourceProxy is MPIMoveData.  The destination is not a
> filter.  It has an XML that looks like this:
> 
>     <Proxy name="PKdTree" class="vtkPKdTree">
>       <ProxyProperty name="AddDataSets" command="AddDataSet"
>                      repeat_command="1" immediate_update="1"/>
>       <ProxyProperty name="RemoveDataSets" command="RemoveDataSet"
>                      repeat_command="1" immediate_update="1"/>
>       <Property name="BuildLocator" command="BuildLocator"/>
>     </Proxy>
> 
> -Ken
> 
> > -----Original Message-----
> > From: Berk Geveci [mailto:berk.geveci at gmail.com]
> > Sent: Wednesday, July 27, 2005 8:06 AM
> > To: Moreland, Kenneth
> > Cc: paraview-developers at paraview.org
> > Subject: Re: [Paraview-developers] vtkSMSourceProxy to
> > vtkSMProxyProperty expecting a vtkDataSet.
> >
> > What does your xml for the filter look like?
> >
> > On 7/26/05, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> > > Here is the situation.  I have a vtkSMProxyProperty with an output
> > > that I want to send to the proxy property of another object that is
> > > expecting a vtkDataSet.  The destination can accept
> > multiple data sets.
> > >
> > > An example of what I am doing is below.  source is the
> > > vtkSMProxyProperty I am getting the data from and
> > destination is the
> > > vtkSMProxy I am putting the data into.
> > >
> > >     vtkSMProxyProperty *pp = vtkSMProxyProperty::SafeDownCast(
> > >
> > > destination->GetProperty("AddDataSets"));
> > >     pp->RemoveAllProxies();
> > >
> > >     for (unsigned int i = 0; i < source->GetNumberOfParts(); i++)
> > >       {
> > >       pp->AddProxy(source->GetPart(i));
> > >       }
> > >
> > > The problem is that the client/server code is failing with an error
> > > that it cannot find an appropriate method associated with the
> > > AddDataSets property.  After some rooting around in the code I
> > > discovered that it was actually trying to call the method with a
> > > vtkAlgorithmOutput instead of a vtkDataSet (thereby causing the
> > > failure).  Looking in vtkSMSourceProxy.cxx I see that each part
> > > actually points to two objects.  One object is the data set that I
> > > want, and the other is  a vtkAlgorithmOutput object that I do not
> > > want.  How do I modify my code so that the
> > vtkAlgorithmOutput is not used?
> > >
> > > -Ken
> > >
> > >    ****      Kenneth Moreland
> > >     ***      Sandia National Laboratories
> > > ***********
> > > *** *** ***  email: kmorel at sandia.gov
> > > **  ***  **  phone: (505) 844-8919
> > >     ***      fax:   (505) 845-0833
> > >
> > > _______________________________________________
> > > Paraview-developers mailing list
> > > Paraview-developers at paraview.org
> > > http://public.kitware.com/mailman/listinfo/paraview-developers
> > >
> >
> >
> 
>


More information about the Paraview-developers mailing list