[vtkusers] problem with fitting image into viewport

Thomas Lambertz thomas at hexerei-software.de
Mon May 29 13:52:28 EDT 2006


Hi all,

what went wront with the following code ?

    renWin->AddRenderer(sliceRenderer[slice]);

        vtkCamera *camera = vtkCamera::New();
        camera->ParallelProjectionOn();
        camera->SetParallelScale(256);
        sliceRenderer[slice]->InteractiveOff();
        sliceRenderer[slice]->SetActiveCamera(camera);

    renWin->Render();

I got the image on the screen - but no scaling whatever value given for 
SetParallelScale (the block in the middle can simply be removed without 
an effect). Seemes i missed something - but i have no idea what. Any 
suggestions ?

Kind regards,
Tom
   



More information about the vtkusers mailing list