MantisBT - VTK
View Issue Details
0009399VTK(No Category)public2009-08-12 01:362016-08-12 09:55
matt99 
Kitware Robot 
normalmajoralways
closedmoved 
 
 
0009399: can't catch mouse button release events
I attached very simple dialog based MFC application.
This simple application doesn't work properly with vtk 5.4.2.

I added observer :
m_pvtkMFCWindow->GetInteractor()->AddObserver(vtkCommand::RightButtonReleaseEvent, m_pvtkCallback);

And it's callback function is also simple :
class vtkCallback : public vtkCommand
{
public:
        static vtkCallback *New()
        { return new vtkCallback; }

        vtkCallback::vtkCallback() {};
        vtkCallback::~vtkCallback() {};

        virtual void Execute(vtkObject *caller, unsigned long, void*)
        {
                AfxMessageBox("callback");
        }
};

But when I click right mouse button, message box is not shown.
I could see the message when I double-click my right mouse button.
Also it works when I press left button, and press right button, now release left button and finally release right button.

All release events of left, middle, right button don't work, and this application works well with vtk 5.0.4.
No tags attached.
zip testVTK.zip (3,420,531) 2009-08-12 01:36
https://www.vtk.org/Bug/file/7400/testVTK.zip
Issue History
2009-08-12 01:36matt99New Issue
2009-08-12 01:36matt99File Added: testVTK.zip
2009-10-23 04:25matt99Note Added: 0018200
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037095
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0018200)
matt99   
2009-10-23 04:25   
//vtkInteractorStyleJoystickCamera *style = vtkInteractorStyleJoystickCamera::New(); // doesn't work
//vtkInteractorStyleTrackballCamera *style = vtkInteractorStyleTrackballCamera::New(); // doesn't work
vtkInteractorStyleUser *style = vtkInteractorStyleUser::New(); // works
m_pvtkMFCWindow->GetInteractor()->SetInteractorStyle(style);

I found that I can catch the release events when I set up vtkInteractorStyleUser .
(0037095)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.