1
/****************************************************************************
3
* A versatile mesh processing toolbox o o *
5
* Copyright(C) 2005 \/)\/ *
6
* Visual Computing Lab /\/| *
7
* ISTI - Italian National Research Council | *
9
* All rights reserved. *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
* This program is distributed in the hope that it will be useful, *
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
22
****************************************************************************/
23
/****************************************************************************/
25
#ifndef LIGHTINGDIALOG_H
26
#define LIGHTINGDIALOG_H
29
#include "ui_lightingProperties.h"
36
class LightingDialog : public QDialog, private Ui::lightSettings
40
// private data members
49
QColor ambientFancyBack;
50
QColor diffuseFancyBack;
51
QColor specularFancyBack;
52
QColor ambientFancyFront;
53
QColor diffuseFancyFront;
54
QColor specularFancyFront;
59
LightingDialog(const GLLightSetting &glls, QWidget *parent = NULL);
64
void setupLightSettings(const GLLightSetting &ls);
65
void setupColorsInUsed();
72
void changeSpecular();
74
void changeFancyBackDiffuse();
75
void changeFancyBackSpecular();
76
void changeFancyFrontDiffuse();
77
void changeFancyFrontSpecular();
82
void lightSettingsToGL(GLLightSetting &ls);
85
#endif /* LIGHTINGDIALOG_H */