Hi Hila,

I assume you want to rotate the plane of the render window to a specific 
position.
We are currently working on a convenient solution. Until then you can perform 
the rotation as follows.

Get the currentWorldGeometry2D from the renderer (Note that it is for only one 
slice in the slice-stack). As currentWorldGeometry2D is a const PlaneGeometry* 
you need to const_cast it and after that you can rotate it by defining a 
RotationOperation.

  mitk::RotationOperation* op = new mitk::RotationOperation(mitk::OpROTATE, 
pointOfRotation, vectorOfRotation, 90.0);
  currentWorldGeometry->ExecuteOperation(op);
  delete op;

Where pointOfRotation is the center of the plane and pointOfRotation is the one 
of the axis vectors. You have to figure out which axis vector and degree to use 
to get the desired rotation.

After that you might call 
mitk::RenderingManager::GetInstance()->RequestUpdateAll() to render the changes 
to the geometry.

So far this is the only possible solution without any changes to existing code, 
I think.


Regards

Tobi

On 20 Jul 2012, at 12:38, Hiller, Hila wrote:


>Hi all Mitk users,

>It might be a question that someone else asked before, but I need this feature 
>as well.
>I have a line surface and I want to pass through it's perpendicular plane (to 
>observe it's neighbors on an image).
>Thus, I want to change the axis of Mitk (the visualization of the software) 
>according to the line's normal.

>I understood that I might get the geometry of the surface and then change the 
>axis of the image. but how exactly I do this?
>please send me a code example.

>please help me out with that, I'm quite lost...

>Hila
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to