[vtkusers] Acess functions in custom interactor class
M. Jordan
mjordan at live.at
Thu Nov 24 06:54:29 EST 2016
I have a Qt GUI called MainWindow.
I am rendering some 3D objects in the constructor of the MainWindow.
Moreover I declared a custom class of the vtkInteractorStyleTrackballCamera in "MainWindow.cpp" like in this example:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents
Now I would like to call a function from the MainWindow class in the function "OnLeftButtonDown()" from my custom class of the Interactor.
I tried to inherit the MainWindow class to the custom Interactor class like this:
class customMouseInteractorStyle : public vtkInteractorStyleTrackballCamera, MainWindow
But this doesn't work.
How can I access the functions of the MainWindow there?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161124/a9f4f7f6/attachment.html>
More information about the vtkusers
mailing list