]> SALOME platform Git repositories - modules/visu.git/blob - src/VISUGUI/VisuGUI_StreamLinesDlg.h
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/visu.git] / src / VISUGUI / VisuGUI_StreamLinesDlg.h
1 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 // 
4 //  This library is free software; you can redistribute it and/or 
5 //  modify it under the terms of the GNU Lesser General Public 
6 //  License as published by the Free Software Foundation; either 
7 //  version 2.1 of the License. 
8 // 
9 //  This library is distributed in the hope that it will be useful, 
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 //  Lesser General Public License for more details. 
13 // 
14 //  You should have received a copy of the GNU Lesser General Public 
15 //  License along with this library; if not, write to the Free Software 
16 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 // 
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //  File   : VisuGUI_StreamLinesDlg.h
21 //  Author : Vitaly SMETANNIKOV
22 //  Module : VISU
23
24 #ifndef VISUGUI_STREAMLINESDLG_H
25 #define VISUGUI_STREAMLINESDLG_H
26
27 #include "VisuGUI_Prs3dDlg.h"
28
29 #include <qlabel.h>
30 #include <qcombobox.h>
31 #include <qcheckbox.h>
32 #include <qstringlist.h>
33 #include <qtabwidget.h>
34
35 #include "VISUConfig.hh"
36
37 class SalomeApp_Module;
38 class VisuGUI_InputPane;
39 class QtxDblSpinBox;
40
41 namespace VISU
42 {
43   class StreamLines_i;
44 }
45
46 class VisuGUI_StreamLinesDlg: public VisuGUI_ScalarBarBaseDlg
47 {
48     Q_OBJECT
49 public:
50     VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
51     ~VisuGUI_StreamLinesDlg();
52
53     virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
54                                   bool theInit );
55
56     virtual int  storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
57
58     void setColor( QColor color );
59     void enableMagnColor( bool enable );
60
61 protected:
62   virtual QString GetContextHelpFilePath();
63
64 protected slots:
65   void accept();
66   void reject();
67
68 private slots:
69   void StepLengthChanged(double theValue);
70   void IntegrationStepChanged(double theValue);
71   void PropagationTimeChanged(double theValue);
72   void onSourceTypeChange(int theIndex);
73
74 private:
75   VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
76
77     QtxDblSpinBox* myStepLen;
78     QtxDblSpinBox* myIntegStepLen;
79     QtxDblSpinBox* myPropTime;
80     QComboBox* myDirCombo;
81     QCheckBox* myUseScalar;
82     QPushButton*    SelColor;
83     QColor          myColor;
84     //QCheckBox* myUseSrcChk;
85     QComboBox* myUseSrcCombo;
86     QtxDblSpinBox* myPntPercent;
87     QComboBox* mySrcCombo;
88
89     QTabWidget*            myTabBox;
90     VisuGUI_InputPane*     myInputPane;
91
92     QValueList<VISU::Prs3d_var> myPrsList;
93     QValueList<VISU::Prs3d_var> myEntityList;
94     QValueList<VISU::Prs3d_var> myFamilyList;
95     QValueList<VISU::Prs3d_var> myGroupList;
96     QStringList myEntitiesLst;
97     QStringList myFamilisLst;
98     QStringList myGroupsLst;
99     QStringList myPrsLst;
100
101     _PTR(SObject) mySelectionObj;
102     SALOME::GenericObjPtr<VISU::StreamLines_i> myPrsCopy;
103     SalomeApp_Module* myVisuGUI;
104
105 private slots:
106   void setVColor();
107   void enableSetColor();
108 };
109
110 #endif  //VISUGUI_STREAMLINESDLG_H