[vtkusers] vtkCamera::SetViewPlaneNormal how to replace

Jan Ehrhardt ehrhardt at medinf.mu-luebeck.de
Tue Dec 4 04:21:05 EST 2001


This is a repost:

Jan Ehrhardt wrote:
> 
> 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
> -----------------------

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



More information about the vtkusers mailing list