All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
MultiWidgets::Calibration Class Reference

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.
 

Detailed Description

A calibration display for applications using MultiWidgets.

This class can be used to perform:

  1. Projector keystone correction
  2. Computer vision output coordinate correction
  3. 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.

Member Function Documentation

bool MultiWidgets::Calibration::keyPressEvent ( const Radiant::KeyEvent event)

Used to handle key-press events.

Parameters
eventEvent to be handled
bool MultiWidgets::Calibration::keyReleaseEvent ( const Radiant::KeyEvent event)

Used to handle key-release events.

Parameters
eventEvent to be handled
bool MultiWidgets::Calibration::mouseMoveEvent ( const Radiant::MouseEvent event)

Used to handle mouse move events.

Parameters
eventEvent to be handled
bool MultiWidgets::Calibration::mousePressEvent ( const Radiant::MouseEvent event)

Used to handle mouse button press events.

Parameters
eventEvent to be handled
bool MultiWidgets::Calibration::mouseReleaseEvent ( const Radiant::MouseEvent event)

Used to handle mouse button release events.

Parameters
eventEvent to be handled
bool MultiWidgets::Calibration::mouseWheelEvent ( const Radiant::MouseEvent event)

Used to handle mouse wheel events.

Parameters
eventEvent 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.

Parameters
rcrender context to use
boundsbounds for painting
indexindex of the area (used to differentiate area colors)
void MultiWidgets::Calibration::update ( )

Update the internal logic.

This funciton should be called between the frames.