GetWindowID of the vtkRenderWindow
Dr. Jasjit Suri
jsuri at enya.picker.com
Thu Oct 7 07:06:34 EDT 1999
Tian-Qing Ye wrote:
> You can try to use viewer->GetActor2D() to get the Actor
> and then add the Actor(AddActor2D) to your main Renderer.
> Something like:
> vtkActor2D *img2d = viewer->GetActor2D();
> renderer->AddActor2D(img2d);
>
> Good luck
>
> Tianqing
>
> "Dr. Jasjit Suri" wrote:
> >
> > Hi,
> >
> > I have a vtkRenderWindow as shown below. This
> > is the main window.
> >
> > I also have a ImageViewer ...
> >
> > I want the contents of the Image Viewer to go
> > on the main Window , so i use Get method of vtkRenderWindow
> > to get the ID and Set method of Image Viewer to set the ID
> > as shown below...
> >
> > I tried 5 combinations (all comented)
> > and none works.
> >
> > It gives me the error:
> >
> > Error in startup script: Object named: viewer, could not find requested
> > method: SetWindowId
> > or the method was called with incorrect arguments.
> >
> > while executing
> > "viewer SetWindowId [ renWin4 GetGenericWindowId ]"
> > (file "t3.tcl" line 274)
> >
> > WHAT IS THE REASON, DOES VKT SUPPORTS THESE METHODS ?
> > They are listed in MAN PAGES...
> >
> > thanks very much.
> >
> > jas
> > ---------------------------------------------------
> > vtkRenderer ren4
> > vtkRenderWindow renWin4
> > renWin4 AddRenderer ren4
> > vtkRenderWindowInteractor iren
> > iren SetRenderWindow renWin4
> >
> > ren4 SetBackground 0 0 0
> > renWin4 SetSize 256 256
> > iren Initialize
> >
> > vtkImageViewer viewer
> > viewer SetInput [ clipB GetOutput]
> > viewer SetColorWindow 191
> > viewer SetColorLevel 71
> >
> > viewer SetWindowId [ renWin4 GetGenericWindowId ]
> > #viewer SetDisplayId [ renWin4 GetGenericWindowId ]
> > #viewer SetWindowId [ renWin4 GetGenericParentId ]
> > #viewer SetDisplayId [ renWin4 GetGenericDisplayId ]
> > #viewer SetDisplayId [ renWin4 GetGenericWindowId ]
> > ---------------------------------------------
> >
> > -----------------------------------------------------------------------------
> > This is the private VTK discussion list. Please keep messages on-topic.
> > Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> > <majordomo at gsao.med.ge.com>. For help, send message body containing
> > "info vtkusers" to the same address. Live long and prosper.
> > -----------------------------------------------------------------------------
>
> -----------------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>. For help, send message body containing
> "info vtkusers" to the same address. Live long and prosper.
> -----------------------------------------------------------------------------
Thanks very much Tianqing.
..jas..
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list