]> SALOME platform Git repositories - modules/visu.git/blob - src/VISUGUI/VisuGUI_StreamLinesDlg.h
Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[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_ScalarBarDlg.h"
28
29 #include <qdialog.h>
30 #include <qcombobox.h>
31 #include <qcheckbox.h>
32 #include <qstringlist.h>
33
34 class SalomeApp_Module;
35 class QtxDblSpinBox;
36
37 namespace VISU{
38   class StreamLines_i;
39 }
40
41 class VisuGUI_StreamLinesDlg: public QDialog
42 {
43     Q_OBJECT
44 public:
45     VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
46     ~VisuGUI_StreamLinesDlg() {};
47
48     void initFromPrsObject(VISU::StreamLines_i* thePrs);
49     int storeToPrsObject(VISU::StreamLines_i* thePrs);
50     void setColor( QColor color );
51     void enableMagnColor( bool enable );
52
53 protected slots:
54   void accept();
55   void reject();
56   void onHelp();
57
58 private slots:
59   void onSelectionActive(bool theActive);
60   void StepLengthChanged(double theValue);
61   void IntegrationStepChanged(double theValue);
62   void PropagationTimeChanged(double theValue);
63   void onSourceTypeChange(int theIndex);
64
65 private:
66   VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
67
68     QtxDblSpinBox* myStepLen;
69     QtxDblSpinBox* myIntegStepLen;
70     QtxDblSpinBox* myPropTime;
71     QComboBox* myDirCombo;
72     QCheckBox* myUseScalar;
73     QPushButton*    SelColor;
74     QColor          myColor;
75     //QCheckBox* myUseSrcChk;
76     QComboBox* myUseSrcCombo;
77     QtxDblSpinBox* myPntPercent;
78     QComboBox* mySrcCombo;
79
80     VisuGUI_ScalarBarPane* myScalarPane;
81
82     QValueList<VISU::Prs3d_var> myPrsList;
83     QValueList<VISU::Prs3d_var> myEntityList;
84     QValueList<VISU::Prs3d_var> myFamilyList;
85     QValueList<VISU::Prs3d_var> myGroupList;
86     QStringList myEntitiesLst;
87     QStringList myFamilisLst;
88     QStringList myGroupsLst;
89     QStringList myPrsLst;
90
91     _PTR(SObject) mySelectionObj;
92     VISU::StreamLines_i* myPrs;
93     SalomeApp_Module* myVisuGUI;
94
95 private slots:
96   void setVColor();
97   void enableSetColor();
98 };
99
100 #endif  //VISUGUI_STREAMLINESDLG_H