[vtkusers] Re: vtkImageActor set position

Pankaj Daga deluded.soul at gmail.com
Tue Oct 3 06:33:05 EDT 2006


The other actor I have is a 2D actor and I think it is impossible to overlay
a Prop3D based object over a 2D actor.

Please corrent me if I am wrong.

Thanks

On 10/3/06, Pankaj Daga <deluded.soul at gmail.com> wrote:
>
> Hello again,
>
> So I have tried hard to get this vtkImageActor to show on the screen. I
> have another image and I am trying to draw on top of that image:
>
> So, I have the following:
>
> // overlayImage is a PNG image
>
> actor = vtkImageActor::New();
> actor->SetInput(overlayImage->GetOutput());
> actor->PickableOn();
> actor->SetDisplayExtent(0, im_width, 0, in_height, 0, 0);
> actor->SetPosition(0, 0, 0);
>
> Now what happens is that the whole screen goes black! My image is only
> 200, 200 and I want it to show over another image. How do I get it working?
>
> Thanks!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061003/3ec99c5c/attachment.htm>


More information about the vtkusers mailing list