[vtkusers] Re: vtkCamera to follow vtkActor

Paul Tait paul at opes.com.au
Thu Feb 24 21:37:52 EST 2005


Closer.... I'm not specifically interested in "one" of "one or two" the
actors, just the region in the centre of the screen

-----Original Message-----
From: Goodwin Lawlor [mailto:goodwin.lawlor at ucd.ie] 
Sent: Friday, 25 February 2005 9:45 AM
To: Paul Tait
Subject: Re: [vtkusers] Re: vtkCamera to follow vtkActor


In that case you'll have to set up your camera manually. You need to set
the camera focalpoint, position and viewup

To keep focused on a particular actor, try something like:

ren->GetActiveCamera()->SetFocalPoint(actor->GetCenter());


----- Original Message ----- 
From: "Paul Tait" <paul at opes.com.au>
To: "'Goodwin Lawlor'" <goodwin.lawlor at ucd.ie>
Sent: Friday, February 25, 2005 12:50 AM
Subject: RE: [vtkusers] Re: vtkCamera to follow vtkActor


That’s not excactly what I had in mind.

What I want to happen is this.

As the actors move further and further apart I will zoom in on one or
two. The next time I magnify the vertical distance I want these one or
two actors to remain in the centre of the screen and not move off the
top or bottom. I basically want to be able to say to vtk is this is now
the area of interest stay there even when I move the actors.

Paul


-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of Goodwin Lawlor
Sent: Thursday, 24 February 2005 5:12 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Re: vtkCamera to follow vtkActor


Hi Paul,

Try the vtkRenderer::ResetCamera() method. You might also need
vtkRenderer::ResetCameraClippingRange() method

hth

Goodwin

"Paul Tait" <paul at opes.com.au> wrote in message
news:011b01c51a43$7cb95960$af0aa8c0 at DEEPTHROAT...
> Hi
>
> I have several actors in a scene and am using AddPosition(0, 0, n) to 
> move them interactively up and down vertically. This means actors move

> off the bottom of the screen so I have to use the mouse middlebutton 
> to follow them. How can I program vtk so that when I move my actors 
> the actor in the centre of the screen (focalpoint?) stays centred ?
>
> Thanks Paul
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe: 
> http://www.vtk.org/mailman/listinfo/vtkusers
>



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

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005
 




More information about the vtkusers mailing list