On Mon, 2008-03-17 at 16:09 +0100, Daniel Maleike wrote:
> On Wed, 2008-03-12 at 08:28 +0100, Xavi Planes wrote:
> > Hi,
> > 
> >     I'm using MITK to display a skeleton (mitk::Surface) and an
> > interactor to pick a point. The picking works when the user hits the
> > skeleton but doesn't work when the user picks outside it. 
> > 
> >     My problem is that I do not want the user to hit exactly the
> > skeleton but allow for a tolerance region since the skeleton is very thin. 
> > 
> >     Do you know how can I solve this?
> 
> Hi Xavi,
> 
> To do so, you should change the picking from WorldPicking (hardware,
> z-buffer based) to PointPicking (software, intersections of triangles
> and viewing rays), because the vtkPointPicker has a parameter
> "tolerance". You could do so, e.g. in a functionality:

Xabi,

we decided to make the VTK based pickers public in the interface of
mitk::VtkPropRenderer. In a functionality, you can access them like
this:

mitk::VtkPropRenderer* renderer = m_MultiWidget->mitkWidget4->GetRenderer();
vtkPointPicker* picker = renderer->GetPointPicker();

This way you can set all picking parameters you would like to change.

Daniel

-- 
Dipl.-Inform. Med. Daniel Maleike          Phone: +49 6221 42 2326
Deutsches Krebsforschungszentrum           Im Neuenheimer Feld 280
Medical and Biological Informatics (E130)         69120 Heidelberg


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to