Public Slots | Public Member Functions | Private Attributes

TonicTones Class Reference

The TonicTones class is the main widget of this application. More...

List of all members.

Public Slots

void open ()
void openScreenColorsDialog ()
void updateScreenColors ()
void updateImage ()
void updateZoom (double scaleFactor)
void updateOperator (const QString &operatorName)
void updateGamma (int value)
void displayImage () const
void enableOperator (bool enabled)
void enableGamma (bool enabled)

Public Member Functions

 TonicTones (QWidget *parent=0)

Private Attributes

Ui::ScreenColorsDialog uiScreenColors
ImageScrollAreascrollArea
QLabel * zoomLabel
QLabel * operatorLabel
QLabel * conversionTimeLabel
QLabel * displayTimeLabel
HdrImageinputImage
HdrImageoutputImage
float xyzToRgbMatrix [3][3]
float gamma
bool gammaEnabled
bool operatorEnabled
ImageLoaderManagerloaderManager
ToneMappingOperatorManageroperatorManager

Detailed Description

The TonicTones class is the main widget of this application.

Definition at line 31 of file TonicTones.h.


Constructor & Destructor Documentation

TonicTones::TonicTones ( QWidget *  parent = 0 )

Constructs a TonicTones widget with a given parent.

Definition at line 92 of file TonicTones.cpp.


Member Function Documentation

void TonicTones::displayImage (  ) const [slot]

Displays the current image.

Definition at line 222 of file TonicTones.cpp.

void TonicTones::enableGamma ( bool  enabled ) [slot]

Enable or disables gamma correction.

This function is typically called when the gamma check box is clicked. It also calls displayImage().

Definition at line 329 of file TonicTones.cpp.

void TonicTones::enableOperator ( bool  enabled ) [slot]

Enables or disables the current operator and its options.

This function is typically called when the operator check box is clicked. It also calls updateImage().

Definition at line 316 of file TonicTones.cpp.

void TonicTones::open (  ) [slot]

Opens a dialog for selecting a file, opens the selected file and sends it to the current operator.

Definition at line 155 of file TonicTones.cpp.

void TonicTones::openScreenColorsDialog (  ) [slot]

Opens a dialog to edit the RGB to XYZ matrix.

Definition at line 339 of file TonicTones.cpp.

void TonicTones::updateGamma ( int  value ) [slot]

Updates the text showing the current gamma correction.

Definition at line 304 of file TonicTones.cpp.

void TonicTones::updateImage (  ) [slot]

Gets the image outputted by the current operator and transforms it into RGB space if needed.

This function also calls displayImage().

Definition at line 193 of file TonicTones.cpp.

void TonicTones::updateOperator ( const QString &  operatorName ) [slot]

Changes the current operator to operatorName.

Definition at line 271 of file TonicTones.cpp.

void TonicTones::updateScreenColors (  ) [slot]

Modifies the RGB to XYZ matrix according to the values entered in the dialog opened by openScreenColorsDialog().

This function also calls updateImage().

Definition at line 364 of file TonicTones.cpp.

void TonicTones::updateZoom ( double  scaleFactor ) [slot]

Updates the text showing the current zoom.

Definition at line 263 of file TonicTones.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions Variables