<div dir="ltr">Hi Andrzej,<div><br></div><div>The representation has its own SM proxy,</div><div><br></div><div><div>    vtkSMProxy* repProxy = repr->getProxy();</div><div><div>    vtkSMPropertyHelper(repProxy, "Representation").Set("Surface With Edges");</div></div><div>    vtkSMPropertyHelper(repProxy, "LineWidth").Set(2);</div><div><br></div></div><div>HTH,</div><div>Yumin</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 7:36 AM, Andrzej Peczak <span dir="ltr"><<a href="mailto:apeczak@ara.co.uk" target="_blank">apeczak@ara.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi<br>
<br>
I am trying to find a way to modify property values of a filter. I figured out how to change values of the lookup table through its proxy after which the changes are visible in the colour map editor panel widgets.<br>
<br>
I can do it with the following snippet code, however I have not found yet the way to change properties of the filter property panel.  I need to change the view representation of the filter to Surface With Edges and the line width. Where  do I acquire required proxy objects from ?<br>
<br>
        pqPipelineRepresentation* repr = qobject_cast< pqPipelineRepresentation* >( pqActiveObjects::instance().activeRepresentation() );<br>
        if ( repr ) {<br>
                vtkSMProxy * lutProxy = repr->getLookupTable()->getProxy();<br>
                if ( lutProxy ) {<br>
                        vtkSMPropertyHelper( lutProxy, "NumberOfTableValues" ).Set( this->scalars().count() - 1 );<br>
                        lutProxy->UpdateVTKObjects();<br>
                }<br>
        }<br>
<br>
Andrzej<br>
<br>
**********************************************************************<br>
Please consider the environment. Only print this email if absolutely necessary.<br>
<br>
This email contains information that is private and confidential and is intended only for the addressee.<br>
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>
Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>
system management and security reasons.<br>
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:<br>
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br>
<br>
**********************************************************************<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>