[Paraview] vtkPVTrivialProducer issues

wastrel at gmail.com wastrel at gmail.com
Sat Apr 24 00:42:18 EDT 2010


Is there any possible ways to write out the client-side data?


On Fri, Apr 23, 2010 at 4:44 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:

> You no longer need the initial part for loading the XML. You can directly
> use:
>
>  tp = sm.sources.TrivialProducer()
>
> and that should work.
>
> Utkarsh
>
> On Fri, Apr 23, 2010 at 5:09 PM,  <wastrel at gmail.com> wrote:
> > I used the the following snippet to generate data on the client side but
> > ended up with errors:
> >
> > Code:
> > sm = servermanager
> > f = open('trivialproducer.xml', 'r')
> > parser = sm.vtkSMXMLParser()
> > parser.Parse(f.read())
> > parser.ProcessConfiguration(sm.vtkSMObject.GetProxyManager())
> > # Update the modules
> > sm._updateModules()
> >
> > tp = sm.sources.TrivialProducer()
> > obj = tp.GetClientSideObject()
> > obj.SetOutput(pd)
> >
> > # use tp as any other source proxy
> >
> >
> > trivialproducer.xml:
> >
> > <ServerManagerConfiguration>
> > <ProxyGroup name="sources">
> >
> > <SourceProxy name="TrivialProducer"
> > class="vtkPVTrivialProducer">
> > </SourceProxy>
> > </ProxyGroup>
> >
> >
> > Errors:
> > ERROR: In
> >
> /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,
> > line 1001
> > vtkProcessModule (0x807b790): Cannot create object of type
> > "vtkPVTrivialProducer".
> > while processing
> > Message 0 = New
> >   Argument 0 = string_value {vtkPVTrivialProducer}
> >   Argument 1 = id_value {40}
> >
> >
> > ERROR: In
> >
> /home/berk/Work/ReleaseBuilds/ParaView3/Servers/Common/vtkProcessModule.cxx,
> > line 1002
> > vtkProcessModule (0x807b790): Aborting execution for debugging purposes.
> >
> > Abort
> >
> >
> > _______________________________________________
> > 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100423/72b6d5dc/attachment.htm>


More information about the ParaView mailing list