#include <wrap/qt/device_to_logical.h>
Go to the source code of this file.
Functions | |
vcg::Trackball::Button | QT2VCG (Qt::MouseButton qtbt, Qt::KeyboardModifiers modifiers) |
Takes a QT MouseButton, some QT KeyboardModifiers and returns the equivalent Trackball::Button. | |
float | QT2VCG_X (QWidget *qw, QMouseEvent *e) |
float | QT2VCG_Y (QWidget *qw, QMouseEvent *e) |
vcg::Trackball::Button | QTKey2VCG (int key, Qt::KeyboardModifiers modifiers) |
Takes some QT KeyboardModifiers and returns the mouse wheel related Trackball::Button. | |
vcg::Trackball::Button | QTWheel2VCG (Qt::KeyboardModifiers modifiers) |
Takes a QT ket and QT KeyboardModifiers and returns the mouse wheel related Trackball::Button. |
vcg::Trackball::Button QT2VCG | ( | Qt::MouseButton | qtbt, |
Qt::KeyboardModifiers | modifiers | ||
) | [inline] |
Takes a QT MouseButton, some QT KeyboardModifiers and returns the equivalent Trackball::Button.
Definition at line 46 of file qt/trackball.h.
float QT2VCG_X | ( | QWidget * | qw, |
QMouseEvent * | e | ||
) | [inline] |
Transforms the event coordintates (that are device independent) into the expected framebuffer coordinates (e.g.in opengl pixels) This is necessary because trackball works in the viewport coord systems.
Definition at line 31 of file qt/trackball.h.
float QT2VCG_Y | ( | QWidget * | qw, |
QMouseEvent * | e | ||
) | [inline] |
Transforms the event coordintates (that are device independent) into the expected framebuffer coordinates (e.g.in opengl pixels) This is necessary because trackball works in the viewport coord systems.
Definition at line 40 of file qt/trackball.h.
vcg::Trackball::Button QTKey2VCG | ( | int | key, |
Qt::KeyboardModifiers | modifiers | ||
) | [inline] |
Takes some QT KeyboardModifiers and returns the mouse wheel related Trackball::Button.
Definition at line 74 of file qt/trackball.h.
vcg::Trackball::Button QTWheel2VCG | ( | Qt::KeyboardModifiers | modifiers | ) | [inline] |
Takes a QT ket and QT KeyboardModifiers and returns the mouse wheel related Trackball::Button.
Definition at line 62 of file qt/trackball.h.