FW: [vtk-developers] vtkRect2DWidget & window resize

John Platt jcplatt at lineone.net
Mon Apr 18 17:44:58 EDT 2005



-----Original Message-----
From: John Platt [mailto:jcplatt at lineone.net] 
Sent: 18 April 2005 18:11
To: 'Mathieu Malaterre'
Subject: RE: [vtk-developers] vtkRect2DWidget & window resize

Hi Mathieu,

Attached is a simple test with a single quadratic quad. The points
should be labeled 1 - 8.

Thanks for your interest.

John.

-----Original Message-----
From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com] 
Sent: 18 April 2005 13:42
To: John Platt
Subject: Re: [vtk-developers] vtkRect2DWidget & window resize

John,

	By any chance do you have a small example to test the widget.

Thanks
Mathieu

John Platt wrote:
> Hi,
> 
>  
> 
> Attached is a 2D widget for interactively changing a rectangular 
> selection in a viewport. I am currently using it with 
> vtkSelectVisiblePoints to specify a region for labelling. I would like

> to submit this code but have a problem handling resize of the render
window.
> 
>  
> 
> The classes follow the same model as vtkScalarBarActor & 
> vtkScalarBarWidget. Changes in the rectangle actor due to mouse 
> interaction events are caught by the widget but I can't find an event
to 
> observe for resizing the window. The present solution is for 
> vtkRect2DActor::SizeRect2D() to send a Modified event to the widget 
> which then invokes a Modified event for observers of the widget. The 
> problem is that any interaction with the widget now fires 2 events, an

> Interaction event and a Modified event. I would be grateful for 
> suggestions on alternative solutions.
> 
>  
> 
> There is also a minor problem with the cursor shape changing as it 
> passes over the rectangle when interacting with the camera (this is
also 
> a feature of vtkScalarBarWidget).
> 
>  
> 
> I have also noticed that the bottom right pixel of the rectangle frame

> is always missing. I am hoping this is a problem with my graphics
card.
> 
>  
> 
> Any other comments are also welcomed.
> 
>  
> 
> John.
> 
>  
> 
>  
> 
> 
>
------------------------------------------------------------------------
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkRect2D_Test.cpp
Type: application/octet-stream
Size: 4859 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20050418/de62162a/attachment-0001.obj>


More information about the vtk-developers mailing list