<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
And which one is better ?<br><br><hr size="2" width="100%"><blockquote><blockquote><b>Wertz Gil</b><br></blockquote><i>gilwertz@hotmail.com</i><br></blockquote><hr size="2" width="100%"><br><br><br><br>> Date: Mon, 11 Apr 2011 08:47:50 -0400<br>> Subject: Re: [Paraview] set Representation opacity<br>> From: utkarsh.ayachit@kitware.com<br>> To: gilwertz@hotmail.com<br>> CC: paraview@paraview.org<br>> <br>> Indeed. Another way I like to use to set properties is as follows:<br>> <br>> vtkSMProxy *proxy = representation->getProxy();<br>> vtkSMPropertyHelper(proxy, "Opacity").Set(value);<br>> proxy->UpdateVTKObjects();<br>> <br>> Utkarsh<br>> <br>> On Mon, Apr 11, 2011 at 6:10 AM, Gil Wertz <gilwertz@hotmail.com> wrote:<br>> > I founded a way to do that "easily" :<br>> ><br>> > vtkSMProxy *proxy = representation->getProxy();<br>> > vtkSMProperty * prop = proxy->GetProperty("Opacity");<br>> > pqSMAdaptor::setElementProperty(prop, value);<br>> > proxy->UpdateVTKObjects();<br>> > this->m_RenderView->render();<br>> ><br>> > Regards<br>> ><br>> > ________________________________<br>> ><br>> > Wertz Gil<br>> ><br>> > gilwertz@hotmail.com<br>> ><br>> > ________________________________<br>> ><br>> ><br>> ><br>> > ________________________________<br>> > From: gilwertz@hotmail.com<br>> > To: paraview@paraview.org<br>> > Date: Mon, 11 Apr 2011 09:28:08 +0200<br>> > Subject: [Paraview] set Representation opacity<br>> ><br>> > I try to set pqPipelineRepresentation opacity but have no conclusive result<br>> > ...<br>> ><br>> > There is a getOpacity but no setOpacity function, I looked at paraview's<br>> > code but I didn't find an easy way ( no way at all ) to set the opacity of<br>> > my pqPipelineRepresentations that are in my pqRenderView.<br>> ><br>> > Any idea ?<br>> ><br>> > Maybe using pqPipelineRepresentation is not the best way.<br>> ><br>> > I add representation to my pqRenderView like this :<br>> > m_object_builder->createDataRepresentation(m_input->getOutputPort(0),<br>> > this->m_RenderView);<br>> ><br>> > Where m_input is a pqPipelineSource. (and I need to set the opacity of this<br>> > newly created representation)<br>> ><br>> > Thanks<br>> ><br>> > ________________________________<br>> ><br>> > Wertz Gil<br>> ><br>> > gilwertz@hotmail.com<br>> ><br>> > ________________________________<br>> ><br>> ><br>> > _______________________________________________ Powered by www.kitware.com<br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html Please keep messages<br>> > on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView<br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the ParaView Wiki at:<br>> > http://paraview.org/Wiki/ParaView<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> ><br>> ><br>                                            </body>
</html>