View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009399 | VTK | (No Category) | public | 2009-08-12 01:36 | 2016-08-12 09:55 | ||||
Reporter | matt99 | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009399: can't catch mouse button release events | ||||||||
Description | 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. | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | testVTK.zip [^] (3,420,531 bytes) 2009-08-12 01:36 | ||||||||
Relationships | |
Relationships |
Notes | |
(0018200) matt99 (reporter) 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 (administrator) 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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-08-12 01:36 | matt99 | New Issue | |
2009-08-12 01:36 | matt99 | File Added: testVTK.zip | |
2009-10-23 04:25 | matt99 | Note Added: 0018200 | |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
2016-08-12 09:55 | Kitware Robot | Note Added: 0037095 | |
2016-08-12 09:55 | Kitware Robot | Status | expired => closed |
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved |
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |