No subject


Thu Sep 12 11:01:03 EDT 2013


> In most interactor styles, both ways lead to some piece of code that will
> initially try to find the *renderer* in which the event occured,
> by calling
> vtkInteractorStyle::FindPokedRenderer(x, y) (or
> FindPokedCamera(), that I'm
> about to remove also, so stick to the first one :). This will set the
> internal attribute CurrentRenderer. I guess you should check for
> it, and if
> it is not set, then there is probably a problem in the style
> (depending on
> its state).

So, would it be sensible to add a method to the vtkImagePlaneWidget, and
possibly other widgets, called SetRenderer() so that the above pipeline is
easier to implement?  The CurrentRenderer could then be checked to see if it
is the renderer that contains the widget.

Dean







More information about the vtk-developers mailing list