<style> p {margin-top:0px;margin-bottom:0px;} </style> <table border=0 width=100%% cellpadding=0 cellspacing=0 align=center> <tr> <td valign=top style='padding:8pt;'><font size=2><P><BR>
Just keep the pointer to the actor. Set the new value for opacity and update this actor everytime you change the opacity thru your UI.<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<P></P>
<P></P>
<P>---------[ Received Mail Content ]----------<BR>
</P>
<P></P>
<P><B>Subject : </B>Re: [vtkusers] Changing Opacity real time<BR>
</P>
<P></P>
<P><B>Date : </B>Tue, 24 Oct 2006 22:46:56 -0400<BR>
</P>
<P></P>
<P><B>From : </B>"Sharwari Mavalankar" <sharwari@gmail.com><BR>
</P>
<P></P>
<P><B>To : </B>"Andinet Enquobahrie" <andinet.enqu@kitware.com><BR>
</P>
<P></P>
<P><B>Cc : </B>VTK <vtkusers@vtk.org><BR>
</P>
<P></P>
<P><BR>
</P>
<P></P>
<P>hi Andinet,</P>
<P></P>
<P><BR>
Thanks for your email.</P>
<P></P>
<P><BR>
I tried to look into the tour example but I still couldnt get a hang of it.</P>
<P></P>
<P><BR>
Is there any other example I can look at?</P>
<P></P>
<P><BR>
Thanks</P>
<P></P>
<P><BR>
Sharwari</P>
<P></P>
<P><BR>
</P>
<P></P>
<P><BR>
</P>
<P></P>
<P><BR>
On 10/18/06, Andinet Enquobahrie <ANDINET.ENQU@KITWARE.COM>wrote:</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> Hi Sharwari,</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> > hi all,</P>
<P></P>
<P><BR>
> > I am reading 2D BMP slices to build a 3D volume and rendering it using</P>
<P></P>
<P><BR>
> > vtk.</P>
<P></P>
<P><BR>
> > I am using KWWidgets to build a UI for my application.</P>
<P></P>
<P><BR>
> > For this purpose I need to change opacity the 3D volume in real time</P>
<P></P>
<P><BR>
> > (interactively)</P>
<P></P>
<P><BR>
> > Can someone suggest possible ways that I can do this?</P>
<P></P>
<P><BR>
> > Does the vtkKWPiecewiseFunction have to be used along with a check</P>
<P></P>
<P><BR>
> > button for this purpose ?</P>
<P></P>
<P><BR>
> > Thanks!</P>
<P></P>
<P><BR>
> > Sharwari</P>
<P></P>
<P><BR>
> ></P>
<P></P>
<P><BR>
> ></P>
<P></P>
<P><BR>
> ></P>
<P></P>
<P><BR>
> Essentially "vtkKWVolumePropertyWidget" does what you are trying to do.</P>
<P></P>
<P><BR>
> Take a look at</P>
<P></P>
<P><BR>
> WidgetsTour example in KWWidgets to have some idea on how to use this</P>
<P></P>
<P><BR>
> widget.</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> hth</P>
<P></P>
<P><BR>
> -Andinet</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> >------------------------------------------------------------------------</P>
<P></P>
<P><BR>
> ></P>
<P></P>
<P><BR>
> >_______________________________________________</P>
<P></P>
<P><BR>
> >This is the private VTK discussion list.</P>
<P></P>
<P><BR>
> >Please keep messages on-topic. Check the FAQ at:</P>
<P></P>
<P><BR>
> http://www.vtk.org/Wiki/VTK_FAQ</P>
<P></P>
<P><BR>
> >Follow this link to subscribe/unsubscribe:</P>
<P></P>
<P><BR>
> >http://www.vtk.org/mailman/listinfo/vtkusers</P>
<P></P>
<P><BR>
> ></P>
<P></P>
<P><BR>
> ></P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
</P></BLOCKQUOTE>
<P></P></font></td></tr>
</table>