[vtkusers] Translate from tcl to c++
Andy Cedilnik
andy.cedilnik at kitware.com
Tue Oct 29 11:01:35 EST 2002
Hi Chunyan,
The first couple of lines are easy:
ren1->GetActiveCamera()->Azimuth(20);
vtkCamera* cam = ren1->GetActiveCamera();
cam->Zoom(1.4);
The observer one is unnecessary anyway.
Andy
On Tue, 2002-10-29 at 10:29, Chunyan Jiang wrote:
> I want to test the program imageWarp.tcl. However, I want to use MFC+vtk.
> Who can help me to translate the following sentences to c++ mode?
>
> [ren1 GetActiveCamera] Azimuth 20
> [ren1 GetActiveCamera] Elevation 30
>
> iren AddObserver UserEvent {wm deiconify .vtkInteract}
> set cam1 [ren1 GetActiveCamera]
> $cam1 Zoom 1.4
More information about the vtkusers
mailing list