There's no easy way for doing that from the client side. Changing output data objects outside of a filter/source is not recommended, it's better to add those inside the filter/source's RequestData(). Try creating a custom source instead.
Utkarsh On Mon, Feb 16, 2009 at 5:22 PM, Nehmé Bilal <[email protected]> wrote: > Hello, > > Using a plugin I can create a point source with the following code: > > pqApplicationCore* core = pqApplicationCore::instance(); > pqObjectBuilder* builder = core->getObjectBuilder(); > pqServerManagerModel* sm = core->getServerManagerModel(); > pqServerManagerSelectionModel* sms = core->getSelectionModel(); > pqServer *activeServer = sm->getItemAtIndex<pqServer*>(0); > > pqPipelineSource *newSource = builder->createSource("sources", > "PointSource", activeServer); > > I would like to add a vtkStringArray to the server side of this > source. From the server side, > I can easly do it using: > vtkPolyData::GetPointData()->AddArray("my vtkStringArray"); > > How can I do the same from the client side, using the pqPipelineSource > that I created ? > > Thank you. > _______________________________________________ > 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 > _______________________________________________ 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
