[vtkusers] vtkCamera::SetViewPlaneNormal how to replace

Jan Ehrhardt ehrhardt at medinf.mu-luebeck.de
Wed Nov 28 06:32:57 EST 2001


Hello,

I have some methods to switch the directions,
from where I see my objects:

ViewFront:
  camera->SetViewUp(m_ViewUp);
  camera->SetViewPlaneNormal(m_ViewNormal);
  m_Renderer->ResetCamera();

ViewBack:
  for(int i=0;i<3;i++) {
    view_normal[i] = -1 * m_ViewNormal[i];
  }
  camera->SetViewUp(m_ViewUp);
  camera->SetViewPlaneNormal(view_normal);
  m_Renderer->ResetCamera();

ViewLeft
  vtkMath::Cross(m_ViewNormal,m_ViewUp,view_normal);
  camera->SetViewUp(m_ViewUp);
  camera->SetViewPlaneNormal(view_normal);
  m_Renderer->ResetCamera();

and so on...

But SetViewPlaneNormal() no longer work and I don't know
how to replace the old code.

Jan
-- 
-----------------------
Jan Ehrhardt
mailto:ehrhardt at medinf.mu-luebeck.de
-----------------------



More information about the vtkusers mailing list