A calibration display for applications using MultiWidgets. More...
#include <MultiWidgets/Calibration.hpp>
Public Types | |
| enum | Mode { CALIB_MULTIHEAD, CALIB_MULTITOUCH, CALIB_COUNT } |
| Calibration mode. | |
Public Member Functions | |
| Calibration (PerformanceData *pd=nullptr) | |
| Constructs a new calibration. | |
| void | init (Luminous::MultiHead *, MultiTouch::Screen *) |
| Initializes the calibration display. | |
| bool | keyPressEvent (const Radiant::KeyEvent &event) |
| Used to handle key-press events. More... | |
| bool | keyReleaseEvent (const Radiant::KeyEvent &event) |
| Used to handle key-release events. More... | |
| bool | mouseMoveEvent (const Radiant::MouseEvent &event) |
| Used to handle mouse move events. More... | |
| bool | mousePressEvent (const Radiant::MouseEvent &event) |
| Used to handle mouse button press events. More... | |
| bool | mouseReleaseEvent (const Radiant::MouseEvent &event) |
| Used to handle mouse button release events. More... | |
| bool | mouseWheelEvent (const Radiant::MouseEvent &event) |
| Used to handle mouse wheel events. More... | |
| void | paintGL (Luminous::RenderContext &rc, const Nimble::Rectf &bounds, int index) |
| Draws the calibration display. More... | |
| void | setVisible (bool visible) |
| Toggles the visibility of the Calibration display (default = false) | |
| void | update () |
| Update the internal logic. More... | |
| bool | visible () const |
| Returns the visibility of the Calibration display. | |
A calibration display for applications using MultiWidgets.
This class can be used to perform:
Color/resolution analysis of the display
Calibration includes a number of test patterns that help you evaluate how the various calibrations are performing.
The Calibration object can be embedded into all kinds of OpenGL applications, to facilitate usage in wide range of situations.
| bool MultiWidgets::Calibration::keyPressEvent | ( | const Radiant::KeyEvent & | event | ) |
Used to handle key-press events.
| event | Event to be handled |
| bool MultiWidgets::Calibration::keyReleaseEvent | ( | const Radiant::KeyEvent & | event | ) |
Used to handle key-release events.
| event | Event to be handled |
| bool MultiWidgets::Calibration::mouseMoveEvent | ( | const Radiant::MouseEvent & | event | ) |
Used to handle mouse move events.
| event | Event to be handled |
| bool MultiWidgets::Calibration::mousePressEvent | ( | const Radiant::MouseEvent & | event | ) |
Used to handle mouse button press events.
| event | Event to be handled |
| bool MultiWidgets::Calibration::mouseReleaseEvent | ( | const Radiant::MouseEvent & | event | ) |
Used to handle mouse button release events.
| event | Event to be handled |
| bool MultiWidgets::Calibration::mouseWheelEvent | ( | const Radiant::MouseEvent & | event | ) |
Used to handle mouse wheel events.
| event | Event to be handled |
| void MultiWidgets::Calibration::paintGL | ( | Luminous::RenderContext & | rc, |
| const Nimble::Rectf & | bounds, | ||
| int | index | ||
| ) |
Draws the calibration display.
If the Calibration display is set to be invisible (with setVisible), then this function does nothing.
| rc | render context to use |
| bounds | bounds for painting |
| index | index of the area (used to differentiate area colors) |
| void MultiWidgets::Calibration::update | ( | ) |
Update the internal logic.
This funciton should be called between the frames.