OpendTect-6_4  6.4
uivisdirlightdlg.h
Go to the documentation of this file.
1 #ifndef uivisdirlightdlg_h
2 #define uivisdirlightdlg_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Karthika
8  Date: Sep 2009
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uivismod.h"
15 #include "uivismod.h"
16 #include "uidialog.h"
17 #include "uipolardiagram.h"
18 
19 class uiDialExtra;
20 class uiGenInput;
21 class uiLabeledComboBox;
22 class uiPushButton;
23 class uiSlider;
24 class uiVisPartServer;
25 
26 namespace visBase { class Light; }
27 
30 public:
32  ~uiDirLightDlg();
33 
34  void show();
35 
36 protected:
37 
38  visBase::Light* getDirLight(int) const;
39  void setDirLight();
40  float getCameraLightIntensity( int ) const;
41  void setCameraLightIntensity();
42  float getCameraAmbientIntensity(int) const;
43  bool updateSceneSelector();
44  void updateInitInfo();
45  void saveInitInfo();
46  void resetWidgets();
47  void setWidgets(bool);
48  void showWidgets(bool);
49  void validateInput();
50  bool isInSync();
51  void removeSceneNotifiers();
52  float getDiffuseIntensity() const;
53 
54  bool acceptOK(CallBacker*);
55  bool rejectOK(CallBacker*);
56  void pdDlgDoneCB(CallBacker*);
57  void showPolarDiagramCB(CallBacker*);
58  void lightSelChangedCB(CallBacker*);
59  void sceneSelChangedCB(CallBacker*);
60  void fieldChangedCB(CallBacker*);
61  void polarDiagramCB(CallBacker*);
62  void cameraLightChangedCB(CallBacker*);
63  void cameraAmbientChangedCB( CallBacker* );
64  void nrScenesChangedCB(CallBacker*);
65  void sceneNameChangedCB(CallBacker*);
66  void activeSceneChangedCB(CallBacker*);
67  void onOffChg(CallBacker*);
68  void setlightSwitch();
69 
71 
80  uiDialog* pddlg_;
82 
83  typedef mStruct(uiVis) InitInfo
84  {
85  int sceneid_;
86 
87  float azimuth_; // user degrees
88  float dip_; // degrees
89 
90  float cameraintensity_;
91  float ambintensity_;
92 
93  bool directlighton_;
94  float dirintensity_;
95  float dx_;
96  float dy_;
97  float dz_;
98 
99  InitInfo();
100  void reset(bool resetheadonval=true);
101 
102  InitInfo& operator = (const InitInfo&);
103  bool operator == (const InitInfo&) const;
104  bool operator != (const InitInfo&) const;
105 
107 
109 
110 };
111 
112 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: uislider.h:42
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
is the base class for all buttons.
Definition: uibutton.h:83
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
TypeSet< InitInfoType > initinfo_
Definition: uivisdirlightdlg.h:108
uiSlider * dipfld_
Definition: uivisdirlightdlg.h:74
The Visualization Part Server.
Definition: uivispartserv.h:60
Definition: uiparent.h:26
Definition: uidial.h:71
Definition: uidialog.h:42
Displays a polar diagram which can be used to set the azimuth and the dip by gyrating the pointer...
Definition: uipolardiagram.h:29
uiLabeledComboBox * scenefld_
Definition: uivisdirlightdlg.h:72
uiGenInput * switchfld_
Definition: uivisdirlightdlg.h:81
Definition: uivisdirlightdlg.h:28
Class for all lights. More options are available in osg, but only what we currently need is implement...
Definition: vislight.h:35
General Input Element.
Definition: uigeninput.h:58
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
Definition: uicombobox.h:133
Definition: visannot.h:43
uiPushButton * showpdfld_
Definition: uivisdirlightdlg.h:78
uiSlider * cameradirintensityfld_
Definition: uivisdirlightdlg.h:76
uiDialog * pddlg_
Definition: uivisdirlightdlg.h:80
uiVisPartServer * visserv_
Definition: uivisdirlightdlg.h:70
uiPolarDiagram * pd_
Definition: uivisdirlightdlg.h:79
uiSlider * cameraambintensityfld_
Definition: uivisdirlightdlg.h:77
uiSlider * dirintensityfld_
Definition: uivisdirlightdlg.h:75
InitInfoType
Definition: uivisdirlightdlg.h:106
uiDialExtra * azimuthfld_
Definition: uivisdirlightdlg.h:73

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019