Version: 6.3.1

src/VISUGUI/VisuGUI_StreamLinesDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  File   : VisuGUI_StreamLinesDlg.h
00024 //  Author : Vitaly SMETANNIKOV
00025 //  Module : VISU
00026 //
00027 #ifndef VISUGUI_STREAMLINESDLG_H
00028 #define VISUGUI_STREAMLINESDLG_H
00029 
00030 #include "VisuGUI_Prs3dDlg.h"
00031 
00032 class QTabWidget;
00033 class QCheckBox;
00034 class QComboBox;
00035 
00036 
00037 #include "VISUConfig.hh"
00038 
00039 class SalomeApp_Module;
00040 class VisuGUI_InputPane;
00041 class SalomeApp_DoubleSpinBox;
00042 class QtxColorButton;
00043 
00044 namespace VISU
00045 {
00046   class StreamLines_i;
00047 }
00048 
00049 class VisuGUI_StreamLinesDlg: public VisuGUI_ScalarBarBaseDlg
00050 {
00051     Q_OBJECT
00052 public:
00053     VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
00054     ~VisuGUI_StreamLinesDlg();
00055 
00056     virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
00057                                   bool theInit );
00058 
00059     virtual int  storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
00060 
00061     void setColor( QColor color );
00062     void enableMagnColor( bool enable );
00063 
00064 protected:
00065   virtual QString GetContextHelpFilePath();
00066   void storeToPrsCopy();
00067 
00068 protected slots:
00069   void accept();
00070   void reject();
00071 
00072 private slots:
00073   void StepLengthChanged(double theValue);
00074   void IntegrationStepChanged(double theValue);
00075   void PropagationTimeChanged(double theValue);
00076   void onSourceTypeChange(int theIndex);
00077 
00078 private:
00079   VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
00080 
00081     SalomeApp_DoubleSpinBox* myStepLen;
00082     SalomeApp_DoubleSpinBox* myIntegStepLen;
00083     SalomeApp_DoubleSpinBox* myPropTime;
00084     QComboBox* myDirCombo;
00085     QCheckBox* myUseScalar;
00086     QtxColorButton*   SelColor;
00087     //QCheckBox* myUseSrcChk;
00088     QComboBox* myUseSrcCombo;
00089     SalomeApp_DoubleSpinBox* myPntPercent;
00090     QComboBox* mySrcCombo;
00091 
00092     QTabWidget*            myTabBox;
00093     VisuGUI_InputPane*     myInputPane;
00094 
00095     QList<VISU::Prs3d_var> myPrsList;
00096     QList<VISU::Prs3d_var> myEntityList;
00097     QList<VISU::Prs3d_var> myFamilyList;
00098     QList<VISU::Prs3d_var> myGroupList;
00099     QStringList myEntitiesLst;
00100     QStringList myFamilisLst;
00101     QStringList myGroupsLst;
00102     QStringList myPrsLst;
00103 
00104     _PTR(SObject) mySelectionObj;
00105     SALOME::GenericObjPtr<VISU::StreamLines_i> myPrsCopy;
00106     SalomeApp_Module* myVisuGUI;
00107     bool myStatus;
00108 
00109 private slots:
00110   //void setVColor();
00111   void enableSetColor();
00112 };
00113 
00114 #endif  //VISUGUI_STREAMLINESDLG_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS