1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : VisuGUI_StreamLinesDlg.h
24 // Author : Vitaly SMETANNIKOV
27 #ifndef VISUGUI_STREAMLINESDLG_H
28 #define VISUGUI_STREAMLINESDLG_H
30 #include "VisuGUI_Prs3dDlg.h"
37 #include "VISUConfig.hh"
39 class SalomeApp_Module;
40 class VisuGUI_InputPane;
41 class SalomeApp_DoubleSpinBox;
49 class VisuGUI_StreamLinesDlg: public VisuGUI_ScalarBarBaseDlg
53 VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
54 ~VisuGUI_StreamLinesDlg();
56 virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
59 virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
61 void setColor( QColor color );
62 void enableMagnColor( bool enable );
65 virtual QString GetContextHelpFilePath();
66 void storeToPrsCopy();
73 void StepLengthChanged(double theValue);
74 void IntegrationStepChanged(double theValue);
75 void PropagationTimeChanged(double theValue);
76 void onSourceTypeChange(int theIndex);
79 VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
81 SalomeApp_DoubleSpinBox* myStepLen;
82 SalomeApp_DoubleSpinBox* myIntegStepLen;
83 SalomeApp_DoubleSpinBox* myPropTime;
84 QComboBox* myDirCombo;
85 QCheckBox* myUseScalar;
86 QtxColorButton* SelColor;
87 //QCheckBox* myUseSrcChk;
88 QComboBox* myUseSrcCombo;
89 SalomeApp_DoubleSpinBox* myPntPercent;
90 QComboBox* mySrcCombo;
93 VisuGUI_InputPane* myInputPane;
95 QList<VISU::Prs3d_var> myPrsList;
96 QList<VISU::Prs3d_var> myEntityList;
97 QList<VISU::Prs3d_var> myFamilyList;
98 QList<VISU::Prs3d_var> myGroupList;
99 QStringList myEntitiesLst;
100 QStringList myFamilisLst;
101 QStringList myGroupsLst;
102 QStringList myPrsLst;
104 _PTR(SObject) mySelectionObj;
105 SALOME::GenericObjPtr<VISU::StreamLines_i> myPrsCopy;
106 SalomeApp_Module* myVisuGUI;
111 void enableSetColor();
114 #endif //VISUGUI_STREAMLINESDLG_H