<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.6001.18099" name=GENERATOR></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face=Arial>Xiaofeng and all,</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>I am sorry that&nbsp;the question I raised was not clear. 
Basically what I wanted to&nbsp;achieve was to reset the camera's original 
position. The methods vtkCamera::Azimuth()&nbsp;,&nbsp;vtkCamera::Elevation() 
and vtkCamera::Roll() won't do the job unless I keep tracking how much the 
camera has&nbsp;rotated about the three axes.&nbsp;For example, the following 
code results a roll angle 90, not 0.</FONT></DIV>
<DIV><FONT face=Arial>camera-&gt;Roll(30);</FONT></DIV>
<DIV><FONT face=Arial>camera-&gt;Roll(60);</FONT></DIV>
<DIV><FONT face=Arial>camera-&gt;Roll(0);</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>However, the following code does result in a roll angle 
0.</FONT></DIV>
<DIV><FONT face=Arial>camera-&gt;Roll(30);</FONT></DIV>
<DIV><FONT face=Arial>camera-&gt;Roll(60);</FONT></DIV>
<DIV><FONT face=Arial>camera-&gt;SetRoll(0);</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>My question was why there is no similar SetAzimuth() and 
SetElevation() methods in the class vtkCamera() and how to achieve my goal using 
other methods easily.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Thank you.</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>Chen</FONT></DIV>
<DIV><FONT face=Arial>&nbsp;&nbsp;</FONT></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=xf10036@hotmail.com href="mailto:xf10036@hotmail.com">Xiaofeng Z</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=huameichen0523@gmail.com 
  href="mailto:huameichen0523@gmail.com">Hua-Mei Chen</A> ; <A 
  title=vtkusers@vtk.org href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 30, 2008 11:07 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [vtkusers] How to set a 
  camera's azimuth and elevation?</DIV>
  <DIV><BR></DIV>
  <TABLE class=memname>
    <TBODY>
    <TR>
      <TD class=memname>Azimuth:<BR>&nbsp;<BR>void vtkamera::Azimuth <BR></TD>
      <TD>(</TD>
      <TD class=paramtype>double&nbsp;</TD>
      <TD class=paramname><EM>angle</EM> </TD>
      <TD>&nbsp;)<BR>&nbsp;<BR></TD>
      <TD width="100%"></TD></TR></TBODY></TABLE>
  <DIV class=memdoc>Rotate the camera about the view up vector centered at the 
  focal point. Note that the view up vector is not necessarily perpendicular to 
  the direction of projection. <BR><BR>Xiaofeng Zhao<BR><A 
  href="http://www.xzing.org" target=_blank>http://www.xzing.org</A> <BR>errare 
  humanum est<BR><BR><BR>
  <HR>
  From: <A 
  href="mailto:huameichen0523@gmail.com">huameichen0523@gmail.com</A><BR>To: <A 
  href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A><BR>Date: Tue, 30 Sep 2008 
  14:46:29 -0500<BR>Subject: [vtkusers] How to set a camera's azimuth and 
  elevation?<BR><BR>
  <META content="Microsoft SafeHTML" name=Generator>
  <STYLE>
</STYLE>
  <BR></DIV>
  <DIV><FONT face=Arial size=2>
  <DIV>Hi all,</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I am wondering how to set a 
  camera's azimuth and elevation. There is a SetRoll() method in vtkCamera to 
  set the roll of a camera. However, no similar methods exist for setting the 
  azimuth and elevation. Does anyone know why? And how do I achieve my goal 
  using other methods? Thank you.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Chen</FONT></DIV></FONT></DIV>
  <DIV>&nbsp;</DIV><BR>
  <HR>
  Stay up to date on your PC, the Web, and your mobile phone with Windows Live. 
  <A href="http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/" 
  target=_new>See Now</A> </BLOCKQUOTE></BODY></HTML>