<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [vtkusers] border for viewports</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi Meisam,<BR>
<BR>
You can make a border of sorts by doing this:<BR>
<BR>
ren1 = vtkRenderer()<BR>
ren1.SetBackground(1.0, 1.0, 1.0)<BR>
ren1.SetViewport(0, 0, 0.499, 1.0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
<BR>
ren3 = vtkRenderer()<BR>
ren3.SetBackground(0.0, 0.0, 0.0)<BR>
ren3.SetViewport(0.499, 0, 0.501, 1)<BR>
<BR>
ren2 = vtkRenderer()<BR>
ren2.SetBackground(1.0, 1.0, 1.0)<BR>
ren2.SetViewport(0.501, 0, 1, 1)<BR>
<BR>
renWin = vtkRenderWindow()<BR>
renWin.SetSize(1000,500)<BR>
renWin.AddRenderer(ren1)<BR>
renWin.AddRenderer(ren2)<BR>
renWin.AddRenderer(ren3)<BR>
<BR>
Should work vertically too.<BR>
<BR>
Henrik<BR>
<BR>
-----Original Message-----<BR>
From: vtkusers-bounces+henrik.westerberg=crg.es@vtk.org on behalf of Meisam Aliroteh<BR>
Sent: Tue 8/21/2007 11:00 PM<BR>
To: vtkusers@vtk.org<BR>
Subject: [vtkusers] border for viewports<BR>
<BR>
Hi,<BR>
<BR>
I have a render window that is vertically split into 2 pieces and each piece<BR>
has its own renderer. Both of these renderers must have a white background<BR>
so it is difficult to visualize where one viewport ends and the other<BR>
begins. I want to know if there is a way in vtk to show borders (like a<BR>
rectangle) around each renderer?<BR>
<BR>
thanks<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>