<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>To do this, you will use the vtkCommand class (or 
vtkCallbackCommand).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When you make an interaction in one frame, some 
event are sent by vtk. </FONT></DIV>
<DIV><FONT face=Arial size=2>And when this event is sent, a callback function 
(when using vtkCallbackCommand)</FONT></DIV>
<DIV><FONT face=Arial size=2>or class (derived from vtkCommand) is called 
corresponding to sended event.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When seeing the documentation on the vtkCommand 
class, you have the list of </FONT></DIV>
<DIV><FONT face=Arial size=2>all event that occur in vtk.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV><FONT face=Arial size=2>Benoit</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=rilinca@cg.tuwien.ac.at href="mailto:rilinca@cg.tuwien.ac.at">Ilinca, 
  Radu</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 29, 2005 8:45 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] 2 rendering windows 
  same camera</DIV>
  <DIV><BR></DIV>
  <DIV class=moz-text-flowed lang=x-western 
  style="FONT-SIZE: 13px; FONT-FAMILY: -moz-fixed">Dear List: <BR><BR>I have 2 
  rendering windows controlled with the same camera. In this way, whenver I 
  interact with the first window, the similar effect can be observed in the 2nd 
  windows. however, i have to click first on the 2nd window in order to see the 
  results (refresh) which is not what I expected. I want the results to be 
  observable SIMULTANEOUSLY in the 2nd window. So, in real-time. Have any ideas 
  please ? <BR>Here is my relevant source code: 
  <BR><BR>renderer-&gt;SetBackground(0.0, 0.0, 0.0); 
  <BR>renderer-&gt;AddVolume(volume); 
  <BR>renderer-&gt;GetActiveCamera()-&gt;Azimuth(20.0); 
  <BR>renderer-&gt;GetActiveCamera()-&gt;Dolly(1.60); 
  <BR>renderer-&gt;ResetCameraClippingRange(); 
  <BR>renwin-&gt;AddRenderer(renderer); <BR>iren-&gt;SetRenderWindow(renwin); 
  <BR><BR><BR>vtkLight *pLight = vtkLight::New(); 
  <BR>renderer2-&gt;SetActiveCamera(renderer-&gt;GetActiveCamera()); 
  <BR>pLight-&gt;SetPosition(renderer-&gt;GetActiveCamera()-&gt;GetPosition()); 
  <BR>renderer-&gt;AddLight(pLight); <BR>renderer2-&gt;AddLight(pLight); 
  <BR><BR>renderer2-&gt;SetBackground(0.0, 0.0, 0.0); 
  <BR>renderer2-&gt;AddVolume(volume); 
  <BR>renderer2-&gt;ResetCameraClippingRange(); 
  <BR>renwin2-&gt;AddRenderer(renderer2); 
  <BR>iren2-&gt;SetRenderWindow(renwin2); <BR><BR>Thanks, <BR>Radu. 
  <BR><BR><BR></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>This is the private 
  VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: 
  http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to 
  subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>