[vtkusers] problems with vtkCamera
John Drescher
drescherjm at gmail.com
Tue Mar 6 10:35:46 EST 2012
On Tue, Mar 6, 2012 at 9:49 AM, Brenno Ribeiro <brennobr at gmail.com> wrote:
> I'm trying so see a dicom image using vtkCamera but i'm having the following
> problems:
> - I needed to correct the position of the image that was showed by the
> camera rotating from the axes x and y. To do it i used "cam->SetViewUp(0,
> -1, 0);" and "cam->Azimuth(180);" and i got my goal but the problem is that
> i only can see the right form after an interaction from the window from the
> image or clicking in it or going to other window and go back to the image.
> Why it?
> - To correct the colors of the image i used the RescaleFilterType. It works
> very well without the camera but if i use the camera the filter it doesn't
> work and i have only some lines that are forming the image. Why?
>
You may have to do make your viewer without using vtkImageViewer.
Although I would wait for others replies. I do not use vtkImageViewer
in my viewers. I create the vtkRenderWindow and other vtk objects
(vtkInteractor, vtkInteractorStyle ...) myself.
John
More information about the vtkusers
mailing list