[vtkusers] Question about vtkCamera

Farshid Dehmeshki farshid.dehmeshki at medicsight.com
Mon Jan 13 11:26:19 EST 2003


add:
 RenWin->Render();
after last line
*******************************
Farshid  Dehmeshki
Software Engineer 
Medicsight Plc
46 Berkeley Square
London
W1J 5AT
Tel : 020 7598 4074
Fax: 020 7598 4071
Email : farshid.dehmeshki at medicsight.com
Web Site : www.medicsight.com
*******************************
 
The contents of this e-mail are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone 
else. If you received it in error please notify us immediately and then destroy it. Further, we make every effort to keep our network free from viruses. However, you do need to verify that this email and any attachments are free of viruses as we can take no responsibility for any computer virus which might be transferred by way of this e-mail.



-----Original Message-----
From: Chunyan Jiang [mailto:jiang at TI.FhG.DE]
Sent: Monday, January 13, 2003 4:19 PM
To: VTK-User
Subject: [vtkusers] Question about vtkCamera


Hello,
I define my vtkCamera and set it in vtkRenderer as the following code:
  Camera = vtkCamera::New();
  Camera->SetPosition(0,0,-20  );
  Camera->SetFocalPoint( 0,0,0 );

  ren1=vtkRenderer::New();
  renWin->AddRenderer(ren1);
  ren1->SetActiveCamera(Camera);

It is very strange that when I render it, it does not display. Only when I
click the mouse button, it will display. Because I have set
vtkRenderWindowInteractor, the window will be updated when I click mouse
button. Why does it not display in the beginning? How can I do? Please give
me some hints. Thank you very much!


Chunyan

***********************************************************************
Chunyan Jiang, Dipl.-Inform.,
Institut for Telematic
Bahnhofstrasse 30-32, D-54292 Trier, Germany
Phone: (+49) (0)651-97551-34
Fax: (+49) (0)651-97551-12
***********************************************************************

_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

_____________________________________________________________________
This e-mail has been scanned for viruses by the WorldCom Internet Managed Scanning Service - powered by MessageLabs. For further information visit http://www.worldcom.com



More information about the vtkusers mailing list