[vtkusers] outlines around your vtkPlaneWidget

Istvan Matis i_matis at yahoo.de
Sat Aug 5 08:51:32 EDT 2006

Hi Rashed,
the outlines are actually the black borders of the IPWs. Some of the
interior of the IPW textures are transparent, this is why the borders can be
You can also use vtkOutlineFilter (I did some time ago). 
For picking I modified the source of vtkImagePlaneWidget eg: made the Picker
publicly accessible.
Then I added an observer to the IPW's InteractionEvent, then you can use
See below:
void vtkPlaWidgetCmd::Execute
(vtkObject *caller, unsigned long eventID, void *callerData) 
 vtkImagePlaneWidgetR *ipw = dynamic_cast<vtkImagePlaneWidgetR *>(caller);
 if (ipw == NULL) 
 vtkCellPicker * picker = ipw->GetPicker();
 double pos[3];
//... etc


From: Rashed Karim [mailto:rashed.karim at gmail.com] 
Sent: Saturday, August 05, 2006 3:35 PM
To: Istvan Matis
Subject: Re: [vtkusers] How to put vtkImagePlaneWidget behind actors ?

Hi Matis .. 

Sorry I dont an answer to your question, but I have noticed you have
outlines around your vtkPlaneWidget. May I ask you how you went about doing
this? If you used vtkOutlineFIlter, what did you use in its input? 

Also, are you able to pick points on your vtkImagePlaneWidget?? If you can,
how do you do this? 

Rashed karim 

On 8/5/06, Istvan Matis <i_matis at yahoo.de> wrote: 

is there ANY way to put a vtkImagePlaneWidget BEHIND other
(half-transparent) actors ?
For example not to be always on top of other objects?
See image attached for an example of a "bad" IPW on top of head actor.
Maybe for 3DWidgets in general?

This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
Follow this link to subscribe/unsubscribe:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060805/592ddcc2/attachment.htm>

More information about the vtkusers mailing list