issue with interactor in viewport

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

issue with interactor in viewport

Audrey Chan

I currently have two viewports (a left and right viewport) but the interactorstlye for the right viewport isn't working correctly. It should display the labels of the different slices of the pie chart on hover, but the hovering only works in the left viewport. It looks like the "position" of the interactor is off. I attached a screenshot of this issue (this is when my mouse is hovering over the left viewport).


# Set up a 2D scene, add a chart to it

view = vtk.vtkContextView()

chart = vtk.vtkChartPie()


# Add renderer to render window and set viewport



view.GetRenderer().SetViewport(viewport2[0], viewport2[1], viewport2[2], viewport2[3])


# Allow interactive piechart

style = vtk.vtkContextInteractorStyle()



Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:

Screen Shot 2017-04-21 at 10.58.02 AM.png (86K) Download Attachment