[vtkusers] Re: vtkTransform...almost there!
David Gobbi
dgobbi at atamai.com
Mon Sep 25 17:19:57 EDT 2006
Hi Anja,
If you can send me your code in an easy-to-compile form (i.e. as a tar
or zip file with a CMakeLists.txt) then I can look it over and give you
some advice.
- David
Anja Ende wrote:
> Hi everyone,
>
> Just wondering if this has got something to do with the extents and if
> there has to be some manual setting that has to be done. The reslicer
> is working in 2D mode.
>
> One curious thing is that there are different results when auro crop
> output is turned on the reslicer. For example, if you rotate the slice
> along the normal, it rotates differently, if you the auto crop output
> set on than if you have it off... Struggling to understand what is
> actually happening here...
>
> Again, if someone could help me a bit here, I would be really
> grateful. I can send some code if someone could help me diagnose what
> is happening here. Completely lost here...
>
> Thanks,
> Anja
>
>
>
> On 25/09/06, *Anja Ende* <anja.ende at googlemail.com
> <mailto:anja.ende at googlemail.com>> wrote:
>
> Hi everyone,
>
> I was getting really frustrated with getting the vtkTransform this
> weekend. I finally have it working properly (almost!) with the
> oblique slicing and the subsequent transformations.
>
> The thread is here:
> http://public.kitware.com/pipermail/vtkusers/2006-September/087168.html
> <http://public.kitware.com/pipermail/vtkusers/2006-September/087168.html>
>
> The only issue that remains is that of adjusting for the change in
> the slice position in the display.
>
> So, basically this is what is happening:
>
> I have a display that shows the 3 orthogonal slice initially. Then
> I rotate the slices about a picked point in the Z axes. Now, the
> size of the slice would depend on where the rotation point lies,
> of course. I notice that the slice gets translated on the screen
> display and the amount of displacement depends on the rotation
> center.
>
> Now, when I try to calculate the transformed point on the screen,
> I need to know the position of the 2D actor. However, even after
> the displacement the actor returns the same position.
>
> Basically, after the rotation I need to update some onscreen
> markers and these markers are not been shown a bit off as the
> slice keeps jumping on the screen.
>
> This happens whether I have set the AutoCropOutputOn() or Off() on
> the vtkImageReslice.
>
> If anyone has any ideas of what is happening, I would be really
> grateful. This problem has me stumped for days now...
>
> Thanks and best,
>
> Anja
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list