~ubuntu-branches/ubuntu/vivid/meshlab/vivid

« back to all changes in this revision

Viewing changes to meshlab/src/meshlab/lightingDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2011-03-28 17:54:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110328175411-ntj9e50d1yl0luzb
Tags: 1.3.0a+dfsg1-1
* New upstream version (closes: #618522)
* Repackage the upstream sources to get rid of some files with questionable
  licensing information and useless libraries, see the copyright file for
  details.
* Builds with GCC-4.5 (closes: #565034)
* Fix watch-file to work with new upstream names and dfsg source
  (closes: #582477)
* Require debhelper version 8 or above.
* control:
  - Update standards-version to 3.9.1, cleanup.
  - Remove build-dep to libgl-dev to fix a lintian warning about a
    build-dep to a virtual package.
  - Remove build-dep to asciidoc, add build-dep to libeigen2-dev.
* rules:
  - Remove manpage-related code.
  - Build the necessary code from meshlab/src/external. Also clean it.
  - Override dh_shlibdeps to include /usr/lib/meshlab in search path.
  - Don't install shader licenses.
* install: Install binaries from meshlab/src/distrib.
* copyright: Update to the latest DEP5 format, document changes due to
  source repackaging and add the copyright info for the files added in
  this upstream release.
* Hardcode shadersDir and pluginDir in upstream source to locations
  in the Debian binary package.
* Use source format '3.0 (quilt)'.
* Split changes affecting upstream code to branches in the git repository
  at git.d.o. Add DEP3 patch metadata headers to debian/metapatches and
  generate patches from git branches with gdp (http://gitorious.org/gdp).
  Current patches:
  - 01_muparser: Use Debian muparser.
  - 02_qhull: Use Debian qhull.
  - 03_lib3ds: Use Debian lib3ds.
  - 04_libbz2: Use Debian libbz2.
  - 05_glew: Use Debian GLEW.
  - 06_eigen: Use Debian Eigen.
  - 07_disable-updates: Disable checking for updates on startup.
  - 08_externals: Only build necessary external sources.
  - 09_rpath: Use /usr/lib/meshlab as RPATH in binaries.
  - 10_shadersdir: Hardcode shadersDir to the correct path in Debian
  - 11_pluginsdir: Hardcode pluginsDir to the correct path in Debian
* Add a README.source file documenting the patch generation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
* MeshLab                                                           o o     *
3
 
* A versatile mesh processing toolbox                             o     o   *
4
 
*                                                                _   O  _   *
5
 
* Copyright(C) 2005                                                \/)\/    *
6
 
* Visual Computing Lab                                            /\/|      *
7
 
* ISTI - Italian National Research Council                           |      *
8
 
*                                                                    \      *
9
 
* All rights reserved.                                                      *
10
 
*                                                                           *
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.                                       *
15
 
*                                                                           *
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)          *
20
 
* for more details.                                                         *
21
 
*                                                                           *
22
 
****************************************************************************/
23
 
/****************************************************************************/
24
 
 
25
 
#ifndef LIGHTINGDIALOG_H
26
 
#define LIGHTINGDIALOG_H
27
 
 
28
 
// local headers
29
 
#include "ui_lightingProperties.h"
30
 
#include "glarea.h"
31
 
 
32
 
// Qt headers
33
 
#include <QDialog>
34
 
#include <qcolor.h>
35
 
 
36
 
class LightingDialog : public QDialog, private Ui::lightSettings
37
 
{
38
 
        Q_OBJECT
39
 
 
40
 
// private data members
41
 
private:
42
 
 
43
 
        // Main light
44
 
        QColor ambient;
45
 
        QColor diffuse;
46
 
        QColor specular;
47
 
 
48
 
        // Fancy lighting
49
 
        QColor ambientFancyBack;
50
 
        QColor diffuseFancyBack;
51
 
        QColor specularFancyBack;
52
 
        QColor ambientFancyFront;
53
 
        QColor diffuseFancyFront;
54
 
        QColor specularFancyFront;
55
 
 
56
 
// construction
57
 
public:
58
 
 
59
 
        LightingDialog(const GLLightSetting &glls, QWidget *parent = NULL);
60
 
 
61
 
// private methods
62
 
private:
63
 
 
64
 
        void setupLightSettings(const GLLightSetting &ls);
65
 
        void setupColorsInUsed();
66
 
 
67
 
// private slots
68
 
private slots: 
69
 
 
70
 
        void changeAmbient();
71
 
        void changeDiffuse();
72
 
        void changeSpecular();
73
 
 
74
 
        void changeFancyBackDiffuse();
75
 
        void changeFancyBackSpecular();
76
 
        void changeFancyFrontDiffuse();
77
 
        void changeFancyFrontSpecular();
78
 
 
79
 
// public methods
80
 
public:
81
 
 
82
 
        void lightSettingsToGL(GLLightSetting &ls);
83
 
};
84
 
 
85
 
#endif /* LIGHTINGDIALOG_H */