<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
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><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><hr id="stopSpelling">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>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
I try to set pqPipelineRepresentation opacity but have no conclusive result ...<br><br>There is a getOpacity but no setOpacity function, I looked at paraview's code but I didn't find an easy way ( no way at all ) to set the opacity of 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), this->m_RenderView);<br><br>Where m_input is a pqPipelineSource. (and I need to set the opacity of this newly created representation)<br><br>Thanks<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>_______________________________________________
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                                            </body>
</html>