1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : VisuGUI_StreamLinesDlg.h
21 // Author : Vitaly SMETANNIKOV
24 #ifndef VISUGUI_STREAMLINESDLG_H
25 #define VISUGUI_STREAMLINESDLG_H
27 #include "VisuGUI_ScalarBarDlg.h"
30 #include <qcombobox.h>
31 #include <qcheckbox.h>
32 #include <qstringlist.h>
34 class SalomeApp_Module;
41 class VisuGUI_StreamLinesDlg: public QDialog
45 VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
46 ~VisuGUI_StreamLinesDlg() {};
48 void initFromPrsObject(VISU::StreamLines_i* thePrs);
49 int storeToPrsObject(VISU::StreamLines_i* thePrs);
50 void setColor( QColor color );
51 void enableMagnColor( bool enable );
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);
66 VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
68 QtxDblSpinBox* myStepLen;
69 QtxDblSpinBox* myIntegStepLen;
70 QtxDblSpinBox* myPropTime;
71 QComboBox* myDirCombo;
72 QCheckBox* myUseScalar;
73 QPushButton* SelColor;
75 //QCheckBox* myUseSrcChk;
76 QComboBox* myUseSrcCombo;
77 QtxDblSpinBox* myPntPercent;
78 QComboBox* mySrcCombo;
80 VisuGUI_ScalarBarPane* myScalarPane;
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;
91 _PTR(SObject) mySelectionObj;
92 VISU::StreamLines_i* myPrs;
93 SalomeApp_Module* myVisuGUI;
97 void enableSetColor();
100 #endif //VISUGUI_STREAMLINESDLG_H