[vtkusers] Re: vtkImageActor and vtkImageReslice

Pankaj Daga deluded.soul at gmail.com
Thu Oct 12 11:05:41 EDT 2006


Hi again,

By the way, I already have called the SetUserMatrix on the image actor to
match that of my reslicer but it really does not show the whole image...

So, when I set the slice then I do the following:

case AXIAL:
        sliceMan->SetResliceAxesOrigin(0, 0, origin[2] + num * spacing[2]);
         imageAct->SetUserMatrix(sliceMan->GetResliceAxes());
         break;

Bizarre though...only see a small part of the image. I guess there is
something else missing here... Any pointers, experts?

Best regards,
Pankaj


On 10/12/06, Pankaj Daga <deluded.soul at gmail.com> wrote:
>
> Hiya,
>
> I have a vtkImageReslice that is giving me 2D slices. The slices are shown
> correctly using a simple 2D actor but when I try to visualize it using
> vtkImageActor I only see like a small part of the image (a bit of the lower
> left corner).
>
> Just for test I viewed it using a vtkActor2D and everything seems ok and
> it shows correctly at the correct position on the screen and with the
> correct spacing etc. I would rather not change much there.... What is the
> best way to get it to work with a vtkImageActor.
>
> Thanks and best regards,
>
> Pankaj
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061012/667ab0cc/attachment.htm>


More information about the vtkusers mailing list