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_Prs3dDlg.h"
30 #include <qcombobox.h>
31 #include <qcheckbox.h>
32 #include <qstringlist.h>
33 #include <qtabwidget.h>
35 #include "VISUConfig.hh"
37 class SalomeApp_Module;
38 class VisuGUI_InputPane;
46 class VisuGUI_StreamLinesDlg: public VisuGUI_ScalarBarBaseDlg
50 VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
51 ~VisuGUI_StreamLinesDlg();
53 virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
56 virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
58 void setColor( QColor color );
59 void enableMagnColor( bool enable );
62 virtual QString GetContextHelpFilePath();
69 void StepLengthChanged(double theValue);
70 void IntegrationStepChanged(double theValue);
71 void PropagationTimeChanged(double theValue);
72 void onSourceTypeChange(int theIndex);
75 VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
77 QtxDblSpinBox* myStepLen;
78 QtxDblSpinBox* myIntegStepLen;
79 QtxDblSpinBox* myPropTime;
80 QComboBox* myDirCombo;
81 QCheckBox* myUseScalar;
82 QPushButton* SelColor;
84 //QCheckBox* myUseSrcChk;
85 QComboBox* myUseSrcCombo;
86 QtxDblSpinBox* myPntPercent;
87 QComboBox* mySrcCombo;
90 VisuGUI_InputPane* myInputPane;
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;
101 _PTR(SObject) mySelectionObj;
102 SALOME::GenericObjPtr<VISU::StreamLines_i> myPrsCopy;
103 SalomeApp_Module* myVisuGUI;
107 void enableSetColor();
110 #endif //VISUGUI_STREAMLINESDLG_H