[Paraview] Fwd: client <-> server communication

Nehmé Bilal nehmebilal at gmail.com
Tue Feb 17 10:50:59 EST 2009


Hi,
Creating custom source will solve my problem.

Thanks Utkarsh.


2009/2/17 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:
> 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 <nehmebilal at gmail.com> 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
>>
>


More information about the ParaView mailing list