Hi Xavier, I think this should be possible without modifying the mapper or geometry classes, just by setting/rotating the display geometry. This information is used by the image mapper for doing the actual reslice with VTK. IIL4MITK is just used for the rendering of the final 2d image.
Unfortunately I cannot provide you with example code right now since we're in the last preparations for a 0.14 release. Regards Marco Am 21.12.2009 12:05, schrieb Xavier Planes: > Hi, > > We need to roll the camera in the 2D views (for example, sagital > view). We've taken a look at the code and for 2D views MITK uses their own > library (IIL4MITK) and mappers (mitkImageMapper2D). One option is to add the > call to glRotate in the mapper. > > However, we think it could be better to add this functionality in > the class mitk::SlicedGeometry3D because the extracted slice will be built > only once and the mapper doesn't need to rotate it every time. > > Inside the function SlicedGeometry3D::InitializeEvenlySpaced( ) > there's some code to flip the image. However, it's difficult for me to see > how to rotate the image producing a "camera roll" effect. Could you provide > me some advices? > > Thanks! > Xavi > > P.D.: What's the advantage of using IIL4MITK library instead of VTK like for > the 3D views? > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
