[Paraview-developers] Help to create a textsource proxy and to display it in C++

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jun 24 08:09:51 EDT 2015


Sebastien,

1/ Where can I find the property helper to set for a given proxy?
>
>
Include the header vtkSMPropertyHelper [1].

>
>
> 2/ You are using a variable renderView. I assume that it matches to the
> current active render view.
>
> How can I get it? With something like
> pqActiveObjects::instance().activeView()??
>

That's right. vtkSMPropertyHelper works on vtkSMProxy, so you can do
something as follows:

vtkSMProxy* renderView =
pqActiveObjects::instance().activeView()->getProxy();

Utkarsh

[1]
http://www.paraview.org/ParaView/Doc/Nightly/www/cxx-doc/classvtkSMPropertyHelper.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150624/5fcbbece/attachment.html>


More information about the Paraview-developers mailing list