#ifndef VISUGUI_STREAMLINESDLG_H
#define VISUGUI_STREAMLINESDLG_H
+#include "VisuGUI_ScalarBarDlg.h"
+
#include <qdialog.h>
#include <qcombobox.h>
#include <qcheckbox.h>
-#include "QAD_SpinBoxDbl.h"
-#include "VISU_PrsObject_i.hh"
+#include <qstringlist.h>
+
+class SalomeApp_Module;
+class QtxDblSpinBox;
+namespace VISU{
+ class StreamLines_i;
+}
class VisuGUI_StreamLinesDlg: public QDialog
-{
+{
Q_OBJECT
public:
- VisuGUI_StreamLinesDlg();
+ VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule);
~VisuGUI_StreamLinesDlg() {};
void initFromPrsObject(VISU::StreamLines_i* thePrs);
- void storeToPrsObject(VISU::StreamLines_i* thePrs);
+ int storeToPrsObject(VISU::StreamLines_i* thePrs);
void setColor( QColor color );
void enableMagnColor( bool enable );
+protected slots:
+ void accept();
+
private slots:
void onSelectionActive(bool theActive);
+ void StepLengthChanged(double theValue);
+ void IntegrationStepChanged(double theValue);
void PropagationTimeChanged(double theValue);
+ void onSourceTypeChange(int theIndex);
private:
- QAD_SpinBoxDbl* myStepLen;
- QAD_SpinBoxDbl* myIntegStepLen;
- QAD_SpinBoxDbl* myPropTime;
+ VISU::Mesh_ptr createMesh(VISU::VISUType theType, QString theName);
+
+ QtxDblSpinBox* myStepLen;
+ QtxDblSpinBox* myIntegStepLen;
+ QtxDblSpinBox* myPropTime;
QComboBox* myDirCombo;
QCheckBox* myUseScalar;
QPushButton* SelColor;
QColor myColor;
- QCheckBox* myUseSrcChk;
- QAD_SpinBoxDbl* myPntPercent;
+ //QCheckBox* myUseSrcChk;
+ QComboBox* myUseSrcCombo;
+ QtxDblSpinBox* myPntPercent;
QComboBox* mySrcCombo;
+
+ VisuGUI_ScalarBarPane* myScalarPane;
+
QValueList<VISU::Prs3d_var> myPrsList;
+ QValueList<VISU::Prs3d_var> myEntityList;
+ QValueList<VISU::Prs3d_var> myFamilyList;
+ QValueList<VISU::Prs3d_var> myGroupList;
+ QStringList myEntitiesLst;
+ QStringList myFamilisLst;
+ QStringList myGroupsLst;
+ QStringList myPrsLst;
+
+ _PTR(SObject) mySelectionObj;
+ VISU::StreamLines_i* myPrs;
+ SalomeApp_Module* myVisuGUI;
private slots:
void setVColor();