[Paraview] set Representation opacity

Gil Wertz gilwertz at hotmail.com
Mon Apr 11 06:10:37 EDT 2011


I founded a way to do that "easily" :

      vtkSMProxy *proxy = representation->getProxy();
      vtkSMProperty * prop = proxy->GetProperty("Opacity");
      pqSMAdaptor::setElementProperty(prop, value);
      proxy->UpdateVTKObjects();
      this->m_RenderView->render();

Regards

Wertz Gil
gilwertz at hotmail.com




From: gilwertz at hotmail.com
To: paraview at paraview.org
Date: Mon, 11 Apr 2011 09:28:08 +0200
Subject: [Paraview] set Representation opacity








I try to set pqPipelineRepresentation opacity but have no conclusive result ...

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.

Any idea ?

Maybe using pqPipelineRepresentation is not the best way.

I add representation to my pqRenderView like this :
 m_object_builder->createDataRepresentation(m_input->getOutputPort(0), this->m_RenderView);

Where m_input is a pqPipelineSource. (and I need to set the opacity of this newly created representation)

Thanks

Wertz Gil
gilwertz at hotmail.com


 		 	   		  

_______________________________________________
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 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110411/cc017c0f/attachment.htm>


More information about the ParaView mailing list