[Paraview] set Representation opacity

Gil Wertz gilwertz at hotmail.com
Mon Apr 11 09:07:36 EDT 2011


And which one is better ?

Wertz Gil
gilwertz at hotmail.com




> Date: Mon, 11 Apr 2011 08:47:50 -0400
> Subject: Re: [Paraview] set Representation opacity
> From: utkarsh.ayachit at kitware.com
> To: gilwertz at hotmail.com
> CC: paraview at paraview.org
> 
> Indeed. Another way I like to use to set properties is as follows:
> 
> vtkSMProxy *proxy = representation->getProxy();
> vtkSMPropertyHelper(proxy, "Opacity").Set(value);
> proxy->UpdateVTKObjects();
> 
> Utkarsh
> 
> On Mon, Apr 11, 2011 at 6:10 AM, Gil Wertz <gilwertz at hotmail.com> wrote:
> > 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
> > _______________________________________________
> > 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/0096129b/attachment.htm>


More information about the ParaView mailing list