[vtkusers] extend vtk

Clinton Stimpson clinton at elemtech.com
Sat Sep 25 12:08:02 EDT 2004


> ------------------------------
>
> Message: 3
> Date: Fri, 24 Sep 2004 18:56:41 +0200
> From: francesco caruso <guernika_devel at yahoo.it>
> Subject: [vtkusers] extend vtk
> To: vtkusers at vtk.org
> Message-ID: <415451C9.8020405 at yahoo.it>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Hello
>
> I'd like to add a method that returns the extents ( xmin,xmax,ymin,ymax)
> in display coordinate,
> of the region occupied from an actor in a window
>
> is it a silly idea?
> and if not, can you give me any hints?
>

You can use vtkViewport's functions  SetWorldPoint, WorldToDisplay,
GetDisplayPoint to project your actor's points in world space into screen
space.

Clint

> hello
> francesco
>
> PS:
> the routine to get the bounds has been implemented
> and works
>




More information about the vtkusers mailing list