Page MenuHomePhabricator

ChangeRequest.txt

Authored By
kast
Aug 20 2009, 2:32 PM
Size
1 KB
Referenced Files
None
Subscribers
None

ChangeRequest.txt

Summary of bug description
* actual behaviour
KeyEvent is not derived from mitkEvent so information (e.g. position on screen) gets lost along the event mechanism
* expected behaviour
KeyEvent is derived from mitkEvent and we can use all information
Cause of the bug
In mitkEventTypedefs.h the mitkKeyEvent and its superclass mitkBaseEvent is defined. Other interaction events are derived from mitkEvent.
Proposed solution
Dissolve mitkEventTypedefs.h and create a new class mitkKeyEvent which is derived from mitkEvent. Adapt the KeyPressEvent() method in mitkBaseRenderer. Adapt the QmitkEventAdapter class for filling the KeyEvents with the right informations out of the homologous Qt event. Due to the missing mitkEventTypedefs class replace it in the effected classes (mitkCameraController, ) with the includes for the needed event classes. The only typedef in this class (typedef DisplayPositionEvent MouseEvent) should move inside of the DisplayPositionEvent class.
Adapt the mitkVtkInteractorCameraController and QmitkRenderWindow class with the right calls to the KeyEvent instance.
Affected classes
mitkEventTypedefs.h
mitkBaseRenderer
QmitkEventAdapter
mitkCameraController
mitkVtkInteractorCameraController
mitkDisplayPositionEvent
How will the bugfix get tested?
unit test for the new key event class

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
285
Default Alt Text
ChangeRequest.txt (1 KB)

Event Timeline