Version: 9.16.0
OCCViewer_LightSourceDlg.h
Go to the documentation of this file.
1// Copyright (C) 2015-2026 CEA, EDF, OPEN CASCADE
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef OCCVIEWER_LIGHTSOURCEDLG_H
21#define OCCVIEWER_LIGHTSOURCEDLG_H
22
23#include "OCCViewer.h"
24#include <QDialog>
25#include <V3d_DirectionalLight.hxx>
26#include <V3d_PositionalLight.hxx>
27#include <V3d_TypeOfLight.hxx>
28
32class QtxColorButton;
33class QPushButton;
34class QCheckBox;
35class QRadioButton;
36class QStackedLayout;
37
39{
40 Q_OBJECT
41
42public:
45
46 static QString getName();
47
48protected slots:
49
50private slots:
51 void onTypeChanged();
52 void onDirChanged();
53 void onPosChanged();
54
55 void ClickOnOk();
56 void ClickOnDefault();
57 void ClickOnClose();
58 void ClickOnHelp();
59
60private:
61 void initParam( bool theIsDefault = false );
62
64
65 Handle(V3d_DirectionalLight) myDirLight;
66 Handle(V3d_PositionalLight) myPosLight;
67
68 QRadioButton* myDirType;
69 QRadioButton* myPosType;
70
71 QStackedLayout* myStackedLayout;
72
76 QCheckBox* myDirHeadLight;
78
82 QCheckBox* myPosHeadLight;
84
85 double myInX, myInY, myInZ;
87 Quantity_Color myInColor;
88 V3d_TypeOfLight myInType;
89
90 bool isBusy;
91};
92
93#endif // OCCVIEWER_LIGHTSOURCEDLG_H
#define OCCVIEWER_EXPORT
Definition: OCCViewer.h:33
Dialog allowing to assign parameters of light source.
Definition: OCCViewer_LightSourceDlg.h:39
Handle(V3d_DirectionalLight) myDirLight
QRadioButton * myPosType
Definition: OCCViewer_LightSourceDlg.h:69
V3d_TypeOfLight myInType
Definition: OCCViewer_LightSourceDlg.h:88
QCheckBox * myPosHeadLight
Definition: OCCViewer_LightSourceDlg.h:82
bool myInHeadLight
Definition: OCCViewer_LightSourceDlg.h:86
Quantity_Color myInColor
Definition: OCCViewer_LightSourceDlg.h:87
QtxDoubleSpinBox * myX
Definition: OCCViewer_LightSourceDlg.h:79
QtxDoubleSpinBox * myDy
Definition: OCCViewer_LightSourceDlg.h:74
QStackedLayout * myStackedLayout
Definition: OCCViewer_LightSourceDlg.h:71
QtxDoubleSpinBox * myDx
Definition: OCCViewer_LightSourceDlg.h:73
bool isBusy
Definition: OCCViewer_LightSourceDlg.h:90
double myInX
Definition: OCCViewer_LightSourceDlg.h:85
QRadioButton * myDirType
Definition: OCCViewer_LightSourceDlg.h:68
QtxDoubleSpinBox * myZ
Definition: OCCViewer_LightSourceDlg.h:81
QtxDoubleSpinBox * myDz
Definition: OCCViewer_LightSourceDlg.h:75
Handle(V3d_PositionalLight) myPosLight
QtxColorButton * myPosColor
Definition: OCCViewer_LightSourceDlg.h:83
QtxDoubleSpinBox * myY
Definition: OCCViewer_LightSourceDlg.h:80
OCCViewer_Viewer * myModel
Definition: OCCViewer_LightSourceDlg.h:63
QCheckBox * myDirHeadLight
Definition: OCCViewer_LightSourceDlg.h:76
QtxColorButton * myDirColor
Definition: OCCViewer_LightSourceDlg.h:77
Definition: OCCViewer_ViewWindow.h:147
Definition: OCCViewer_ViewModel.h:77
The QtxColorButton class implements a widget for color preference items editing.
Definition: QtxColorButton.h:36
Enhanced version of the Qt's double spin box.
Definition: QtxDoubleSpinBox.h:32