[vtk-developers] Multiple Renderers

Dean Inglis dean.inglis at on.aibn.com
Wed May 1 12:22:38 EDT 2002


A little more on this multiple renderer/widget placement thing:

> e.g., from vtkBoxWidget:
>   this->CurrentRenderer =
>     this->Interactor->FindPokedRenderer(this->Interactor->
>   GetLastEventPosition()[0],
>   this->Interactor->GetLastEventPosition()[1]);

>   Doesn't this lead to ambiguity? 
 
> Sorry, I don't understand your problem, Dean. 
> Where is the ambiguity ? What information is lacking ? 
 
>If a widget is activated via a public method call: say On or Enable 
>or for that matter by a key press 'i', then the widget will be 
>associated with the renderer that contained the LastEventPosition 
>according to the interactor.  Doesn't this lead to ambiguity over 
>where the widget will be rendered in a multiple renderer pipeline?

>Oh I see what you mean.
>Yes, it looks like a pb, it should be at least EventPosition, not 
>LastEventPosition (I just changed LastPos by LastEventPosition). But
>even in that case, that might be a problem, since a key event does 
>not provide a mouse position. Please report this to Will (he will be 
>back tomorrow).
>
>Sebastien Barre 

It turns out that the widget will associate itself with the last renderer 
added to a render window.  This still seems a bit inflexible but it works,
so I'm not sure if it really is a pb.

Dean





More information about the vtk-developers mailing list