Dear Milad, We are currently discussing how picking of MITK objects could best be realized. Currently, only point picking is supported, i.e. when you click on an object (e.g. surface) in the 3D window, the corresponding point (in 3D world coordinates) can be retrieved. This is for example used by the mitk::PointSetInteractor (see also DisplayPositionEvent::GetWorldPosition()).
You are right that a vtkPicker can be used to retrieve the vtkProp/vtkActor representation of the underlying dataset. From this, the corresponding mitk::DataTreeNode could be retrieved by checking whether the associated 3D Mapper contains this vtkProp/vtkActor. We are currently in the process of improving/extending the rendering mechanism of MITK, which will make it simpler to retrieve this information. Once this is done, object picking will be simple to realize. We plan to have this ready by beginning of September. If this doesn't fit your time schedule, you could for now experiment with vtkPickers for yourself, with the suggestions I mentioned above. Best regards, Mathias > -----Original Message----- > From: Milad Sadinam [mailto:[email protected]] > Sent: Wednesday, August 12, 2009 3:34 PM > To: [email protected] > Subject: [mitk-users] picking with mitk > > Dear all, > > I am trying to do picking with mitk. I have read about picking in vtk > and I think I got it. > In the vtkAbstractPropPicker-class I have these GetActor- and > GetProp-methods. But how do I get the mitk-object? > What I am interested in is to get the mitk::BaseData-object or even > better the DataTreeNode-object which contains the picked data. > > Would be glad to get a hint. > > Milad > > ------------------------------------------------------------------------ ------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
