1 // Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef OCCVIEWER_LIGHTSOURCEDLG_H
21 #define OCCVIEWER_LIGHTSOURCEDLG_H
23 #include "OCCViewer.h"
25 #include <V3d_DirectionalLight.hxx>
26 #include <V3d_PositionalLight.hxx>
27 #include <V3d_TypeOfLight.hxx>
29 class OCCViewer_ViewWindow;
30 class OCCViewer_Viewer;
31 class QtxDoubleSpinBox;
38 class OCCVIEWER_EXPORT OCCViewer_LightSourceDlg: public QDialog
43 OCCViewer_LightSourceDlg( OCCViewer_ViewWindow*, OCCViewer_Viewer* );
44 ~OCCViewer_LightSourceDlg();
46 static QString getName();
56 void ClickOnDefault();
61 void initParam( bool theIsDefault = false );
63 OCCViewer_Viewer* myModel;
65 Handle(V3d_DirectionalLight) myDirLight;
66 Handle(V3d_PositionalLight) myPosLight;
68 QRadioButton* myDirType;
69 QRadioButton* myPosType;
71 QStackedLayout* myStackedLayout;
73 QtxDoubleSpinBox* myDx;
74 QtxDoubleSpinBox* myDy;
75 QtxDoubleSpinBox* myDz;
76 QCheckBox* myDirHeadLight;
77 QtxColorButton* myDirColor;
79 QtxDoubleSpinBox* myX;
80 QtxDoubleSpinBox* myY;
81 QtxDoubleSpinBox* myZ;
82 QCheckBox* myPosHeadLight;
83 QtxColorButton* myPosColor;
85 double myInX, myInY, myInZ;
87 Quantity_Color myInColor;
88 V3d_TypeOfLight myInType;
93 #endif // OCCVIEWER_LIGHTSOURCEDLG_H