View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009399VTK(No Category)public2009-08-12 01:362016-08-12 09:55
Reportermatt99 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009399: can't catch mouse button release events
DescriptionI 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.
TagsNo tags attached.
Project
Type
Attached Fileszip file icon testVTK.zip [^] (3,420,531 bytes) 2009-08-12 01:36

 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.

 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


Copyright © 2000 - 2018 MantisBT Team