[vtkusers] setViewport lost

Pan, Tony C (Research) tpan at crd.ge.com
Wed Oct 9 12:19:14 EDT 2002

A little more information:
Viewport is an instance variable of vtkViewport, and the methods SetViewport and GetViewport are
generated via macros, so if you do a grep for SetViewport in the .h file, you won't find it.  You
will find, instead, vtkSetVector4Macro(Viewport,float) and vtkGetVectorMacro(Viewport,float,4).  Most
of vtk's instance variables have accessor functions that are generated using macros.


-----Original Message-----
From: Luis Ruiz [mailto:luis_fer at inicia.es]
Sent: Wednesday, October 09, 2002 12:06 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] setViewport lost


We just started development using vtk. Today we wanted to use two renderers
in the same window. After reading some doc we found that we should use setViewport()
in the renderer to share the rendering window. But when we tried that, the
compiler gave an error "no match function to call ..." It's not in any vtk
header we have. And even in the man pages though is documented, it is not
in the interface stored by doxygen (vtkViewport.h) in the same page.

We have debian woody installed with 3.2-10 vtk. Doing a :

grep -i setViewport *

in the headers dir doesn't find anything but a meaningless SetViewport in
another class.

Could anybody help us with this? Was that method removed for any reason?

Thanks in advance.


This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:

More information about the vtkusers mailing list