[vtkusers] Mouse interaction with Reslice Cursor in multiple viewports

Craig Henderson craig.henderson at intelligentultrasound.com
Mon Dec 10 09:01:57 EST 2012


I have a single window divided into 4 equally-size viewports. Three
viewports are used to display image planes with a Reslice Cursor Widget and
associated classes to provide plane lines and reslicing functionality. All
is working nicely except for when plane lines in two adjacent viewports are
aligned. In this case, the cursor hittest picks up the plane line in the
"first" viewport (in creation order), even if the mouse is in the other
viewport. The line is cropped correctly to the viewport. The wrong plane
reslice then results.

 

Do I need to set a viewport on the widget, line representation or other? It
seems the hittest is on the plane line representation and not the plane line
segment displayed in the viewport.

 

Any suggestion welcomed.

 

Many thanks

-- Craig

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


More information about the vtkusers mailing list